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 }
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.
static const saul_reg_info_t mag3110_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definition for the MAG3110 magnetometer driver.
SAUL registry interface definition.
Configuration parameters.
Additional data to collect for each entry.