Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
29:b488d2c89fba
Parent:
27:41aa9fb23a2f
Child:
34:1ea3357c8d9a
--- a/ak09970ctrl.h	Sat Mar 11 02:08:32 2017 +0000
+++ b/ak09970ctrl.h	Fri Mar 17 23:29:20 2017 +0000
@@ -10,6 +10,8 @@
 {
 
 public:
+    
+    typedef AkmSensor base;
 
     // SUB ID
     typedef enum {                           // 5bit ID
@@ -33,12 +35,11 @@
     virtual AkmSensor::Status stopSensor();
     virtual AkmSensor::Status readSensorData(Message* msg);
     virtual AkmSensor::Status requestCommand(Message* in, Message* out);
-
-    void checkINT();
-    void detectINT();
+    virtual void setEvent();
     
 private:
     AK09970*        ak09970;
+//    InterruptIn*    interrupt;
 
     // hold settings for AK09970
     AK09970::Threshold threshold;
@@ -47,8 +48,6 @@
     AK09970::SensorMeasurementRange sensorMeasurementRange;
     AK09970::ReadConfig readConfig;
     AK09970::SwitchConfig switchConfig;
-
-    InterruptIn*    sw;    
 };
 
 #endif