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