Glimit

Fork of MMA8451Q8 by Stanley Cohen

Revision:
8:a515da97b396
Parent:
5:be042e8c1756
diff -r 7812354ef684 -r a515da97b396 MMA8451Q8.h
--- a/MMA8451Q8.h	Wed Feb 22 15:35:47 2017 +0000
+++ b/MMA8451Q8.h	Wed Mar 08 05:15:45 2017 +0000
@@ -97,16 +97,22 @@
    * @param res array where acceleration data will be stored
    */
   void getAccAllAxis(float * res);
-
-
+  
+  int16_t getAccAxis(uint8_t addr);
+  
   I2C m_i2c;
   int m_addr;
+  int gChosen;
+  
+  /** Allow user to get max g's **/
   void readRegs(int addr, uint8_t * data, int len);
   void writeRegs(uint8_t * data, int len);
-  void setGLimit(); 
+  void setGLimit(int gSelect);
+  void setStandbyMode();
+  void setActiveMode(); 
   
 private: 
-  int16_t getAccAxis(uint8_t addr);
+ 
 
 };