19#ifndef TSL2561_PARAMS_H
20#define TSL2561_PARAMS_H
34#ifndef TSL2561_PARAM_I2C_DEV
35#define TSL2561_PARAM_I2C_DEV I2C_DEV(0)
37#ifndef TSL2561_PARAM_ADDR
38#define TSL2561_PARAM_ADDR TSL2561_ADDR_FLOAT
40#ifndef TSL2561_PARAM_GAIN
41#define TSL2561_PARAM_GAIN TSL2561_GAIN_1X
43#ifndef TSL2561_PARAM_INTEGRATION
44#define TSL2561_PARAM_INTEGRATION TSL2561_INTEGRATIONTIME_402MS
48#define TSL2561_PARAMS { .i2c_dev = TSL2561_PARAM_I2C_DEV, \
49 .addr = TSL2561_PARAM_ADDR, \
50 .gain = TSL2561_PARAM_GAIN, \
51 .integration = TSL2561_PARAM_INTEGRATION }
53#ifndef TSL2561_SAUL_INFO
54#define TSL2561_SAUL_INFO { .name= "tsl2561" }
SAUL registry interface definition.
Additional data to collect for each entry.
Device initialization parameters.
Device driver interface for the illuminance TSL2561 sensor.
static const tsl2561_params_t tsl2561_params[]
Configure TSL2561.
saul_reg_info_t tsl2561_saul_info[]
Allocate and configure entries to the SAUL registry.