69 #endif // L3GD20_SPI_H
struct spi_transaction spi_trans
struct spi_periph * spi_p
enum L3gd20ConfStatus init_status
init status
ST L3GD20 3-axis gyroscope driver common interface (I2C and SPI).
SPI transaction structure.
void l3gd20_spi_init(struct L3gd20_Spi *l3g, struct spi_periph *spi_p, uint8_t slave_idx)
volatile uint8_t tx_buf[2]
static void l3gd20_spi_periodic(struct L3gd20_Spi *l3g)
convenience function: read or start configuration if not already initialized
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
void l3gd20_spi_start_configure(struct L3gd20_Spi *l3g)
union L3gd20_Spi::@319 data_rates
volatile uint8_t rx_buf[8]
bool initialized
config done flag
void l3gd20_spi_event(struct L3gd20_Spi *l3g)
volatile bool data_available
data ready flag
void l3gd20_spi_read(struct L3gd20_Spi *l3g)
struct L3gd20Config config
Paparazzi fixed point algebra.