39 #define MPU60X0_BUFFER_LEN 32
40 #define MPU60X0_BUFFER_EXT_LEN 16
SPI peripheral structure.
SPI transaction structure.
MPU-60X0 driver common interface (I2C and SPI).
bool initialized
config done flag
volatile bool data_available
data ready flag
uint8_t data_ext[MPU60X0_BUFFER_EXT_LEN]
void mpu60x0_spi_read(struct Mpu60x0_Spi *mpu)
struct Mpu60x0Config config
void mpu60x0_spi_event(struct Mpu60x0_Spi *mpu)
struct spi_transaction spi_trans
float temp
temperature in degrees Celcius
union Mpu60x0_Spi::@342 data_rates
volatile uint8_t tx_buf[2]
#define MPU60X0_BUFFER_EXT_LEN
void mpu60x0_spi_start_configure(struct Mpu60x0_Spi *mpu)
enum Mpu60x0SpiSlaveInitStatus slave_init_status
struct spi_periph * spi_p
Mpu60x0SpiSlaveInitStatus
@ MPU60X0_SPI_CONF_SLAVES_CONFIGURE
@ MPU60X0_SPI_CONF_UNINIT
@ MPU60X0_SPI_CONF_I2C_MST_CLK
@ MPU60X0_SPI_CONF_I2C_MST_DELAY
@ MPU60X0_SPI_CONF_I2C_MST_EN
volatile uint8_t rx_buf[MPU60X0_BUFFER_LEN]
static void mpu60x0_spi_periodic(struct Mpu60x0_Spi *mpu)
convenience function: read or start configuration if not already initialized
#define MPU60X0_BUFFER_LEN
union Mpu60x0_Spi::@341 data_accel
void mpu60x0_spi_init(struct Mpu60x0_Spi *mpu, struct spi_periph *spi_p, uint8_t addr)
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.