MMA8451Q8g

Fork of MMA8451Q8b by Stanley Cohen

Revision:
13:b58b302c53f6
Parent:
12:12b18fdb72f7
--- a/MMA8451Q8g.h	Mon Feb 22 16:54:40 2016 +0000
+++ b/MMA8451Q8g.h	Wed Mar 15 16:48:06 2017 +0000
@@ -69,7 +69,6 @@
    * @returns WHO_AM_I value
    */
   uint8_t getWhoAmI();
-
   /**
    * Get X axis acceleration
    *
@@ -98,6 +97,7 @@
    *
    * @param res array where acceleration data will be stored
    */
+  
   void getAccAllAxis(float * res);
 
  int16_t getAccAxis(uint8_t addr);
@@ -115,6 +115,10 @@
   Set pulse config register
   **/
   void setPulseConfiguration(uint8_t latch,uint8_t axisSet);
+  void setPulseThreshold ( int axisSelect, int threshold);
+  void setPulseTimeLimit (int timeLimit);
+  void setPulseLatency(int latencyTime);
+  
   /**
   Generic register set mode for those needing to be 
   put in standby to update