You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#defineDATA_OUT_CTL2 (4 * 16 + 2) // 16-bit: Data output control 2 register : configure the BM, accel/gyro/compass accuracy and gesture such as Pick-up
39
41
#defineDATA_INTR_CTL (4 * 16 + 12) // 16-bit: Determines which sensors can generate interrupt according to bit map defined for DATA_OUT_CTL1
40
42
#defineFIFO_WATERMARK (31 * 16 + 14) // 16-bit: DMP will send FIFO interrupt if FIFO count > FIFO watermark. FIFO watermark is set to 80% of actual FIFO size by default
43
+
41
44
// motion event control
42
45
#defineMOTION_EVENT_CTL (4 * 16 + 14) // 16-bit: configure DMP for Android L and Invensense specific features
46
+
47
+
// indicates to DMP which sensors are available
48
+
/* 1: gyro samples available
49
+
2: accel samples available
50
+
8: secondary samples available */
43
51
#defineDATA_RDY_STATUS (8 * 16 + 10) // 16-bit: indicates to DMP which sensors are available
#defineWOM_THRESHOLD_DMP (64 * 16) // Renamed by PaulZC to avoid duplication with the Bank 2 Reg 0x13
199
+
#defineWOM_CNTR_TH (64 * 16 + 12)
200
+
201
+
// Activity Recognition
202
+
#defineBAC_RATE (48 * 16 + 10)
203
+
#defineBAC_STATE (179 * 16 + 0)
204
+
#defineBAC_STATE_PREV (179 * 16 + 4)
205
+
#defineBAC_ACT_ON (182 * 16 + 0)
206
+
#defineBAC_ACT_OFF (183 * 16 + 0)
207
+
#defineBAC_STILL_S_F (177 * 16 + 0)
208
+
#defineBAC_RUN_S_F (177 * 16 + 4)
209
+
#defineBAC_DRIVE_S_F (178 * 16 + 0)
210
+
#defineBAC_WALK_S_F (178 * 16 + 4)
211
+
#defineBAC_SMD_S_F (178 * 16 + 8)
212
+
#defineBAC_BIKE_S_F (178 * 16 + 12)
213
+
#defineBAC_E1_SHORT (146 * 16 + 0)
214
+
#defineBAC_E2_SHORT (146 * 16 + 4)
215
+
#defineBAC_E3_SHORT (146 * 16 + 8)
216
+
#defineBAC_VAR_RUN (148 * 16 + 12)
217
+
#defineBAC_TILT_INIT (181 * 16 + 0)
218
+
#defineBAC_MAG_ON (225 * 16 + 0)
219
+
#defineBAC_PS_ON (74 * 16 + 0)
220
+
#defineBAC_BIKE_PREFERENCE (173 * 16 + 8)
221
+
#defineBAC_MAG_I2C_ADDR (229 * 16 + 8)
222
+
#defineBAC_PS_I2C_ADDR (75 * 16 + 4)
223
+
#defineBAC_DRIVE_CONFIDENCE (144 * 16 + 0)
224
+
#defineBAC_WALK_CONFIDENCE (144 * 16 + 4)
225
+
#defineBAC_SMD_CONFIDENCE (144 * 16 + 8)
226
+
#defineBAC_BIKE_CONFIDENCE (144 * 16 + 12)
227
+
#defineBAC_STILL_CONFIDENCE (145 * 16 + 0)
228
+
#defineBAC_RUN_CONFIDENCE (145 * 16 + 4)
229
+
#defineBAC_MODE_CNTR (150 * 16)
230
+
#defineBAC_STATE_T_PREV (185 * 16 + 4)
231
+
#defineBAC_ACT_T_ON (184 * 16 + 0)
232
+
#defineBAC_ACT_T_OFF (184 * 16 + 4)
233
+
#defineBAC_STATE_WRDBS_PREV (185 * 16 + 8)
234
+
#defineBAC_ACT_WRDBS_ON (184 * 16 + 8)
235
+
#defineBAC_ACT_WRDBS_OFF (184 * 16 + 12)
236
+
#defineBAC_ACT_ON_OFF (190 * 16 + 2)
237
+
#definePREV_BAC_ACT_ON_OFF (188 * 16 + 2)
238
+
#defineBAC_CNTR (48 * 16 + 2)
239
+
240
+
// Flip/Pick-up
241
+
#defineFP_VAR_ALPHA (245 * 16 + 8)
242
+
#defineFP_STILL_TH (246 * 16 + 4)
243
+
#defineFP_MID_STILL_TH (244 * 16 + 8)
244
+
#defineFP_NOT_STILL_TH (246 * 16 + 8)
245
+
#defineFP_VIB_REJ_TH (241 * 16 + 8)
246
+
#defineFP_MAX_PICKUP_T_TH (244 * 16 + 12)
247
+
#defineFP_PICKUP_TIMEOUT_TH (248 * 16 + 8)
248
+
#defineFP_STILL_CONST_TH (246 * 16 + 12)
249
+
#defineFP_MOTION_CONST_TH (240 * 16 + 8)
250
+
#defineFP_VIB_COUNT_TH (242 * 16 + 8)
251
+
#defineFP_STEADY_TILT_TH (247 * 16 + 8)
252
+
#defineFP_STEADY_TILT_UP_TH (242 * 16 + 12)
253
+
#defineFP_Z_FLAT_TH_MINUS (243 * 16 + 8)
254
+
#defineFP_Z_FLAT_TH_PLUS (243 * 16 + 12)
255
+
#defineFP_DEV_IN_POCKET_TH (76 * 16 + 12)
256
+
#defineFP_PICKUP_CNTR (247 * 16 + 4)
257
+
#defineFP_RATE (240 * 16 + 12)
258
+
259
+
// Gyro FSR
260
+
#defineGYRO_FULLSCALE (72 * 16 + 12)
261
+
94
262
// Accel FSR
95
263
// The DMP scales accel raw data internally to align 1g as 2^25.
96
264
// To do this and output hardware unit again as configured FSR, write 0x4000000 to ACC_SCALE DMP register, and write 0x40000 to ACC_SCALE2 DMP register.
97
265
#defineACC_SCALE (30 * 16 + 0) // 32-bit: Write accel scaling value for internal use
98
266
#defineACC_SCALE2 (79 * 16 + 4) // 32-bit: Write accel scaling down value
0 commit comments