20#ifndef GP2Y10XX_PARAMS_H
21#define GP2Y10XX_PARAMS_H
40#ifndef GP2Y10XX_PARAM_AOUT
41#define GP2Y10XX_PARAM_AOUT (ADC_LINE(0))
47#ifndef GP2Y10XX_PARAM_ADC_RES
48#define GP2Y10XX_PARAM_ADC_RES (ADC_RES_10BIT)
54#ifndef GP2Y10XX_PARAM_VREF
55#define GP2Y10XX_PARAM_VREF (3300)
61#ifndef GP2Y10XX_PARAM_ILED_PIN
62#define GP2Y10XX_PARAM_ILED_PIN (GPIO_UNDEF)
68#ifndef GP2Y10XX_PARAM_ILED_LEVEL
69#define GP2Y10XX_PARAM_ILED_LEVEL (GP2Y10XX_ILED_LEVEL_HIGH)
75#ifndef GP2Y10XX_PARAMS
76#define GP2Y10XX_PARAMS { .aout = GP2Y10XX_PARAM_AOUT, \
77 .adc_res = GP2Y10XX_PARAM_ADC_RES, \
78 .vref = GP2Y10XX_PARAM_VREF, \
79 .iled_pin = GP2Y10XX_PARAM_ILED_PIN, \
80 .iled_level = GP2Y10XX_PARAM_ILED_LEVEL, \
88#ifndef GP2Y10XX_SAUL_INFO
89#define GP2Y10XX_SAUL_INFO { .name = "gp2y1010" }
static const gp2y10xx_params_t gp2y10xx_params[]
GP2Y1010 configuration.
static const saul_reg_info_t gp2y10xx_saul_info[]
Additional meta information to keep in the SAUL registry.
#define GP2Y10XX_SAUL_INFO
GP2Y10xx driver SAUL registry information structures.
#define GP2Y10XX_PARAMS
GP2Y10xx driver configuration parameters.
SAUL registry interface definition.
GP2Y10xx device parameters.
Additional data to collect for each entry.