Analog Devices ADXL345 accelerometer driver common interface (I2C and SPI).
volatile uint8_t rx_buf[7]
void adxl345_spi_start_configure(struct Adxl345_Spi *adxl)
struct Adxl345Config config
volatile uint8_t tx_buf[7]
struct spi_periph * spi_p
bool initialized
config done flag
union Adxl345_Spi::@309 data
enum Adxl345ConfStatus init_status
init status
volatile bool data_available
data ready flag
struct spi_transaction spi_trans
static void adxl345_spi_periodic(struct Adxl345_Spi *adxl)
convenience function: read or start configuration if not already initialized
void adxl345_spi_init(struct Adxl345_Spi *adxl, struct spi_periph *spi_p, uint8_t addr)
void adxl345_spi_event(struct Adxl345_Spi *adxl)
void adxl345_spi_read(struct Adxl345_Spi *adxl)
SPI peripheral structure.
SPI transaction structure.
Paparazzi fixed point algebra.
Architecture independent SPI (Serial Peripheral Interface) API.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.