SPI peripheral structure.
SPI transaction structure.
ST L3GD20 3-axis gyroscope driver common interface (I2C and SPI).
struct spi_transaction spi_trans
static void l3gd20_spi_periodic(struct L3gd20_Spi *l3g)
convenience function: read or start configuration if not already initialized
struct spi_periph * spi_p
void l3gd20_spi_event(struct L3gd20_Spi *l3g)
volatile bool data_available
data ready flag
void l3gd20_spi_start_configure(struct L3gd20_Spi *l3g)
void l3gd20_spi_init(struct L3gd20_Spi *l3g, struct spi_periph *spi_p, uint8_t slave_idx)
enum L3gd20ConfStatus init_status
init status
volatile uint8_t rx_buf[8]
union L3gd20_Spi::@329 data_rates
struct L3gd20Config config
void l3gd20_spi_read(struct L3gd20_Spi *l3g)
bool initialized
config done flag
volatile uint8_t tx_buf[2]
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.