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::@235146153035017000173247215054100120100004253175 data_accel
uint8_t data_ext[MPU60X0_BUFFER_EXT_LEN]
struct Int16Vect3 vect
accel data vector in accel coordinate system
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
struct Int16Rates rates
rates data as angular rates in gyro coordinate system
enum Mpu60x0I2cSlaveInitStatus slave_init_status
int16_t value[3]
accel data values accessible by channel index
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
union Mpu60x0_I2c::@241333021246115240013367152077300052323051014123 data_rates
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.