39 #define MPU60X0_BUFFER_EXT_LEN 16
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
MPU-60X0 driver common interface (I2C and SPI).
bool initialized
config done flag
struct i2c_transaction i2c_trans
volatile bool data_available
data ready flag
void mpu60x0_i2c_init(struct Mpu60x0_I2c *mpu, struct i2c_periph *i2c_p, uint8_t addr)
void mpu60x0_i2c_start_configure(struct Mpu60x0_I2c *mpu)
union Mpu60x0_I2c::@340 data_rates
union Mpu60x0_I2c::@339 data_accel
uint8_t data_ext[MPU60X0_BUFFER_EXT_LEN]
void mpu60x0_i2c_event(struct Mpu60x0_I2c *mpu)
static void mpu60x0_i2c_periodic(struct Mpu60x0_I2c *mpu)
convenience function: read or start configuration if not already initialized
#define MPU60X0_BUFFER_EXT_LEN
enum Mpu60x0I2cSlaveInitStatus slave_init_status
struct i2c_periph * i2c_p
Mpu60x0I2cSlaveInitStatus
@ MPU60X0_I2C_CONF_I2C_BYPASS_DIS
@ MPU60X0_I2C_CONF_I2C_MST_CLK
@ MPU60X0_I2C_CONF_I2C_MST_DELAY
@ MPU60X0_I2C_CONF_I2C_MST_DIS
@ MPU60X0_I2C_CONF_I2C_MST_EN
@ MPU60X0_I2C_CONF_UNINIT
@ MPU60X0_I2C_CONF_I2C_BYPASS_EN
@ MPU60X0_I2C_CONF_SLAVES_CONFIGURE
@ MPU60X0_I2C_CONF_I2C_SMPLRT
float temp
temperature in degrees Celcius
struct Mpu60x0Config config
void mpu60x0_i2c_read(struct Mpu60x0_I2c *mpu)
Paparazzi fixed point algebra.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.