39 #warning "The Lsm303dlhc I2C driver has not been tested. Use with caution."
46 enum Lsm303dlhcAccConfStatus acc;
47 enum Lsm303dlhcMagConfStatus mag;
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
Driver for ST LSM303DLHC 3D accelerometer and magnetometer.
volatile bool data_available
data ready flag
void lsm303dlhc_i2c_read(struct Lsm303dlhc_i2c *lsm)
static void lsm303dlhc_i2c_periodic(struct Lsm303dlhc_i2c *lsm)
convenience function: read or start configuration if not already initialized
union Lsm303dlhc_i2c::@335 data_accel
void lsm303dlhc_i2c_init(struct Lsm303dlhc_i2c *lsm, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Lsm303dlhc struct and set default config options.
union Lsm303dlhc_i2c::@336 config
struct i2c_transaction i2c_trans
struct i2c_periph * i2c_p
bool initialized
config done flag
union Lsm303dlhc_i2c::@334 init_status
void lsm303dlhc_i2c_event(struct Lsm303dlhc_i2c *lsm)
void lsm303dlhc_i2c_start_configure(struct Lsm303dlhc_i2c *lsm)
Paparazzi fixed point algebra.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.