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
mpu60x0.c File Reference

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

+ Include dependency graph for mpu60x0.c:

Go to the source code of this file.

Functions

void mpu60x0_set_default_config (struct Mpu60x0Config *c)
 
void mpu60x0_send_config (Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
 Configuration sequence called once before normal use. More...
 

Variables

const float MPU60X0_GYRO_SENS [4]
 
const int32_t MPU60X0_GYRO_SENS_FRAC [4][2]
 
const float MPU60X0_ACCEL_SENS [4]
 
const int32_t MPU60X0_ACCEL_SENS_FRAC [4][2]
 

Detailed Description

MPU-60X0 driver common functions (I2C and SPI).

Still needs the either I2C or SPI specific implementation.

Definition in file mpu60x0.c.

Function Documentation

Variable Documentation

const float MPU60X0_ACCEL_SENS[4]
Initial value:
= {
}
#define MPU60X0_ACCEL_SENS_8G
Definition: mpu60x0.h:88
#define MPU60X0_ACCEL_SENS_2G
default accel sensitivy from the datasheet sens = 9.81 [m/s^2] / [LSB/g] * 2^INT32_ACCEL_FRAC ex: MPU...
Definition: mpu60x0.h:82
#define MPU60X0_ACCEL_SENS_4G
Definition: mpu60x0.h:85
#define MPU60X0_ACCEL_SENS_16G
Definition: mpu60x0.h:91

Definition at line 46 of file mpu60x0.c.

const int32_t MPU60X0_ACCEL_SENS_FRAC[4][2]
Initial value:
= {
}
#define MPU60X0_ACCEL_SENS_16G_DEN
Definition: mpu60x0.h:93
#define MPU60X0_ACCEL_SENS_2G_DEN
Definition: mpu60x0.h:84
#define MPU60X0_ACCEL_SENS_8G_DEN
Definition: mpu60x0.h:90
#define MPU60X0_ACCEL_SENS_4G_DEN
Definition: mpu60x0.h:87
#define MPU60X0_ACCEL_SENS_16G_NUM
Definition: mpu60x0.h:92
#define MPU60X0_ACCEL_SENS_4G_NUM
Definition: mpu60x0.h:86
#define MPU60X0_ACCEL_SENS_2G_NUM
Definition: mpu60x0.h:83
#define MPU60X0_ACCEL_SENS_8G_NUM
Definition: mpu60x0.h:89

Definition at line 53 of file mpu60x0.c.

const float MPU60X0_GYRO_SENS[4]
Initial value:
= {
}
#define MPU60X0_GYRO_SENS_2000
Definition: mpu60x0.h:68
#define MPU60X0_GYRO_SENS_500
Definition: mpu60x0.h:62
#define MPU60X0_GYRO_SENS_250
default gyro sensitivy from the datasheet sens = 1/ [LSB/(deg/s)] * pi/180 * 2^INT32_RATE_FRAC ex: MP...
Definition: mpu60x0.h:59
#define MPU60X0_GYRO_SENS_1000
Definition: mpu60x0.h:65

Definition at line 32 of file mpu60x0.c.

const int32_t MPU60X0_GYRO_SENS_FRAC[4][2]
Initial value:
= {
}
#define MPU60X0_GYRO_SENS_250_DEN
Definition: mpu60x0.h:61
#define MPU60X0_GYRO_SENS_2000_NUM
Definition: mpu60x0.h:69
#define MPU60X0_GYRO_SENS_500_DEN
Definition: mpu60x0.h:64
#define MPU60X0_GYRO_SENS_250_NUM
Definition: mpu60x0.h:60
#define MPU60X0_GYRO_SENS_2000_DEN
Definition: mpu60x0.h:70
#define MPU60X0_GYRO_SENS_500_NUM
Definition: mpu60x0.h:63
#define MPU60X0_GYRO_SENS_1000_NUM
Definition: mpu60x0.h:66
#define MPU60X0_GYRO_SENS_1000_DEN
Definition: mpu60x0.h:67

Definition at line 39 of file mpu60x0.c.