Go to the documentation of this file.
19 #ifndef MAG3110_PARAMS_H
20 #define MAG3110_PARAMS_H
35 #ifndef MAG3110_PARAM_I2C
36 #define MAG3110_PARAM_I2C (I2C_DEV(0))
38 #ifndef MAG3110_PARAM_ADDR
39 #define MAG3110_PARAM_ADDR (CONFIG_MAG3110_I2C_ADDRESS)
41 #ifndef MAG3110_PARAM_OFFSET
42 #define MAG3110_PARAM_OFFSET { 0, 0, 0 }
44 #ifndef MAG3110_PARAMS
45 #define MAG3110_PARAMS { .i2c = MAG3110_PARAM_I2C, \
46 .addr = MAG3110_PARAM_ADDR, \
48 .dros = MAG3110_DROS_DEFAULT, \
49 .offset = MAG3110_PARAM_OFFSET }
51 #ifndef MAG3110_SAUL_INFO
52 #define MAG3110_SAUL_INFO { .name = "mag3110" }
Interface definition for the MAG3110 magnetometer driver.
static const mag3110_params_t mag3110_params[]
MAG3110 configuration.
Additional data to collect for each entry.
Configuration parameters.
static const saul_reg_info_t mag3110_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Register definition for the MAG3110 magnetometer driver.