uint8_t hres
high resolution output mode
volatile bool_t data_available
data ready flag
uint8_t lp_mode
Low power mode.
bool_t initialized
config done flag
struct i2c_periph * i2c_p
void lsm303dlhc_event(struct Lsm303dlhc *lsm)
union Lsm303dlhc::@40 config
Lsm303dlhcAccConfStatus
config status states
Register defs for ST LSM303DLHC 3D accelerometer and magnetometer.
uint8_t rate
Data Output Rate Bits(6 -> 50Hz with HMC5843, 75Hz with HMC5883)
Lsm303dlhcMagConfStatus
config status states
static void lsm303dlhc_periodic(struct Lsm303dlhc *lsm)
convenience function: read or start configuration if not already initialized
void lsm303dlhc_init(struct Lsm303dlhc *lsm, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Lsm303dlhc struct and set default config options.
I2C transaction structure.
union Lsm303dlhc::@39 data
uint8_t gain
Gain configuration (1 -> +- 1 Gauss)
I2C peripheral structure.
union Lsm303dlhc::@38 init_status
uint8_t mode
Measurement mode.
uint8_t rate
Data Output Rate Bits(6 -> 50Hz with HMC5843, 75Hz with HMC5883)
struct i2c_transaction i2c_trans
void lsm303dlhc_start_configure(struct Lsm303dlhc *lsm)
uint8_t scale
full scale selection
void lsm303dlhc_read(struct Lsm303dlhc *lsm)
Paparazzi fixed point algebra.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.