|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
39 #warning "The Lsm303dlhc I2C driver has not been tested. Use with caution."
46 enum Lsm303dlhcAccConfStatus acc;
47 enum Lsm303dlhcMagConfStatus mag;
void lsm303dlhc_i2c_read(struct Lsm303dlhc_i2c *lsm)
void lsm303dlhc_i2c_event(struct Lsm303dlhc_i2c *lsm)
struct i2c_transaction i2c_trans
Paparazzi fixed point algebra.
static void lsm303dlhc_i2c_periodic(struct Lsm303dlhc_i2c *lsm)
convenience function: read or start configuration if not already initialized
void lsm303dlhc_i2c_init(struct Lsm303dlhc_i2c *lsm, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Lsm303dlhc struct and set default config options.
volatile bool data_available
data ready flag
I2C transaction structure.
union Lsm303dlhc_i2c::@326 init_status
union Lsm303dlhc_i2c::@327 data_accel
bool initialized
config done flag
void lsm303dlhc_i2c_start_configure(struct Lsm303dlhc_i2c *lsm)
struct i2c_periph * i2c_p
union Lsm303dlhc_i2c::@328 config