bool drdy_int_enable
Enable Data Ready Interrupt.
const float MPU9250_GYRO_SENS[4]
#define MPU9250_GYRO_SENS_1000
enum Mpu9250DLPFGyro dlpf_gyro_cfg
Digital Low Pass Filter for gyroscope.
#define MPU9250_SIG_COND_RESET
MPU-60X0 driver common interface (I2C and SPI).
#define MPU9250_DEFAULT_SMPLRT_DIV
Default sample rate divider.
enum Mpu9250GyroRanges gyro_range
deg/s Range
enum Mpu9250ConfStatus init_status
init status
uint8_t nb_bytes
number of bytes to read starting with MPU9250_REG_INT_STATUS
#define MPU9250_ACCEL_SENS_2G
default accel sensitivy from the datasheet sens = 9.81 [m/s^2] / [LSB/g] * 2^INT32_ACCEL_FRAC ex: MPU...
uint8_t clk_sel
Clock select.
#define MPU9250_GYRO_SENS_1000_NUM
#define MPU9250_ACCEL_SENS_16G_NUM
#define MPU9250_ACCEL_SENS_4G
#define MPU9250_DEFAULT_DLPF_GYRO_CFG
Default internal sampling (1kHz, 42Hz LP Bandwidth)
#define MPU9250_REG_ACCEL_CONFIG
#define MPU9250_DEFAULT_DLPF_ACCEL_CFG
Default internal sampling (1kHz, 42Hz LP Bandwidth)
enum Mpu9250DLPFAccel dlpf_accel_cfg
Digital Low Pass Filter for accelerometer.
bool i2c_bypass
Bypass MPU I2C.
#define MPU9250_ACCEL_SENS_8G
#define MPU9250_ACCEL_SENS_4G_NUM
bool mpu9250_configure_i2c_slaves(Mpu9250ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
#define MPU9250_REG_PWR_MGMT_1
#define MPU9250_FIFO_RESET
#define MPU9250_DEFAULT_FS_SEL
Default gyro full scale range +- 2000°/s.
#define MPU9250_REG_CONFIG
#define MPU9250_ACCEL_SENS_2G_DEN
void mpu9250_send_config(Mpu9250ConfigSet mpu_set, void *mpu, struct Mpu9250Config *config)
Configuration sequence called once before normal use.
#define MPU9250_GYRO_SENS_2000
#define MPU9250_ACCEL_SENS_16G_DEN
void(* Mpu9250ConfigSet)(void *mpu, uint8_t _reg, uint8_t _val)
Configuration function prototype.
#define MPU9250_GYRO_SENS_250
default gyro sensitivy from the datasheet sens = 1/ [LSB/(deg/s)] * pi/180 * 2^INT32_RATE_FRAC ex: MP...
const int32_t MPU9250_GYRO_SENS_FRAC[4][2]
#define MPU9250_GYRO_SENS_1000_DEN
#define MPU9250_I2C_MST_RESET
void mpu9250_set_default_config(struct Mpu9250Config *c)
const float MPU9250_ACCEL_SENS[4]
uint8_t nb_slaves
number of used I2C slaves
#define MPU9250_GYRO_SENS_2000_NUM
#define MPU9250_DEFAULT_AFS_SEL
Default accel full scale range +- 16g.
#define MPU9250_ACCEL_SENS_8G_NUM
enum Mpu9250AccelRanges accel_range
g Range
#define MPU9250_REG_USER_CTRL
#define MPU9250_GYRO_SENS_500_DEN
#define MPU9250_REG_ACCEL_CONFIG_2
static const struct usb_config_descriptor config
#define MPU9250_ACCEL_SENS_2G_NUM
#define MPU9250_GYRO_SENS_500
#define MPU9250_REG_GYRO_CONFIG
#define MPU9250_GYRO_SENS_2000_DEN
#define MPU9250_REG_SMPLRT_DIV
uint8_t nb_slave_init
number of already configured/initialized slaves
#define MPU9250_GYRO_SENS_500_NUM
uint8_t smplrt_div
Sample rate divider.
bool initialized
config done flag
#define MPU9250_ACCEL_SENS_8G_DEN
const int32_t MPU9250_ACCEL_SENS_FRAC[4][2]
#define MPU9250_GYRO_SENS_250_NUM
#define MPU9250_DEFAULT_CLK_SEL
Default clock: PLL with X gyro reference.
#define MPU9250_ACCEL_SENS_4G_DEN
#define MPU9250_ACCEL_SENS_16G
#define MPU9250_GYRO_SENS_250_DEN
#define MPU9250_REG_INT_ENABLE