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