Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmakd.h
- Revision:
- 13:d008249f0359
- Parent:
- 10:5c69b067d88a
- Child:
- 18:b7182d5ad8d5
- Child:
- 23:50c98b286e41
--- a/akmakd.h Wed Aug 10 23:50:53 2016 +0000 +++ b/akmakd.h Fri Aug 12 00:04:48 2016 +0000 @@ -41,16 +41,17 @@ virtual AkmSensor::Status stopSensor(); virtual AkmSensor::Status readSensorData(Message* msg); virtual Status requestCommand(Message* in, Message* out); + virtual char* getSensorName(); void checkDRDY(); void detectDRDY(); int getSensorType(); - char* getSensorName(); private: bool event; uint8_t primaryId; uint8_t subId; + char* sensorName; Ticker ticker; AkmECompass* compass; @@ -58,7 +59,6 @@ AkmECompass::OperationMode mode; AkmECompass::Nsf nsf; AkmECompass::Sdr sdr; - char* sensorName; }; #endif