STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
sfe_ism330dhcx_defs.h
Go to the documentation of this file.
1//Accelerometer Full Scale
2#define ISM_2g 0
3#define ISM_16g 1
4#define ISM_4g 2
5#define ISM_8g 3
6
7//Gyroscope Full Scale
8#define ISM_125dps 2
9#define ISM_250dps 0
10#define ISM_500dps 4
11#define ISM_1000dps 8
12#define ISM_2000dps 12
13#define ISM_4000dps 1
14
15//Acceleromter Output Data Rate
16#define ISM_XL_ODR_OFF 0
17#define ISM_XL_ODR_12Hz5 1
18#define ISM_XL_ODR_26Hz 2
19#define ISM_XL_ODR_52Hz 3
20#define ISM_XL_ODR_104Hz 4
21#define ISM_XL_ODR_208Hz 5
22#define ISM_XL_ODR_416Hz 6
23#define ISM_XL_ODR_833Hz 7
24#define ISM_XL_ODR_1666Hz 8
25#define ISM_XL_ODR_3332Hz 9
26#define ISM_XL_ODR_6667Hz 10
27#define ISM_XL_ODR_1Hz6 11
28
29//Gyroscope Output Data Rate
30#define ISM_GY_ODR_OFF 0
31#define ISM_GY_ODR_12Hz 1
32#define ISM_GY_ODR_26Hz 2
33#define ISM_GY_ODR_52Hz 3
34#define ISM_GY_ODR_104Hz 4
35#define ISM_GY_ODR_208Hz 5
36#define ISM_GY_ODR_416Hz 6
37#define ISM_GY_ODR_833Hz 7
38#define ISM_GY_ODR_1666Hz 8
39#define ISM_GY_ODR_3332Hz 9
40#define ISM_GY_ODR_6667Hz 10
41
42//Gyro Bandwidth set
43#define ISM_ULTRA_LIGHT 0
44#define ISM_VERY_LIGHT 1
45#define ISM_LIGHT 2
46#define ISM_MEDIUM 3
47#define ISM_STRONG 4
48#define ISM_VERY_STRONG 5
49#define ISM_AGGRESSIVE 6
50#define ISM_XTREME 7
51
52// Gyro high performance filters
53#define ISM_HP_FILTER_NONE 0x00
54#define ISM_HP_FILTER_16mHz 0x80
55#define ISM_HP_FILTER_65mHz 0x81
56#define ISM_HP_FILTER_260mHz 0x82
57#define ISM_HP_FILTER_1Hz04 0x83
58
59//Accel Regular Performance Filter Settings
60#define ISM_HP_PATH_DISABLE_ON_OUT 0x00
61#define ISM_SLOPE_ODR_DIV_4 0x10
62#define ISM_HP_ODR_DIV_10 0x11
63#define ISM_HP_ODR_DIV_20 0x12
64#define ISM_HP_ODR_DIV_45 0x13
65#define ISM_HP_ODR_DIV_100 0x14
66#define ISM_HP_ODR_DIV_200 0x15
67#define ISM_HP_ODR_DIV_400 0x16
68#define ISM_HP_ODR_DIV_800 0x17
69#define ISM_HP_REF_MD_ODR_DIV_10 0x31
70#define ISM_HP_REF_MD_ODR_DIV_20 0x32
71#define ISM_HP_REF_MD_ODR_DIV_45 0x33
72#define ISM_HP_REF_MD_ODR_DIV_100 0x34
73#define ISM_HP_REF_MD_ODR_DIV_200 0x35
74#define ISM_HP_REF_MD_ODR_DIV_400 0x36
75#define ISM_HP_REF_MD_ODR_DIV_800 0x37
76#define ISM_LP_ODR_DIV_10 0x01
77#define ISM_LP_ODR_DIV_20 0x02
78#define ISM_LP_ODR_DIV_45 0x03
79#define ISM_LP_ODR_DIV_100 0x04
80#define ISM_LP_ODR_DIV_200 0x05
81#define ISM_LP_ODR_DIV_400 0x06
82#define ISM_LP_ODR_DIV_800 0x07
83
84//FIFO Mode Settings
85#define ISM_BYPASS_MODE 0x00
86#define ISM_FIFO_MODE 0x01
87#define ISM_STREAM_TO_FIFO_MODE 0x03
88#define ISM_BYPASS_TO_STREAM_MODE 0x04
89#define ISM_STREAM_MODE 0x06
90#define ISM_BYPASS_TO_FIFO_MODE 0x07
91
92//FIFO Accelerometer Batch Settings
93#define ISM_XL_NOT_BATCHED 0x00
94#define ISM_XL_BATCH_AT_12Hz5 0x01
95#define ISM_XL_BATCH_AT_26Hz 0x02
96#define ISM_XL_BATCH_AT_52Hz 0x03
97#define ISM_XL_BATCH_AT_104Hz 0x04
98#define ISM_XL_BATCH_AT_208Hz 0x05
99#define ISM_XL_BATCH_AT_417Hz 0x06
100#define ISM_XL_BATCH_AT_833Hz 0x07
101#define ISM_XL_BATCH_AT_1667Hz 0x08
102#define ISM_XL_BATCH_AT_3333Hz 0x09
103#define ISM_XL_BATCH_AT_6667Hz 0x010
104#define ISM_XL_BATCH_6Hz5 0x011
105
106//FIFO Gyroscope Batch Settings
107#define ISM_GY_NOT_BATCHED 0x00
108#define ISM_GY_BATCH_AT_12Hz5 0x01
109#define ISM_GY_BATCH_AT_26Hz 0x02
110#define ISM_GY_BATCH_AT_52Hz 0x03
111#define ISM_GY_BATCH_AT_104Hz 0x04
112#define ISM_GY_BATCH_AT_208Hz 0x05
113#define ISM_GY_BATCH_AT_417Hz 0x06
114#define ISM_GY_BATCH_AT_833Hz 0x07
115#define ISM_GY_BATCH_AT_1667Hz 0x08
116#define ISM_GY_BATCH_AT_3333Hz 0x09
117#define ISM_GY_BATCH_AT_6667Hz 0x010
118#define ISM_GY_BATCH_6Hz5 0x011
119
120//Decimation rate
121#define ISM_NO_DECIMATION 0x00
122#define ISM_DEC_1 0x01
123#define ISM_DEC_8 0x02
124#define ISM_DEC_32 0x03
125
126//Interrupt pin notification settings.
127#define ISM_ALL_INT_PULSED 0x00
128#define ISM_BASE_LATCHED_EMB_PULSED 0x01
129#define ISM_BASE_PULSED_EMB_LATCHED 0x02
130#define ISM_ALL_INT_LATCHED 0x03
131
132#define ISM_SH_ODR_104Hz 0x00
133#define ISM_SH_ODR_52Hz 0x01
134#define ISM_SH_ODR_26Hz 0x02
135#define ISM_SH_ODR_13Hz 0x03