39 #define MPU9250_BUFFER_LEN 32
40 #define MPU9250_BUFFER_EXT_LEN 16
86 #endif // MPU9250_SPI_H
volatile uint8_t tx_buf[2]
MPU-60X0 driver common interface (I2C and SPI).
static void mpu9250_spi_periodic(struct Mpu9250_Spi *mpu)
convenience function: read or start configuration if not already initialized
void mpu9250_spi_read(struct Mpu9250_Spi *mpu)
#define MPU9250_BUFFER_LEN
void mpu9250_spi_start_configure(struct Mpu9250_Spi *mpu)
SPI transaction structure.
union Mpu9250_Spi::@318 data_accel
union Mpu9250_Spi::@319 data_rates
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
enum Mpu9250SpiSlaveInitStatus slave_init_status
#define MPU9250_BUFFER_EXT_LEN
uint8_t data_ext[MPU9250_BUFFER_EXT_LEN]
struct Mpu9250Config config
struct spi_periph * spi_p
void mpu9250_spi_init(struct Mpu9250_Spi *mpu, struct spi_periph *spi_p, uint8_t addr)
volatile bool data_available
data ready flag
bool initialized
config done flag
Mpu9250SpiSlaveInitStatus
struct spi_transaction spi_trans
volatile uint8_t rx_buf[MPU9250_BUFFER_LEN]
void mpu9250_spi_event(struct Mpu9250_Spi *mpu)
Paparazzi fixed point algebra.