Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for ST LSM303D 3D accelerometer and magnetometer. More...
Go to the source code of this file.
Data Structures | |
struct | Lsm303dConfig |
Macros | |
#define | LSM303D_DEFAULT_AODR (LSM303D_ACC_RATE_1600HZ << 4) |
#define | LSM303D_DEFAULT_AFS (LSM303D_ACC_RANGE_16G << 3) |
#define | LSM303D_DEFAULT_MODR (LSM303D_MAG_RATE_100HZ << 2) |
#define | LSM303D_DEFAULT_MFS (LSM303D_MAG_RANGE_2GAUSS << 5) |
#define | LSM303D_DEFAULT_MD (LSM303D_MAG_MODE_CONTINOUS_CONVERSION << 0) |
Enumerations | |
enum | Lsm303dConfStatus { LSM303D_CONF_UNINIT, LSM303D_CONF_WHO_AM_I, LSM303D_CONF_CTRL_REG1, LSM303D_CONF_CTRL_REG2, LSM303D_CONF_CTRL_REG3, LSM303D_CONF_CTRL_REG4, LSM303D_CONF_CTRL_REG5, LSM303D_CONF_CTRL_REG6, LSM303D_CONF_CTRL_REG7, LSM303D_CONF_DONE } |
config status states More... | |
enum | Lsm303dTarget { LSM303D_TARGET_ACC, LSM303D_TARGET_MAG } |
Functions | |
static void | lsm303d_set_default_config (struct Lsm303dConfig *c) |
Driver for ST LSM303D 3D accelerometer and magnetometer.
Definition in file lsm303d.h.
struct Lsm303dConfig |
#define LSM303D_DEFAULT_AFS (LSM303D_ACC_RANGE_16G << 3) |
Definition at line 41 of file lsm303d.h.
Referenced by lsm303d_set_default_config().
#define LSM303D_DEFAULT_AODR (LSM303D_ACC_RATE_1600HZ << 4) |
Definition at line 37 of file lsm303d.h.
Referenced by lsm303d_set_default_config().
#define LSM303D_DEFAULT_MD (LSM303D_MAG_MODE_CONTINOUS_CONVERSION << 0) |
Definition at line 53 of file lsm303d.h.
Referenced by lsm303d_set_default_config().
#define LSM303D_DEFAULT_MFS (LSM303D_MAG_RANGE_2GAUSS << 5) |
Definition at line 49 of file lsm303d.h.
Referenced by lsm303d_set_default_config().
#define LSM303D_DEFAULT_MODR (LSM303D_MAG_RATE_100HZ << 2) |
Definition at line 45 of file lsm303d.h.
Referenced by lsm303d_set_default_config().
enum Lsm303dConfStatus |
enum Lsm303dTarget |
|
inlinestatic |
Definition at line 85 of file lsm303d.h.
References Lsm303dConfig::acc_rate, Lsm303dConfig::acc_scale, LSM303D_DEFAULT_AFS, LSM303D_DEFAULT_AODR, LSM303D_DEFAULT_MD, LSM303D_DEFAULT_MFS, LSM303D_DEFAULT_MODR, Lsm303dConfig::mag_mode, Lsm303dConfig::mag_rate, and Lsm303dConfig::mag_scale.
Referenced by lsm303d_spi_init().