From 9587125842f839acd79956f4827231e2df66ffc2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 Nov 2019 15:45:56 +0100 Subject: MPU9250: Add AEMR DFA driver functions and model --- include/driver/mpu9250.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') 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; -- cgit v1.2.3