Skip to content

Commit 886f52e

Browse files
BST-Github-Adminkegov
authored andcommitted
Update license. Update the core API.
1 parent da41785 commit 886f52e

File tree

9 files changed

+2943
-1549
lines changed

9 files changed

+2943
-1549
lines changed

LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved.
2+
3+
BSD-3-Clause
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23+
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30+
POSSIBILITY OF SUCH DAMAGE.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BMI2xy Sensor API v2.34.0
1+
BMI2xy Sensor API
22

33
> This package contains BMI2xy sensor API
44

bmi2.c

+1,916-469
Large diffs are not rendered by default.

bmi2.h

+38-49
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,40 @@
11
/**
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_
4938
#define BMI2_H_
5039

5140
/*! CPP guard */
@@ -146,7 +135,7 @@ int8_t bmi2_soft_reset(struct bmi2_dev *dev);
146135
* @retval BMI2_E_NULL_PTR - Error: Null pointer error
147136
* @retval BMI2_E_COM_FAIL - Error: Communication fail
148137
*/
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);
150139

151140
/*!
152141
* @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);
534523
* @retval BMI2_E_NULL_PTR - Error: Null pointer error
535524
* @retval BMI2_E_COM_FAIL - Error: Communication fail
536525
*/
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);
538527

539528
/*!
540529
* @brief This API reads FIFO data.

0 commit comments

Comments
 (0)