68 #endif // ADXL345_I2C_H
bool_t initialized
config done flag
void adxl345_i2c_event(struct Adxl345_I2c *adxl)
void adxl345_i2c_init(struct Adxl345_I2c *adxl, struct i2c_periph *i2c_p, uint8_t addr)
struct i2c_transaction i2c_trans
void adxl345_i2c_read(struct Adxl345_I2c *adxl)
enum Adxl345ConfStatus init_status
init status
struct Adxl345Config config
static void adxl345_i2c_periodic(struct Adxl345_I2c *adxl)
convenience function: read or start configuration if not already initialized
I2C transaction structure.
struct i2c_periph * i2c_p
volatile bool_t data_available
data ready flag
I2C peripheral structure.
Analog Devices ADXL345 accelerometer driver common interface (I2C and SPI).
void adxl345_i2c_start_configure(struct Adxl345_I2c *adxl)
Start configuration if not already done.
Paparazzi fixed point algebra.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
union Adxl345_I2c::@24 data