28 #ifndef IMU_MPU9250_SPI_H
29 #define IMU_MPU9250_SPI_H
32 #include "generated/airframe.h"
38 #ifndef IMU_MPU9250_GYRO_RANGE
39 #define IMU_MPU9250_GYRO_RANGE MPU9250_GYRO_RANGE_1000
42 #ifndef IMU_MPU9250_ACCEL_RANGE
43 #define IMU_MPU9250_ACCEL_RANGE MPU9250_ACCEL_RANGE_8G
SPI transaction structure.
Inertial Measurement Unit interface.
struct spi_transaction wait_slave4_trans
void imu_mpu9250_periodic(void)
volatile uint8_t wait_slave4_rx_buf[2]
volatile uint8_t wait_slave4_tx_buf[1]
void imu_mpu9250_init(void)
volatile bool slave4_ready
struct ImuMpu9250 imu_mpu9250
void imu_mpu9250_event(void)
Driver for the MPU-9250 using SPI.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.