39 #define MPU9250_BUFFER_LEN 32
40 #define MPU9250_BUFFER_EXT_LEN 16
SPI peripheral structure.
SPI transaction structure.
MPU-60X0 driver common interface (I2C and SPI).
bool initialized
config done flag
void mpu9250_spi_init(struct Mpu9250_Spi *mpu, struct spi_periph *spi_p, uint8_t addr)
volatile bool data_available
data ready flag
uint8_t data_ext[MPU9250_BUFFER_EXT_LEN]
enum Mpu9250SpiSlaveInitStatus slave_init_status
volatile uint8_t rx_buf[MPU9250_BUFFER_LEN]
struct Mpu9250Config config
volatile uint8_t tx_buf[2]
union Mpu9250_Spi::@345 data_accel
void mpu9250_spi_read(struct Mpu9250_Spi *mpu)
static void mpu9250_spi_periodic(struct Mpu9250_Spi *mpu)
convenience function: read or start configuration if not already initialized
#define MPU9250_BUFFER_EXT_LEN
struct spi_periph * spi_p
struct spi_transaction spi_trans
union Mpu9250_Spi::@346 data_rates
#define MPU9250_BUFFER_LEN
void mpu9250_spi_start_configure(struct Mpu9250_Spi *mpu)
Mpu9250SpiSlaveInitStatus
@ MPU9250_SPI_CONF_UNINIT
@ MPU9250_SPI_CONF_SLAVES_CONFIGURE
@ MPU9250_SPI_CONF_I2C_MST_EN
@ MPU9250_SPI_CONF_I2C_MST_DELAY
@ MPU9250_SPI_CONF_I2C_MST_CLK
void mpu9250_spi_event(struct Mpu9250_Spi *mpu)
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.