17#ifndef APDS99XX_PARAMS_H
18#define APDS99XX_PARAMS_H
32#ifndef APDS99XX_PARAM_DEV
34#define APDS99XX_PARAM_DEV I2C_DEV(0)
37#ifndef APDS99XX_PARAM_ALS_STEPS
39#define APDS99XX_PARAM_ALS_STEPS (64)
41#ifndef APDS99XX_PARAM_ALS_GAIN
43#define APDS99XX_PARAM_ALS_GAIN (APDS99XX_ALS_GAIN_1)
46#ifndef APDS99XX_PARAM_PRX_PULSES
48#define APDS99XX_PARAM_PRX_PULSES (8)
50#ifndef APDS99XX_PARAM_PRX_DRIVE
52#define APDS99XX_PARAM_PRX_DRIVE (APDS99XX_PRX_DRIVE_100)
54#ifndef APDS99XX_PARAM_PRX_GAIN
56#define APDS99XX_PARAM_PRX_GAIN (APDS99XX_PRX_GAIN_1)
58#ifndef APDS99XX_PARAM_WAIT_STEPS
60#define APDS99XX_PARAM_WAIT_STEPS (0)
62#ifndef APDS99XX_PARAM_WAIT_LONG
64#define APDS99XX_PARAM_WAIT_LONG (false)
67#ifndef APDS99XX_PARAM_INT_PIN
69#define APDS99XX_PARAM_INT_PIN (GPIO_PIN(0, 0))
72#ifndef APDS99XX_PARAMS
73#define APDS99XX_PARAMS { \
74 .dev = APDS99XX_PARAM_DEV, \
75 .als_steps = APDS99XX_PARAM_ALS_STEPS, \
76 .als_gain = APDS99XX_PARAM_ALS_GAIN, \
77 .prx_pulses = APDS99XX_PARAM_PRX_PULSES, \
78 .prx_gain = APDS99XX_PARAM_PRX_GAIN, \
79 .prx_drive = APDS99XX_PARAM_PRX_DRIVE, \
80 .wait_steps = APDS99XX_PARAM_WAIT_STEPS, \
81 .wait_long = APDS99XX_PARAM_WAIT_LONG, \
82 .int_pin = APDS99XX_PARAM_INT_PIN, \
86#ifndef APDS99XX_SAUL_INFO
87#define APDS99XX_SAUL_INFO { .name = "apds99xx" }
static const apds99xx_params_t apds99xx_params[]
Allocate some memory to store the actual configuration.
static const saul_reg_info_t apds99xx_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
APDS99XX device initialization parameters.
Additional data to collect for each entry.