68 #endif // ADXL345_I2C_H
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
bool initialized
config done flag
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.
union Adxl345_I2c::@291 data
struct i2c_periph * i2c_p
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.
volatile bool data_available
data ready flag
Architecture independent I2C (Inter-Integrated Circuit Bus) API.