Basic functions is OK. Lack interrupts function.

Dependents:   Mt05_MtSense07

Revision:
3:14f634433c89
Parent:
1:4eefcf1d7351
--- a/AK9750.h	Thu Jan 26 03:22:34 2017 +0000
+++ b/AK9750.h	Thu Mar 23 08:42:16 2017 +0000
@@ -36,6 +36,14 @@
 
     static const uint8_t DEVICE_ID = 0x13;
 
+    /* Interrupts */
+    static const unsigned INT_DR    = 0x01; // Data ready
+    static const unsigned INT_IR24L = 0x02; // Lower threshold level
+    static const unsigned INT_IR24H = 0x04; // Upper threshold level
+    static const unsigned INT_IR13L = 0x08; // Lower threshold level
+    static const unsigned INT_IR13H = 0x10; // Upper threshold level
+
+public: 
     AK9750(I2C &i2c, PinName int1 = NC);
     
     void ConfigDevice();
@@ -43,6 +51,10 @@
     void GetData(Data *data);
     int32_t GetTriggeredAreaNum(Data *data);
     
+    /* Interrupts */
+    void    SetIntEvent(uint8_t int_enable, void(*fptr)(void));
+    uint8_t GetIntStatus();
+    
 private:
     I2C &_i2c;
     InterruptIn _int1;