36 #ifndef LSM303D_DEFAULT_AODR
37 #define LSM303D_DEFAULT_AODR (LSM303D_ACC_RATE_1600HZ << 4) //acc 1600 Hz
40 #ifndef LSM303D_DEFAULT_AFS
41 #define LSM303D_DEFAULT_AFS (LSM303D_ACC_RANGE_16G << 3) // acc +- 16G
44 #ifndef LSM303D_DEFAULT_MODR
45 #define LSM303D_DEFAULT_MODR (LSM303D_MAG_RATE_100HZ << 2) // Magneto Data Output Rate (100Hz)
48 #ifndef LSM303D_DEFAULT_MFS
49 #define LSM303D_DEFAULT_MFS (LSM303D_MAG_RANGE_2GAUSS << 5) // Magneto gain configuration (+/- 2 Gauss)
52 #ifndef LSM303D_DEFAULT_MD
53 #define LSM303D_DEFAULT_MD (LSM303D_MAG_MODE_CONTINOUS_CONVERSION << 0) // Magneto continious conversion mode
Register defs for ST LSM303D 3D accelerometer and magnetometer.
#define LSM303D_DEFAULT_AFS
uint8_t acc_scale
full scale selection (m/s²)
#define LSM303D_DEFAULT_MODR
uint8_t mag_scale
Full scale gain configuration (Gauss)
uint8_t mag_mode
Measurement mode.
static void lsm303d_set_default_config(struct Lsm303dConfig *c)
uint8_t mag_rate
Data Output Rate Bits (Hz)
#define LSM303D_DEFAULT_MFS
#define LSM303D_DEFAULT_MD
Lsm303dConfStatus
config status states
uint8_t acc_rate
Data Output Rate (Hz)
#define LSM303D_DEFAULT_AODR