|
1 | 1 | /**
|
2 |
| - * Copyright (C) 2019 Bosch Sensortec GmbH |
3 |
| - * |
4 |
| - * Redistribution and use in source and binary forms, with or without |
5 |
| - * modification, are permitted provided that the following conditions are met: |
6 |
| - * |
7 |
| - * Redistributions of source code must retain the above copyright |
8 |
| - * notice, this list of conditions and the following disclaimer. |
9 |
| - * |
10 |
| - * Redistributions in binary form must reproduce the above copyright |
11 |
| - * notice, this list of conditions and the following disclaimer in the |
12 |
| - * documentation and/or other materials provided with the distribution. |
13 |
| - * |
14 |
| - * Neither the name of the copyright holder nor the names of the |
15 |
| - * contributors may be used to endorse or promote products derived from |
16 |
| - * this software without specific prior written permission. |
17 |
| - * |
18 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
19 |
| - * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR |
20 |
| - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
21 |
| - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
22 |
| - * DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER |
23 |
| - * OR CONTRIBUTORS BE LIABLE FOR ANY |
24 |
| - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, |
25 |
| - * OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, |
26 |
| - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
27 |
| - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 |
| - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
29 |
| - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
30 |
| - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
31 |
| - * ANY WAY OUT OF THE USE OF THIS |
32 |
| - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE |
33 |
| - * |
34 |
| - * The information provided is believed to be accurate and reliable. |
35 |
| - * The copyright holder assumes no responsibility |
36 |
| - * for the consequences of use |
37 |
| - * of such information nor for any infringement of patents or |
38 |
| - * other rights of third parties which may result from its use. |
39 |
| - * No license is granted by implication or otherwise under any patent or |
40 |
| - * patent rights of the copyright holder. |
41 |
| - * |
42 |
| - * @file bmi2.h |
43 |
| - * @date 2019-07-24 |
44 |
| - * @version v2.34.0 |
45 |
| - * |
46 |
| - */ |
47 |
| - |
48 |
| -#ifndef BMI2_H_ |
| 2 | +* Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. |
| 3 | +* |
| 4 | +* BSD-3-Clause |
| 5 | +* |
| 6 | +* Redistribution and use in source and binary forms, with or without |
| 7 | +* modification, are permitted provided that the following conditions are met: |
| 8 | +* |
| 9 | +* 1. Redistributions of source code must retain the above copyright |
| 10 | +* notice, this list of conditions and the following disclaimer. |
| 11 | +* |
| 12 | +* 2. Redistributions in binary form must reproduce the above copyright |
| 13 | +* notice, this list of conditions and the following disclaimer in the |
| 14 | +* documentation and/or other materials provided with the distribution. |
| 15 | +* |
| 16 | +* 3. Neither the name of the copyright holder nor the names of its |
| 17 | +* contributors may be used to endorse or promote products derived from |
| 18 | +* this software without specific prior written permission. |
| 19 | +* |
| 20 | +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 23 | +* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 24 | +* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 25 | +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 26 | +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 27 | +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 28 | +* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 29 | +* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 30 | +* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 31 | +* POSSIBILITY OF SUCH DAMAGE. |
| 32 | +* |
| 33 | +* @file bmi2.h |
| 34 | +* @date 2020-01-10 |
| 35 | +* @version v2.46.1 |
| 36 | +* |
| 37 | +*/#ifndef BMI2_H_ |
49 | 38 | #define BMI2_H_
|
50 | 39 |
|
51 | 40 | /*! CPP guard */
|
@@ -146,7 +135,7 @@ int8_t bmi2_soft_reset(struct bmi2_dev *dev);
|
146 | 135 | * @retval BMI2_E_NULL_PTR - Error: Null pointer error
|
147 | 136 | * @retval BMI2_E_COM_FAIL - Error: Communication fail
|
148 | 137 | */
|
149 |
| -int8_t bmi2_get_config_file_version(uint16_t *config_major, uint8_t *config_minor, const struct bmi2_dev *dev); |
| 138 | +int8_t bmi2_get_config_file_version(uint16_t *config_major, uint8_t *config_minor, struct bmi2_dev *dev); |
150 | 139 |
|
151 | 140 | /*!
|
152 | 141 | * @brief This API selects the sensors/features to be enabled.
|
@@ -534,7 +523,7 @@ int8_t bmi2_get_fifo_config(uint16_t *fifo_config, const struct bmi2_dev *dev);
|
534 | 523 | * @retval BMI2_E_NULL_PTR - Error: Null pointer error
|
535 | 524 | * @retval BMI2_E_COM_FAIL - Error: Communication fail
|
536 | 525 | */
|
537 |
| -int8_t set_gyro_self_test_crt(uint8_t *gyro_self_test_crt, struct bmi2_dev *dev); |
| 526 | +int8_t bmi2_set_gyro_self_test_crt(uint8_t *gyro_self_test_crt, struct bmi2_dev *dev); |
538 | 527 |
|
539 | 528 | /*!
|
540 | 529 | * @brief This API reads FIFO data.
|
|
0 commit comments