|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
39 #ifndef IMU_MPU9250_READ_MAG
40 #define IMU_MPU9250_READ_MAG TRUE
44 #define MPU9250_BUFFER_EXT_LEN 16
74 #ifdef IMU_MPU9250_READ_MAG
95 #endif // MPU9250_I2C_H
@ MPU9250_I2C_CONF_I2C_MST_EN
Default Ak8963 structure.
struct i2c_periph * i2c_p
@ MPU9250_I2C_CONF_I2C_MST_DIS
enum Mpu9250I2cSlaveInitStatus slave_init_status
@ MPU9250_I2C_CONF_SLAVES_CONFIGURE
union Mpu9250_I2c::@336 data_rates
void mpu9250_i2c_start_configure(struct Mpu9250_I2c *mpu)
#define MPU9250_BUFFER_EXT_LEN
void mpu9250_i2c_init(struct Mpu9250_I2c *mpu, struct i2c_periph *i2c_p, uint8_t addr)
struct i2c_transaction i2c_trans
Paparazzi fixed point algebra.
struct Mpu9250Config config
uint8_t data_ext[MPU9250_BUFFER_EXT_LEN]
struct i2c_periph * i2c_p
peripheral used for communcation
static void mpu9250_i2c_periodic(struct Mpu9250_I2c *mpu)
convenience function: read or start configuration if not already initialized
Mpu9250I2cSlaveInitStatus
@ MPU9250_I2C_CONF_UNINIT
@ MPU9250_I2C_CONF_I2C_MST_CLK
I2C transaction structure.
union Mpu9250_I2c::@335 data_accel
@ MPU9250_I2C_CONF_I2C_MST_DELAY
void mpu9250_i2c_event(struct Mpu9250_I2c *mpu)
@ MPU9250_I2C_CONF_I2C_BYPASS_EN
@ MPU9250_I2C_CONF_I2C_BYPASS_DIS
volatile bool data_available
data ready flag
@ MPU9250_I2C_CONF_I2C_SMPLRT
bool initialized
config done flag
void mpu9250_i2c_read(struct Mpu9250_I2c *mpu)
struct Ak8963 akm
"internal" magnetometer