19 #ifndef ISL29020_PARAMS_H
20 #define ISL29020_PARAMS_H
34 #ifndef ISL29020_PARAM_I2C
35 #define ISL29020_PARAM_I2C I2C_DEV(0)
37 #ifndef ISL29020_PARAM_ADDR
38 #define ISL29020_PARAM_ADDR (CONFIG_ISL29020_DEFAULT_ADDRESS)
40 #ifndef ISL29020_PARAM_RANGE
41 #define ISL29020_PARAM_RANGE (ISL29020_RANGE_16K)
43 #ifndef ISL29020_PARAM_MODE
44 #define ISL29020_PARAM_MODE (ISL29020_MODE_AMBIENT)
47 #ifndef ISL29020_PARAMS
48 #define ISL29020_PARAMS { .i2c = ISL29020_PARAM_I2C, \
49 .addr = ISL29020_PARAM_ADDR, \
50 .range = ISL29020_PARAM_RANGE, \
51 .mode = ISL29020_PARAM_MODE }
53 #ifndef ISL29020_SAUL_INFO
54 #define ISL29020_SAUL_INFO { .name = "isl29020" }
Device driver interface for the ISL29020 light sensor.
static const isl29020_params_t isl29020_params[]
Allocate some memory to store the actual configuration.
static const saul_reg_info_t isl29020_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Data structure holding the full set of configuration parameters.
Additional data to collect for each entry.