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
Changing the way inv_icm20948_enable_dmp_sensor and inv_icm20948_enable_dmp_sensor_int work
This commit makes inv_icm20948_enable_dmp_sensor and inv_icm20948_enable_dmp_sensor_int more like the InvenSense example.
_enabled_Android_0/1 and _enabled_Android_intr_0/1 keep track of which sensors/interrupts are enabled, so that more than one sensor can be enabled. Sensors can now be disabled too if required.
Adding ICM_20948_Stat_FIFOIncompleteData as a return value for inv_icm20948_read_dmp_data.
Copy file name to clipboardExpand all lines: DMP.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ The DMP data is returned via the FIFO (First In First Out). ```readDMPdataFromFI
74
74
-```ICM_20948_Stat_FIFONoDataAvail``` if no data or incomplete data is available
75
75
-```ICM_20948_Stat_Ok``` if a valid frame was read
76
76
-```ICM_20948_Stat_FIFOMoreDataAvail``` if a valid frame was read _and_ the FIFO contains more (unread) data
77
+
-```ICM_20948_Stat_FIFOIncompleteData``` if a frame was present in the FIFO but it was incomplete
77
78
78
79
You can examine the 16-bit ```icm_20948_DMP_data_t data.header``` to see what data the frame contained. ```data.header``` is a bit field; each bit indicates what data is present:
0 commit comments