#define MPU60X0_REG_USER_CTRL
#define MPU60X0_REG_PWR_MGMT_1
bool initialized
config done flag
uint8_t smplrt_div
Sample rate divider.
uint8_t nb_slave_init
number of already configured/initialized slaves
#define MPU60X0_REG_SMPLRT_DIV
#define MPU60X0_REG_CONFIG
enum Mpu60x0GyroRanges gyro_range
deg/s Range
enum Mpu60x0AccelRanges accel_range
g Range
bool drdy_int_enable
Enable Data Ready Interrupt.
enum Mpu60x0DLPF dlpf_cfg
Digital Low Pass Filter.
#define MPU60X0_FIFO_RESET
enum Mpu60x0ConfStatus init_status
init status
#define MPU60X0_DEFAULT_AFS_SEL
Default accel full scale range +- 16g.
uint8_t nb_slaves
number of used I2C slaves
uint8_t clk_sel
Clock select.
void mpu60x0_send_config(Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
Configuration sequence called once before normal use.
bool mpu60x0_configure_i2c_slaves(Mpu60x0ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
#define MPU60X0_DEFAULT_DLPF_CFG
Default internal sampling (1kHz, 42Hz LP Bandwidth)
static const struct usb_config_descriptor config
#define MPU60X0_DEFAULT_CLK_SEL
Default clock: PLL with X gyro reference.
#define MPU60X0_SIG_COND_RESET
MPU-60X0 driver common interface (I2C and SPI).
#define MPU60X0_I2C_MST_RESET
#define MPU60X0_DEFAULT_SMPLRT_DIV
Default sample rate divider.
bool i2c_bypass
Bypass MPU I2C.
#define MPU60X0_REG_INT_ENABLE
void mpu60x0_set_default_config(struct Mpu60x0Config *c)
uint8_t nb_bytes
number of bytes to read starting with MPU60X0_REG_INT_STATUS
#define MPU60X0_REG_GYRO_CONFIG
void(* Mpu60x0ConfigSet)(void *mpu, uint8_t _reg, uint8_t _val)
Configuration function prototype.
#define MPU60X0_REG_ACCEL_CONFIG
#define MPU60X0_DEFAULT_FS_SEL
Default gyro full scale range +- 2000°/s.