Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak9750ctrl.h
- Revision:
- 13:d008249f0359
- Parent:
- 10:5c69b067d88a
- Child:
- 23:50c98b286e41
- Child:
- 27:41aa9fb23a2f
--- a/ak9750ctrl.h Wed Aug 10 23:50:53 2016 +0000 +++ b/ak9750ctrl.h Fri Aug 12 00:04:48 2016 +0000 @@ -11,7 +11,8 @@ public: typedef enum { - SUB_ID_AK9750 = 0x01 + SUB_ID_AK9750 = 0x01, + SUB_ID_AK9753 = 0x03, } SubIdIrSensor; /** @@ -32,6 +33,7 @@ virtual AkmSensor::Status stopSensor(); virtual AkmSensor::Status readSensorData(Message* msg); virtual AkmSensor::Status requestCommand(Message* in, Message* out); + virtual char* getSensorName(); void detectINT(); @@ -42,6 +44,7 @@ AK9750* ak9750; InterruptIn* interrupt; Ticker ticker; + char* sensorName; // hold settings AK9750::OperationMode mode;