|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
39 #define MPU60X0_BUFFER_LEN 32
40 #define MPU60X0_BUFFER_EXT_LEN 16
87 #endif // MPU60X0_SPI_H
void mpu60x0_spi_start_configure(struct Mpu60x0_Spi *mpu)
struct spi_transaction spi_trans
@ MPU60X0_SPI_CONF_SLAVES_CONFIGURE
SPI transaction structure.
@ MPU60X0_SPI_CONF_UNINIT
uint8_t data_ext[MPU60X0_BUFFER_EXT_LEN]
@ MPU60X0_SPI_CONF_I2C_MST_EN
Paparazzi fixed point algebra.
SPI peripheral structure.
void mpu60x0_spi_read(struct Mpu60x0_Spi *mpu)
#define MPU60X0_BUFFER_LEN
struct spi_periph * spi_p
void mpu60x0_spi_init(struct Mpu60x0_Spi *mpu, struct spi_periph *spi_p, uint8_t addr)
enum Mpu60x0SpiSlaveInitStatus slave_init_status
@ MPU60X0_SPI_CONF_I2C_MST_CLK
static void mpu60x0_spi_periodic(struct Mpu60x0_Spi *mpu)
convenience function: read or start configuration if not already initialized
void mpu60x0_spi_event(struct Mpu60x0_Spi *mpu)
union Mpu60x0_Spi::@333 data_accel
volatile bool data_available
data ready flag
float temp
temperature in degrees Celcius
@ MPU60X0_SPI_CONF_I2C_MST_DELAY
volatile uint8_t tx_buf[2]
#define MPU60X0_BUFFER_EXT_LEN
struct Mpu60x0Config config
union Mpu60x0_Spi::@334 data_rates
Mpu60x0SpiSlaveInitStatus
volatile uint8_t rx_buf[MPU60X0_BUFFER_LEN]
bool initialized
config done flag