Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmakd.h
- Revision:
- 29:b488d2c89fba
- Parent:
- 27:41aa9fb23a2f
- Child:
- 34:1ea3357c8d9a
--- a/akmakd.h Sat Mar 11 02:08:32 2017 +0000 +++ b/akmakd.h Fri Mar 17 23:29:20 2017 +0000 @@ -13,6 +13,8 @@ { public: + + typedef AkmSensor base; // SUB ID typedef enum { // 5bit AKDP Secondary ID @@ -50,9 +52,8 @@ virtual AkmSensor::Status stopSensor(); virtual AkmSensor::Status readSensorData(Message* msg); virtual Status requestCommand(Message* in, Message* out); - - void checkDRDY(); - void detectDRDY(); + virtual void setEvent(); + int getSensorType(); InterruptMode getInterrupt(uint8_t primaryId, uint8_t subId); AkmSensor::Status checkSensor( const uint8_t primaryid, const uint8_t subid, AkmECompass::DeviceId* devid); @@ -60,7 +61,7 @@ private: Ticker ticker; AkmECompass* compass; - InterruptIn* drdy; +// InterruptIn* drdy; AkmECompass::OperationMode mode; AkmECompass::Nsf nsf; AkmECompass::Sdr sdr;