Library for Bosch Sensortec BMI160 IMU

Dependents:   Rocket MAX32630FTHR_JOYSTICK MAX32630FTHR_IMU_Hello_World Pike_the_Flipper_Main_Branch ... more

Fork of BMI160 by Justin Jordan

Revision:
4:ebac8c8f6347
Parent:
3:e1770675eca4
Child:
5:35e032c8d8aa
--- a/bmi160.h	Fri Dec 09 00:29:29 2016 +0000
+++ b/bmi160.h	Fri Dec 09 00:45:10 2016 +0000
@@ -188,11 +188,19 @@
         ERROR_2,             ///<Listed as error
         LPM_INT_PFD,         ///<Low-power mode and interrupt uses pre-filtered 
                              ///<data
-        ODR_MISMATCH = 0x06, ///<ODRs of enabled sensors in headless mode do not 
-                             ///<match
+        ODR_MISMATCH = 0x06, ///<ODRs of enabled sensors in headerless mode do 
+                             ///<not match
         PFD_USED_LPM         ///<Pre-filtered data are used in low power mode
     };
     
+    enum PowerModes
+    {
+        SUSPEND = 0,  ///<Acc and Gyro, No sampling, No FIFO data readout
+        NORMAL,       ///<Acc and Gyro, Full chip operation
+        LOW_POWER,    ///<Acc duty-cycling between suspend and normal
+        FAST_START_UP ///<Gyro start up delay time to normal mode <= 10 ms
+    };
+    
     
     ///@brief BMI160 Destructor.\n
     ///