#define MPU60X0_REG_USER_CTRL
#define MPU60X0_REG_PWR_MGMT_1
uint8_t smplrt_div
Sample rate divider.
#define MPU60X0_REG_SMPLRT_DIV
#define MPU60X0_REG_CONFIG
enum Mpu60x0GyroRanges gyro_range
deg/s Range
enum Mpu60x0AccelRanges accel_range
g Range
enum Mpu60x0DLPF dlpf_cfg
Digital Low Pass Filter.
#define MPU60X0_FIFO_RESET
enum Mpu60x0ConfStatus init_status
init status
bool_t mpu60x0_configure_i2c_slaves(Mpu60x0ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
#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.
bool_t initialized
config done flag
bool_t i2c_bypass
Bypass MPU I2C.
void mpu60x0_send_config(Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
Configuration sequence called once before normal use.
#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.
#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.
bool_t drdy_int_enable
Enable Data Ready Interrupt.
#define MPU60X0_REG_ACCEL_CONFIG
#define MPU60X0_DEFAULT_FS_SEL
Default gyro full scale range +- 2000°/s.