Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
mpu9250.c File Reference
+ Include dependency graph for mpu9250.c:

Go to the source code of this file.

Functions

void mpu9250_set_default_config (struct Mpu9250Config *c)
 
void mpu9250_send_config (Mpu9250ConfigSet mpu_set, void *mpu, struct Mpu9250Config *config)
 Configuration sequence called once before normal use. More...
 

Variables

const float MPU9250_GYRO_SENS [4]
 
const int32_t MPU9250_GYRO_SENS_FRAC [4][2]
 
const float MPU9250_ACCEL_SENS [4]
 
const int32_t MPU9250_ACCEL_SENS_FRAC [4][2]
 

Detailed Description

MPU-9250 driver common functions (I2C and SPI).

Still needs the either I2C or SPI specific implementation.

Definition in file mpu9250.c.

Function Documentation

◆ mpu9250_send_config()

◆ mpu9250_set_default_config()

void mpu9250_set_default_config ( struct Mpu9250Config c)

Definition at line 60 of file mpu9250.c.

References c(), MPU9250_DEFAULT_AFS_SEL, MPU9250_DEFAULT_CLK_SEL, MPU9250_DEFAULT_DLPF_ACCEL_CFG, MPU9250_DEFAULT_DLPF_GYRO_CFG, MPU9250_DEFAULT_FS_SEL, and MPU9250_DEFAULT_SMPLRT_DIV.

Referenced by mpu9250_i2c_init(), and mpu9250_spi_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ MPU9250_ACCEL_SENS

const float MPU9250_ACCEL_SENS[4]

◆ MPU9250_ACCEL_SENS_FRAC

◆ MPU9250_GYRO_SENS

const float MPU9250_GYRO_SENS[4]

◆ MPU9250_GYRO_SENS_FRAC

MPU9250_ACCEL_SENS_4G
#define MPU9250_ACCEL_SENS_4G
Definition: mpu9250.h:86
MPU9250_ACCEL_SENS_2G
#define MPU9250_ACCEL_SENS_2G
default accel sensitivy from the datasheet sens = 9.81 [m/s^2] / [LSB/g] * 2^INT32_ACCEL_FRAC ex: MPU...
Definition: mpu9250.h:83
MPU9250_ACCEL_SENS_16G_NUM
#define MPU9250_ACCEL_SENS_16G_NUM
Definition: mpu9250.h:93
MPU9250_GYRO_SENS_1000
#define MPU9250_GYRO_SENS_1000
Definition: mpu9250.h:66
MPU9250_ACCEL_SENS_2G_DEN
#define MPU9250_ACCEL_SENS_2G_DEN
Definition: mpu9250.h:85
MPU9250_GYRO_SENS_2000
#define MPU9250_GYRO_SENS_2000
Definition: mpu9250.h:69
MPU9250_ACCEL_SENS_4G_NUM
#define MPU9250_ACCEL_SENS_4G_NUM
Definition: mpu9250.h:87
MPU9250_GYRO_SENS_1000_NUM
#define MPU9250_GYRO_SENS_1000_NUM
Definition: mpu9250.h:67
MPU9250_GYRO_SENS_250
#define MPU9250_GYRO_SENS_250
default gyro sensitivy from the datasheet sens = 1/ [LSB/(deg/s)] * pi/180 * 2^INT32_RATE_FRAC ex: MP...
Definition: mpu9250.h:60
MPU9250_ACCEL_SENS_8G
#define MPU9250_ACCEL_SENS_8G
Definition: mpu9250.h:89
MPU9250_GYRO_SENS_2000_NUM
#define MPU9250_GYRO_SENS_2000_NUM
Definition: mpu9250.h:70
MPU9250_GYRO_SENS_2000_DEN
#define MPU9250_GYRO_SENS_2000_DEN
Definition: mpu9250.h:71
MPU9250_ACCEL_SENS_16G_DEN
#define MPU9250_ACCEL_SENS_16G_DEN
Definition: mpu9250.h:94
MPU9250_ACCEL_SENS_2G_NUM
#define MPU9250_ACCEL_SENS_2G_NUM
Definition: mpu9250.h:84
MPU9250_ACCEL_SENS_8G_NUM
#define MPU9250_ACCEL_SENS_8G_NUM
Definition: mpu9250.h:90
MPU9250_GYRO_SENS_1000_DEN
#define MPU9250_GYRO_SENS_1000_DEN
Definition: mpu9250.h:68
MPU9250_GYRO_SENS_500_NUM
#define MPU9250_GYRO_SENS_500_NUM
Definition: mpu9250.h:64
MPU9250_GYRO_SENS_500
#define MPU9250_GYRO_SENS_500
Definition: mpu9250.h:63
MPU9250_ACCEL_SENS_4G_DEN
#define MPU9250_ACCEL_SENS_4G_DEN
Definition: mpu9250.h:88
MPU9250_ACCEL_SENS_8G_DEN
#define MPU9250_ACCEL_SENS_8G_DEN
Definition: mpu9250.h:91
MPU9250_GYRO_SENS_250_NUM
#define MPU9250_GYRO_SENS_250_NUM
Definition: mpu9250.h:61
MPU9250_ACCEL_SENS_16G
#define MPU9250_ACCEL_SENS_16G
Definition: mpu9250.h:92
MPU9250_GYRO_SENS_500_DEN
#define MPU9250_GYRO_SENS_500_DEN
Definition: mpu9250.h:65
MPU9250_GYRO_SENS_250_DEN
#define MPU9250_GYRO_SENS_250_DEN
Definition: mpu9250.h:62