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