36 #ifndef LSM303D_DEFAULT_AODR
37 #define LSM303D_DEFAULT_AODR (LSM303D_ACC_RATE_1600HZ << 4)
40 #ifndef LSM303D_DEFAULT_AFS
41 #define LSM303D_DEFAULT_AFS (LSM303D_ACC_RANGE_16G << 3)
44 #ifndef LSM303D_DEFAULT_MODR
45 #define LSM303D_DEFAULT_MODR (LSM303D_MAG_RATE_100HZ << 2)
48 #ifndef LSM303D_DEFAULT_MFS
49 #define LSM303D_DEFAULT_MFS (LSM303D_MAG_RANGE_2GAUSS << 5)
52 #ifndef LSM303D_DEFAULT_MD
53 #define LSM303D_DEFAULT_MD (LSM303D_MAG_MODE_CONTINOUS_CONVERSION << 0)
61 #define LSM303D_ACCEL_SENS_16G_NUM 13723
62 #define LSM303D_ACCEL_SENS_16G_DEN 1000
uint8_t mag_mode
Measurement mode.
#define LSM303D_DEFAULT_AODR
#define LSM303D_DEFAULT_MFS
Lsm303dConfStatus
config status states
static void lsm303d_set_default_config(struct Lsm303dConfig *c)
#define LSM303D_DEFAULT_AFS
uint8_t mag_rate
Data Output Rate Bits (Hz)
uint8_t mag_scale
Full scale gain configuration (Gauss)
uint8_t acc_rate
Data Output Rate (Hz)
#define LSM303D_DEFAULT_MD
#define LSM303D_DEFAULT_MODR
uint8_t acc_scale
full scale selection (m/s²)
Register defs for ST LSM303D 3D accelerometer and magnetometer.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.