Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak09970ctrl.h
- Revision:
- 13:d008249f0359
- Parent:
- 10:5c69b067d88a
- Child:
- 23:50c98b286e41
- Child:
- 27:41aa9fb23a2f
--- a/ak09970ctrl.h Wed Aug 10 23:50:53 2016 +0000 +++ b/ak09970ctrl.h Fri Aug 12 00:04:48 2016 +0000 @@ -34,16 +34,17 @@ virtual AkmSensor::Status stopSensor(); virtual AkmSensor::Status readSensorData(Message* msg); virtual AkmSensor::Status requestCommand(Message* in, Message* out); + virtual char* getSensorName(); void checkINT(); void detectINT(); - char* getSensorName(); private: bool event; uint8_t primaryId; uint8_t subId; AK09970* ak09970; + char* sensorName; // hold settings for AK09970 AK09970::Threshold threshold; @@ -54,7 +55,6 @@ AK09970::SwitchConfig switchConfig; InterruptIn* sw; - char* sensorName; }; #endif