Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmsensormanager.h
- Revision:
- 10:5c69b067d88a
- Parent:
- 6:c4401549d68f
- Child:
- 11:cef8dc1cf010
--- a/akmsensormanager.h Thu Jun 16 18:36:26 2016 +0000 +++ b/akmsensormanager.h Fri Jul 08 22:26:26 2016 +0000 @@ -23,7 +23,7 @@ } Status; AkmSensorManager(SerialNano* com, UARTService* service); - Status init(); + Status init(uint8_t id, uint8_t subid); void setEventConnected(); void setEventDisconnected(); Status commandReceived(char* buf); @@ -33,7 +33,8 @@ void processCommand(); Status throwMessage(const Message *msg); - void releaseTWI(); +// void releaseTWI(); + uint8_t getId(PinName pin, uint8_t bits); private: @@ -42,7 +43,7 @@ UARTService* uartService; Message msg; - uint8_t id; + uint8_t primaryId; uint8_t subId; bool isEnabledBle; bool isEnabledUsb; @@ -54,7 +55,6 @@ char userCommand[20]; AkmSensor* getAkmSensor(); - uint8_t getId(PinName pin, uint8_t bits); void dataOut(char* str); #ifdef REV_D