Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmsensormanager.h
- Revision:
- 2:11fe67783c4c
- Parent:
- 0:7a00359e701e
- Child:
- 6:c4401549d68f
--- a/akmsensormanager.h Thu May 05 00:19:39 2016 +0000 +++ b/akmsensormanager.h Thu May 05 21:11:23 2016 +0000 @@ -5,6 +5,11 @@ #include "SerialNano.h" #include "akmsensor.h" #include "Message.h" +#include "debug.h" + +#ifdef REV_D +#include "mcp342x.h" +#endif #define ANALOG_SENSOR_ID P0_4 #define ANALOG_SENSOR_ID_SUB P0_5 @@ -50,6 +55,10 @@ AkmSensor* getAkmSensor(); uint8_t getId(PinName pin, uint8_t bits); void dataOut(char* str); + +#ifdef REV_D + int16_t getAdcData(MCP342X *mcp3428, MCP342X::AdcChannel ch, MCP342X::SampleSetting s); +#endif }; #endif // AKMSENSORMANAGER_H