Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmakd.h
- Revision:
- 41:a3ea80c594ec
- Parent:
- 38:e865dadfe54d
- Child:
- 42:b48b3ab8690e
--- a/akmakd.h Wed Jul 19 23:30:22 2017 +0000 +++ b/akmakd.h Thu Aug 17 19:59:10 2017 +0000 @@ -6,15 +6,14 @@ #include "akmsensor.h" #include "akmecompass.h" -#define AKDP_MAG_SENSITIVITY (0.15) // [uT/LSB] -#define AKDP_POLLING_FREQUENCY (200.0) // [Hz] +#define AKDP_POLLING_FREQUENCY (10.0) // [Hz] /** * Collection class for handling commands to all of the specialty AKM * daughter board adapter modules. * * 3-Axis Electronic Compass Devices: AK8963C, AK8963N, AK09911C, AK09912C, - * AK09915C, AK09915D, AK09916C, AK09916D, AK09970 + * AK09915C, AK09915D, AK09916C, AK09916D, AK09917, AK09918, AK09940 */ class AkmAkd : public AkmSensor { @@ -37,6 +36,7 @@ SUB_ID_AK09915D = 0x10, /**< AK09915D: ID = 10h (16) */ SUB_ID_AK09918 = 0x11, /**< AK09918: ID = 11h (17) */ SUB_ID_AK09917 = 0x12, /**< AK09917: ID = 12h (18) */ + SUB_ID_AK09940 = 0x14, /**< AK09940: ID = 14h (20) */ } SubIdAkd; typedef enum { @@ -117,10 +117,8 @@ private: Ticker ticker; AkmECompass* compass; -// InterruptIn* drdy; - AkmECompass::OperationMode mode; - AkmECompass::Nsf nsf; - AkmECompass::Sdr sdr; + AkmECompass::Mode mode; + uint8_t lenOptions; }; #endif