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.
void adxl345_i2c_read(struct Adxl345_I2c *adxl)
struct Adxl345Config config
volatile bool data_available
data ready flag
bool initialized
config done flag
struct i2c_periph * i2c_p
enum Adxl345ConfStatus init_status
init status
static void adxl345_i2c_periodic(struct Adxl345_I2c *adxl)
convenience function: read or start configuration if not already initialized
void adxl345_i2c_init(struct Adxl345_I2c *adxl, struct i2c_periph *i2c_p, uint8_t addr)
union Adxl345_I2c::@308 data
void adxl345_i2c_event(struct Adxl345_I2c *adxl)
struct i2c_transaction i2c_trans
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
Paparazzi fixed point algebra.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.