39 #define MPU60X0_BUFFER_LEN 32
40 #define MPU60X0_BUFFER_EXT_LEN 16
87 #endif // MPU60X0_SPI_H
uint8_t data_ext[MPU60X0_BUFFER_EXT_LEN]
bool initialized
config done flag
struct Mpu60x0Config config
SPI transaction structure.
#define MPU60X0_BUFFER_LEN
volatile uint8_t rx_buf[MPU60X0_BUFFER_LEN]
void mpu60x0_spi_read(struct Mpu60x0_Spi *mpu)
Architecture independent SPI (Serial Peripheral Interface) API.
SPI peripheral structure.
static void mpu60x0_spi_periodic(struct Mpu60x0_Spi *mpu)
convenience function: read or start configuration if not already initialized
enum Mpu60x0SpiSlaveInitStatus slave_init_status
struct spi_transaction spi_trans
void mpu60x0_spi_start_configure(struct Mpu60x0_Spi *mpu)
float temp
temperature in degrees Celcius
struct spi_periph * spi_p
volatile uint8_t tx_buf[2]
volatile bool data_available
data ready flag
#define MPU60X0_BUFFER_EXT_LEN
union Mpu60x0_Spi::@316 data_rates
void mpu60x0_spi_init(struct Mpu60x0_Spi *mpu, struct spi_periph *spi_p, uint8_t addr)
union Mpu60x0_Spi::@315 data_accel
MPU-60X0 driver common interface (I2C and SPI).
Mpu60x0SpiSlaveInitStatus
void mpu60x0_spi_event(struct Mpu60x0_Spi *mpu)
Paparazzi fixed point algebra.