37 #define MPU60X0_DEFAULT_SMPLRT_DIV 0
38 #define MPU60X0_DEFAULT_FS_SEL MPU60X0_GYRO_RANGE_2000
40 #define MPU60X0_DEFAULT_AFS_SEL MPU60X0_ACCEL_RANGE_16G
42 #define MPU60X0_DEFAULT_DLPF_CFG MPU60X0_DLPF_42HZ
44 #define MPU60X0_DEFAULT_INT_CFG 1
46 #define MPU60X0_DEFAULT_CLK_SEL 1
void mpu60x0_set_default_config(struct Mpu60x0Config *c)
Mpu60x0AccelRanges
Selectable accel range.
bool_t(* Mpu60x0I2cSlaveConfigure)(Mpu60x0ConfigSet mpu_set, void *mpu)
function prototype for configuration of a single I2C slave
uint8_t smplrt_div
Sample rate divider.
enum Mpu60x0GyroRanges gyro_range
deg/s Range
enum Mpu60x0AccelRanges accel_range
g Range
enum Mpu60x0DLPF dlpf_cfg
Digital Low Pass Filter.
Mpu60x0I2cSlaveConfigure configure
enum Mpu60x0ConfStatus init_status
init status
enum Mpu60x0MstClk i2c_mst_clk
MPU I2C master clock speed.
bool_t mpu60x0_configure_i2c_slaves(Mpu60x0ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
Mpu60x0GyroRanges
Selectable gyro range.
Mpu60x0DLPF
Digital Low Pass Filter Options DLFP is affecting both gyro and accels, with slightly different bandw...
Register and address definitions for MPU-6000 and MPU-6050.
uint8_t nb_slaves
number of used I2C slaves
void mpu60x0_send_config(Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
Configuration sequence called once before normal use.
uint8_t clk_sel
Clock select.
Mpu60x0MstClk
I2C Master clock.
bool_t initialized
config done flag
struct Mpu60x0I2cSlave slaves[5]
I2C slaves.
bool_t i2c_bypass
Bypass MPU I2C.
static const struct usb_config_descriptor config
uint8_t i2c_mst_delay
MPU I2C slaves delayed sample rate.
uint8_t nb_bytes
number of bytes to read starting with MPU60X0_REG_INT_STATUS
void(* Mpu60x0ConfigSet)(void *mpu, uint8_t _reg, uint8_t _val)
Configuration function prototype.
bool_t drdy_int_enable
Enable Data Ready Interrupt.