40 #ifndef SENSOR_MPU9250_H
41 #define SENSOR_MPU9250_H
59 #define ACC_RANGE_2G 0
60 #define ACC_RANGE_4G 1
61 #define ACC_RANGE_8G 2
62 #define ACC_RANGE_16G 3
63 #define ACC_RANGE_INVALID 0xFF
66 #define MPU_AX_GYR 0x07
67 #define MPU_AX_ACC 0x38
68 #define MPU_AX_MAG 0x40
69 #define MPU_AX_ALL 0x7F
72 #define MPU_DATA_READY 0x01
73 #define MPU_MOVEMENT 0x40
76 #define MAG_STATUS_OK 0x00
77 #define MAG_READ_ST_ERR 0x01
78 #define MAG_DATA_NOT_RDY 0x02
79 #define MAG_OVERFLOW 0x03
80 #define MAG_READ_DATA_ERR 0x04
81 #define MAG_BYPASS_FAIL 0x05
82 #define MAG_NO_POWER 0x06
bool SensorMpu9250_gyroRead(uint16_t *rawData)
uint8_t SensorMpu9250_magRead(int16_t *pRawData)
void SensorMpu9250_registerCallback(SensorMpu9250CallbackFn_t)
bool SensorMpu9250_accRead(uint16_t *rawData)
bool SensorMpu9250_magTest(void)
bool SensorMpu9250_test(void)
void SensorMpu9250_magReset(void)
void SensorMpu9250_enable(uint16_t config)
uint8_t SensorMpu9250_accReadRange(void)
void(* SensorMpu9250CallbackFn_t)(void)
Definition: SensorMpu9250.h:88
bool SensorMpu9250_accSetRange(uint8_t range)
bool SensorMpu9250_powerIsOn(void)
bool SensorMpu9250_init(void)
void SensorMpu9250_powerOff(void)
void SensorMpu9250_powerOn(void)
float SensorMpu9250_accConvert(int16_t rawValue)
uint8_t SensorMpu9250_magStatus(void)
bool SensorMpu9250_reset(void)
uint8_t SensorMpu9250_irqStatus(void)
bool SensorMpu9250_enableWom(uint8_t threshold)
float SensorMpu9250_gyroConvert(int16_t rawValue)