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