Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mpu9250.c File Reference

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

+ Include dependency graph for mpu9250.c:

Go to the source code of this file.


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...


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

Variable Documentation

const float MPU9250_ACCEL_SENS[4]
Initial value:
= {
#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
#define MPU9250_ACCEL_SENS_4G
Definition: mpu9250.h:86
#define MPU9250_ACCEL_SENS_8G
Definition: mpu9250.h:89
#define MPU9250_ACCEL_SENS_16G
Definition: mpu9250.h:92

Definition at line 46 of file mpu9250.c.

const int32_t MPU9250_ACCEL_SENS_FRAC[4][2]
Initial value:
= {
#define MPU9250_ACCEL_SENS_16G_NUM
Definition: mpu9250.h:93
#define MPU9250_ACCEL_SENS_4G_NUM
Definition: mpu9250.h:87
#define MPU9250_ACCEL_SENS_2G_DEN
Definition: mpu9250.h:85
#define MPU9250_ACCEL_SENS_16G_DEN
Definition: mpu9250.h:94
#define MPU9250_ACCEL_SENS_8G_NUM
Definition: mpu9250.h:90
#define MPU9250_ACCEL_SENS_2G_NUM
Definition: mpu9250.h:84
#define MPU9250_ACCEL_SENS_8G_DEN
Definition: mpu9250.h:91
#define MPU9250_ACCEL_SENS_4G_DEN
Definition: mpu9250.h:88

Definition at line 53 of file mpu9250.c.

const float MPU9250_GYRO_SENS[4]
Initial value:
= {
#define MPU9250_GYRO_SENS_1000
Definition: mpu9250.h:66
#define MPU9250_GYRO_SENS_2000
Definition: mpu9250.h:69
#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
#define MPU9250_GYRO_SENS_500
Definition: mpu9250.h:63

Definition at line 32 of file mpu9250.c.

const int32_t MPU9250_GYRO_SENS_FRAC[4][2]
Initial value:
= {
#define MPU9250_GYRO_SENS_1000_NUM
Definition: mpu9250.h:67
#define MPU9250_GYRO_SENS_1000_DEN
Definition: mpu9250.h:68
#define MPU9250_GYRO_SENS_2000_NUM
Definition: mpu9250.h:70
#define MPU9250_GYRO_SENS_500_DEN
Definition: mpu9250.h:65
#define MPU9250_GYRO_SENS_2000_DEN
Definition: mpu9250.h:71
#define MPU9250_GYRO_SENS_500_NUM
Definition: mpu9250.h:64
#define MPU9250_GYRO_SENS_250_NUM
Definition: mpu9250.h:61
#define MPU9250_GYRO_SENS_250_DEN
Definition: mpu9250.h:62

Definition at line 39 of file mpu9250.c.