upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Main Page
Related Pages
UPM Libraries
Namespaces
Data Structures
Files
File List
Globals
src
bmi160
bmi160_defs.h
1
/*
2
* Author: Jon Trulson <jtrulson@ics.com>
3
* Copyright (c) 2017 Intel Corporation.
4
*
5
* The MIT License
6
*
7
* Permission is hereby granted, free of charge, to any person obtaining
8
* a copy of this software and associated documentation files (the
9
* "Software"), to deal in the Software without restriction, including
10
* without limitation the rights to use, copy, modify, merge, publish,
11
* distribute, sublicense, and/or sell copies of the Software, and to
12
* permit persons to whom the Software is furnished to do so, subject to
13
* the following conditions:
14
*
15
* The above copyright notice and this permission notice shall be
16
* included in all copies or substantial portions of the Software.
17
*
18
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
*/
26
#pragma once
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
#define BMI160_CHIP_ID 0xd1
33
34
typedef
enum
{
35
BMI160_ACC_RANGE_2G = 0,
// 2 Gravities
36
BMI160_ACC_RANGE_4G,
37
BMI160_ACC_RANGE_8G,
38
BMI160_ACC_RANGE_16G
39
} BMI160_ACC_RANGE_T;
40
41
typedef
enum
{
42
BMI160_GYRO_RANGE_125 = 0,
// 125 degrees/sec
43
BMI160_GYRO_RANGE_250,
44
BMI160_GYRO_RANGE_500,
45
BMI160_GYRO_RANGE_1000,
46
BMI160_GYRO_RANGE_2000
47
} BMI160_GYRO_RANGE_T;
48
49
#ifdef __cplusplus
50
}
51
#endif
Generated on Wed Nov 21 2018 10:43:50 for upm by
1.8.11