Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "peripherals/mpu60x0.h"
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] |
MPU-60X0 driver common functions (I2C and SPI).
Still needs the either I2C or SPI specific implementation.
Definition in file mpu60x0.c.
void mpu60x0_send_config | ( | Mpu60x0ConfigSet | mpu_set, |
void * | mpu, | ||
struct Mpu60x0Config * | config | ||
) |
Configuration sequence called once before normal use.
Definition at line 82 of file mpu60x0.c.
References config, MPU60X0, MPU60X0_CONF_ACCEL, MPU60X0_CONF_ACCEL2, MPU60X0_CONF_DLPF, MPU60X0_CONF_DONE, MPU60X0_CONF_GYRO, MPU60X0_CONF_I2C_SLAVES, MPU60X0_CONF_INT_ENABLE, MPU60X0_CONF_PWR, MPU60X0_CONF_RESET, MPU60X0_CONF_SD, MPU60X0_CONF_UNDOC1, MPU60X0_CONF_USER_RESET, mpu60x0_configure_i2c_slaves(), MPU60X0_FIFO_RESET, MPU60X0_I2C_MST_RESET, MPU60X0_REG_ACCEL_CONFIG, MPU60X0_REG_ACCEL_CONFIG2, MPU60X0_REG_CONFIG, MPU60X0_REG_GYRO_CONFIG, MPU60X0_REG_INT_ENABLE, MPU60X0_REG_PWR_MGMT_1, MPU60X0_REG_SMPLRT_DIV, MPU60X0_REG_UNDOC1, MPU60X0_REG_USER_CTRL, and MPU60X0_SIG_COND_RESET.
Referenced by mpu60x0_i2c_event(), mpu60x0_i2c_start_configure(), mpu60x0_spi_event(), and mpu60x0_spi_start_configure().
void mpu60x0_set_default_config | ( | struct Mpu60x0Config * | c | ) |
Definition at line 60 of file mpu60x0.c.
References c(), MPU60X0, MPU60X0_DEFAULT_AFS_SEL, MPU60X0_DEFAULT_CLK_SEL, MPU60X0_DEFAULT_DLPF_CFG, MPU60X0_DEFAULT_DLPF_CFG_ACC, MPU60X0_DEFAULT_FS_SEL, and MPU60X0_DEFAULT_SMPLRT_DIV.
Referenced by mpu60x0_i2c_init(), and mpu60x0_spi_init().
const float MPU60X0_ACCEL_SENS[4] |
const int32_t MPU60X0_ACCEL_SENS_FRAC[4][2] |
const float MPU60X0_GYRO_SENS[4] |
const int32_t MPU60X0_GYRO_SENS_FRAC[4][2] |