23#ifndef TSL4531X_PARAMS_H
24#define TSL4531X_PARAMS_H
38#ifndef TSL4531X_PARAM_I2C_DEV
39#define TSL4531X_PARAM_I2C_DEV I2C_DEV(0)
41#ifndef TSL4531X_PARAM_I2C_ADDR
42#define TSL4531X_PARAM_I2C_ADDR TSL45315_ADDR
44#ifndef TSL4531X_PARAM_INTEGRATION
45#define TSL4531X_PARAM_INTEGRATION TSL4531X_INTEGRATE_400MS
47#ifndef TSL4531X_LOW_POWER_MODE
48#define TSL4531X_LOW_POWER_MODE (false)
50#ifndef TSL4531X_PARAM_PARTNO
51#define TSL4531X_PARAM_PARTNO TSL45315_PARTNO
53#ifndef TSL4531X_PARAMS
54#define TSL4531X_PARAMS { .i2c_dev = TSL4531X_PARAM_I2C_DEV, \
55 .i2c_addr = TSL4531X_PARAM_I2C_ADDR, \
56 .integration_time = TSL4531X_PARAM_INTEGRATION, \
57 .low_power_mode = TSL4531X_LOW_POWER_MODE, \
58 .part_number = TSL4531X_PARAM_PARTNO }
61#ifndef TSL4531X_SAUL_INFO
62#define TSL4531X_SAUL_INFO { .name = "tsl4531x" }
SAUL registry interface definition.
Additional data to collect for each entry.
Device initialization parameters.
Device driver for the AMS TSL4531 sensor.
static const tsl4531x_params_t tsl4531x_params[]
Configure TSL4531x.
saul_reg_info_t tsl4531x_saul_info[]
Allocate and configure entries to the SAUL registry.