36 #ifndef LSM303DLHC_DEFAULT_AODR
37 #define LSM303DLHC_DEFAULT_AODR (0x01 << 4) //acc 3125 Hz
40 #ifndef LSM303DLHC_DEFAULT_AFS
41 #define LSM303DLHC_DEFAULT_AFS (0x04 <<3) // acc +- 16G
44 #ifndef LSM303DLHC_DEFAULT_MODR
45 #define LSM303DLHC_DEFAULT_MODR (0x5 << 2) // Magneto Data Output Rate (100Hz)
48 #ifndef LSM303DLHC_DEFAULT_MFS
49 #define LSM303DLHC_DEFAULT_MFS (0x0 << 5) // Magneto gain configuration (+/- 2 Gauss)
52 #ifndef LSM303DLHC_DEFAULT_MD
53 #define LSM303DLHC_DEFAULT_MD (0x00 << 0) // Magneto continious conversion mode
Lsm303dlhcConfStatus
config status states
#define LSM303DLHC_DEFAULT_AODR
static void lsm303dlhc_acc_set_default_config(struct Lsm303dlhcAccConfig *c)
Register defs for ST LSM303DLHC 3D accelerometer and magnetometer.
uint8_t scale
Full scale gain configuration (Gauss)
uint8_t rate
Data Output Rate Bits (Hz)
#define LSM303DLHC_DEFAULT_AFS
#define LSM303DLHC_DEFAULT_MFS
#define LSM303DLHC_DEFAULT_MD
#define LSM303DLHC_DEFAULT_MODR
static void lsm303dlhc_mag_set_default_config(struct Lsm303dlhcMagConfig *c)
uint8_t mode
Measurement mode.
uint8_t rate
Data Output Rate (Hz)
uint8_t scale
full scale selection (m/s²)