28 #ifndef LIS302DL_SPI_H
29 #define LIS302DL_SPI_H
70 #endif // LIS302DL_SPI_H
void lis302dl_spi_event(struct Lis302dl_Spi *lis)
struct spi_periph * spi_p
enum Lis302dlConfStatus init_status
init status
SPI transaction structure.
struct spi_transaction spi_trans
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
void lis302dl_spi_read(struct Lis302dl_Spi *lis)
static void lis302dl_spi_periodic(struct Lis302dl_Spi *lis)
convenience function: read or start configuration if not already initialized
volatile bool data_available
data ready flag
volatile uint8_t rx_buf[8]
void lis302dl_spi_init(struct Lis302dl_Spi *lis, struct spi_periph *spi_p, uint8_t addr)
void lis302dl_spi_start_configure(struct Lis302dl_Spi *lis)
struct Lis302dlConfig config
union Lis302dl_Spi::@305 data
bool initialized
config done flag
volatile uint8_t tx_buf[2]
ST LIS302DL 3-axis accelerometer driver common interface (I2C and SPI).
Paparazzi fixed point algebra.