Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "peripherals/mpu9250.h"
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] |
MPU-9250 driver common functions (I2C and SPI).
Still needs the either I2C or SPI specific implementation.
Definition in file mpu9250.c.
void mpu9250_send_config | ( | Mpu9250ConfigSet | mpu_set, |
void * | mpu, | ||
struct Mpu9250Config * | config | ||
) |
Configuration sequence called once before normal use.
Definition at line 81 of file mpu9250.c.
References config, MPU9250_CONF_ACCEL, MPU9250_CONF_DLPF_ACCEL, MPU9250_CONF_DLPF_GYRO, MPU9250_CONF_DONE, MPU9250_CONF_GYRO, MPU9250_CONF_I2C_SLAVES, MPU9250_CONF_INT_ENABLE, MPU9250_CONF_PWR, MPU9250_CONF_RESET, MPU9250_CONF_SD, MPU9250_CONF_USER_RESET, mpu9250_configure_i2c_slaves(), MPU9250_FIFO_RESET, MPU9250_I2C_MST_RESET, MPU9250_REG_ACCEL_CONFIG, MPU9250_REG_ACCEL_CONFIG_2, MPU9250_REG_CONFIG, MPU9250_REG_GYRO_CONFIG, MPU9250_REG_INT_ENABLE, MPU9250_REG_PWR_MGMT_1, MPU9250_REG_SMPLRT_DIV, MPU9250_REG_USER_CTRL, and MPU9250_SIG_COND_RESET.
Referenced by mpu9250_i2c_event(), mpu9250_i2c_start_configure(), mpu9250_spi_event(), and mpu9250_spi_start_configure().
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().
const float MPU9250_ACCEL_SENS[4] |
const int32_t MPU9250_ACCEL_SENS_FRAC[4][2] |
const float MPU9250_GYRO_SENS[4] |
const int32_t MPU9250_GYRO_SENS_FRAC[4][2] |