Go to the documentation of this file.
19 #ifndef LIS3MDL_PARAMS_H
20 #define LIS3MDL_PARAMS_H
34 #ifndef LIS3MDL_PARAM_I2C
35 #define LIS3MDL_PARAM_I2C (I2C_DEV(0))
37 #ifndef LIS3MDL_PARAM_ADDR
38 #define LIS3MDL_PARAM_ADDR (0x1E)
40 #ifndef LIS3MDL_PARAM_XYMODE
41 #define LIS3MDL_PARAM_XYMODE (LIS3MDL_XY_MODE_HIGH)
43 #ifndef LIS3MDL_PARAM_ZMODE
44 #define LIS3MDL_PARAM_ZMODE (LIS3MDL_Z_MODE_HIGH)
46 #ifndef LIS3MDL_PARAM_ODR
47 #define LIS3MDL_PARAM_ODR (LIS3MDL_ODR_10Hz)
49 #ifndef LIS3MDL_PARAM_SCALE
50 #define LIS3MDL_PARAM_SCALE (4)
52 #ifndef LIS3MDL_PARAM_OPMODE
53 #define LIS3MDL_PARAM_OPMODE (LIS3MDL_OP_CONT_CONV)
56 #ifndef LIS3MDL_PARAMS
57 #define LIS3MDL_PARAMS { .i2c = LIS3MDL_PARAM_I2C, \
58 .addr = LIS3MDL_PARAM_ADDR, \
59 .xy_mode = LIS3MDL_PARAM_XYMODE, \
60 .z_mode = LIS3MDL_PARAM_ZMODE, \
61 .odr = LIS3MDL_PARAM_ODR, \
62 .scale = LIS3MDL_PARAM_SCALE, \
63 .op_mode = LIS3MDL_PARAM_OPMODE }
65 #ifndef LIS3MDL_SAUL_INFO
66 #define LIS3MDL_SAUL_INFO { .name = "lis3mdl" }
static const saul_reg_info_t lis3mdl_saul_info[]
Additional meta information to keep in the SAUL registry.
Additional data to collect for each entry.
SAUL registry interface definition.
Device initialization parameters.
Device driver interface for the LIS3MDL 3-axis magnetometer.
static const lis3mdl_params_t lis3mdl_params[]
Allocate some memory to store the actual configuration.