19#ifndef LSM303DLHC_PARAMS_H
20#define LSM303DLHC_PARAMS_H
34#ifndef LSM303DLHC_PARAM_I2C
35#define LSM303DLHC_PARAM_I2C I2C_DEV(0)
37#ifndef LSM303DLHC_PARAM_ACC_ADDR
38#define LSM303DLHC_PARAM_ACC_ADDR (0x19)
40#ifndef LSM303DLHC_PARAM_ACC_PIN
41#define LSM303DLHC_PARAM_ACC_PIN (GPIO_PIN(0, 0))
43#ifndef LSM303DLHC_PARAM_ACC_RATE
44#define LSM303DLHC_PARAM_ACC_RATE (LSM303DLHC_ACC_SAMPLE_RATE_10HZ)
46#ifndef LSM303DLHC_PARAM_ACC_SCALE
47#define LSM303DLHC_PARAM_ACC_SCALE (LSM303DLHC_ACC_SCALE_4G)
49#ifndef LSM303DLHC_PARAM_MAG_ADDR
50#define LSM303DLHC_PARAM_MAG_ADDR (0x1e)
52#ifndef LSM303DLHC_PARAM_MAG_PIN
53#define LSM303DLHC_PARAM_MAG_PIN (GPIO_PIN(0, 1))
55#ifndef LSM303DLHC_PARAM_MAG_RATE
56#define LSM303DLHC_PARAM_MAG_RATE (LSM303DLHC_MAG_SAMPLE_RATE_15HZ)
58#ifndef LSM303DLHC_PARAM_MAG_GAIN
59#define LSM303DLHC_PARAM_MAG_GAIN (LSM303DLHC_MAG_GAIN_450_400_GAUSS)
62#ifndef LSM303DLHC_PARAMS
63#define LSM303DLHC_PARAMS { .i2c = LSM303DLHC_PARAM_I2C, \
64 .acc_addr = LSM303DLHC_PARAM_ACC_ADDR, \
65 .acc_pin = LSM303DLHC_PARAM_ACC_PIN, \
66 .acc_rate = LSM303DLHC_PARAM_ACC_RATE, \
67 .acc_scale = LSM303DLHC_PARAM_ACC_SCALE, \
68 .mag_addr = LSM303DLHC_PARAM_MAG_ADDR, \
69 .mag_pin = LSM303DLHC_PARAM_MAG_PIN, \
70 .mag_rate = LSM303DLHC_PARAM_MAG_RATE, \
71 .mag_gain = LSM303DLHC_PARAM_MAG_GAIN }
73#ifndef LSM303DLHC_SAUL_INFO
74#define LSM303DLHC_SAUL_INFO { .name = "lsm303dlhc" }
Device driver interface for the LSM303DLHC 3D accelerometer/magnetometer.
static const saul_reg_info_t lsm303dlhc_saul_info[]
Additional meta information to keep in the SAUL registry.
static const lsm303dlhc_params_t lsm303dlhc_params[]
Allocate some memory to store the actual configuration.
SAUL registry interface definition.
Data structure holding all the information needed for initialization.
Additional data to collect for each entry.