diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-28 15:45:56 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-28 15:45:56 +0100 |
commit | 9587125842f839acd79956f4827231e2df66ffc2 (patch) | |
tree | 6bad01d68a25358ccc04f60bc22f6b8315284253 /include/driver | |
parent | e5436cc50e489487a150c5a6c8bff085ba4c63c7 (diff) |
MPU9250: Add AEMR DFA driver functions and model
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/mpu9250.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/driver/mpu9250.h b/include/driver/mpu9250.h index 3ebcb17..914a9e0 100644 --- a/include/driver/mpu9250.h +++ b/include/driver/mpu9250.h @@ -273,6 +273,7 @@ class MPU9250 { void getAccel(float *g_x, float *g_y, float *g_z); void getGyro(float *dps_x, float *dps_y, float *dps_z); void getMagnet(int *x, int *y, int *z); + float getTemperature(); void setAccelEnable(bool x, bool y, bool z); void setGyroEnable(bool x, bool y, bool z); void setGyroStandby(bool gyroStandby); @@ -282,7 +283,14 @@ class MPU9250 { void AGWakeup(); void MagSleep(); void MagWakeup(); - float getTemperature(); + + // mpu9250.dfa + void sleep(); + void standby(); + void lowPowerAccelOnly(unsigned char rate); + void accelOnly(); + void gyroOnly(); + void magnetOnly(); }; extern MPU9250 mpu9250; |