Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmakd.h
- Revision:
- 20:2fca76521680
- Parent:
- 19:8dcc4f323bdc
- Child:
- 24:1d37438f31a9
- Child:
- 27:41aa9fb23a2f
--- a/akmakd.h Wed Feb 22 18:47:01 2017 +0000 +++ b/akmakd.h Wed Feb 22 21:56:05 2017 +0000 @@ -6,6 +6,9 @@ #include "akmsensor.h" #include "akmecompass.h" +#define AKDP_MAG_SENSITIVITY (0.15) // [uT/LSB] +#define AKDP_POLLING_FREQUENCY (200.0) // [Hz] + class AkmAkd : public AkmSensor { @@ -54,7 +57,7 @@ void detectDRDY(); int getSensorType(); InterruptMode getInterrupt(uint8_t primaryId, uint8_t subId); - AkmSensor::Status checkSensor( const uint8_t id, const uint8_t subid, AkmECompass::SensorType* type); + AkmSensor::Status checkSensor( const uint8_t primaryid, const uint8_t subid, AkmECompass::DeviceId* devid); private: bool event;