enhancing Multitech's library for some accelerometer

Fork of MMA845x by Multi-Hackers

Revision:
11:8dc4f77b2f53
Parent:
8:0eb2995f0ecb
Child:
12:92294b5ca1c1
--- a/MMA845x.h	Mon Jul 02 22:21:01 2018 +0000
+++ b/MMA845x.h	Mon Jul 02 22:52:24 2018 +0000
@@ -219,6 +219,30 @@
     };
 
     /**
+     *  @enum INTERRUPT_CFG_AND_ENABLE
+     *  @brief used to enable interrupts for corresponding functions
+     */
+    enum INTERRUPT_CFG_AND_ENABLE {
+        INT_DRDY = 0x00,
+        // 0x20 missing,
+        INT_FF_MT = 0x04,
+        INT_PULSE = 0x08,
+        INT_LNDPRT = 0x10,
+        INT_TRANS = 0x20,
+        INT_FIFO = 0x40,
+        INT_ASLP = 0x80
+    }
+    
+    /**
+     *  @enum INTERRUPT_PIN
+     *  @brief chooses interrupt pin used to signal interrupt condition
+     */
+    enum INTERRUPT_PIN {
+        INT1 = 1,
+        INT2 = 0
+    }
+
+    /**
      *  @enum REGISTER
      *  @brief The device register map
      */