Detailed Description

Macros

#define GP2Y10XX_PARAM_AOUT   (ADC_LINE(0))
 ADC line to use.
 
#define GP2Y10XX_PARAM_ADC_RES   (ADC_RES_10BIT)
 ADC line resolution.
 
#define GP2Y10XX_PARAM_VREF   (3300)
 Reference voltage used for the VCC supply of the sensor, in mV.
 
#define GP2Y10XX_PARAM_ILED_PIN   (GPIO_UNDEF)
 ILED GPIO pin.
 
#define GP2Y10XX_PARAM_ILED_LEVEL   (GP2Y10XX_ILED_LEVEL_HIGH)
 ILED level, can be active-high or active-low.
 
#define GP2Y10XX_PARAMS
 GP2Y10xx driver configuration parameters. More...
 

Macro Definition Documentation

◆ GP2Y10XX_PARAMS

#define GP2Y10XX_PARAMS
Value:
{ .aout = GP2Y10XX_PARAM_AOUT, \
.adc_res = GP2Y10XX_PARAM_ADC_RES, \
.iled_pin = GP2Y10XX_PARAM_ILED_PIN, \
.iled_level = GP2Y10XX_PARAM_ILED_LEVEL, \
}

GP2Y10xx driver configuration parameters.

Definition at line 76 of file gp2y10xx_params.h.

GP2Y10XX_PARAM_ADC_RES
#define GP2Y10XX_PARAM_ADC_RES
ADC line resolution.
Definition: gp2y10xx_params.h:48
GP2Y10XX_PARAM_ILED_LEVEL
#define GP2Y10XX_PARAM_ILED_LEVEL
ILED level, can be active-high or active-low.
Definition: gp2y10xx_params.h:69
GP2Y10XX_PARAM_VREF
#define GP2Y10XX_PARAM_VREF
Reference voltage used for the VCC supply of the sensor, in mV.
Definition: gp2y10xx_params.h:55
GP2Y10XX_PARAM_AOUT
#define GP2Y10XX_PARAM_AOUT
ADC line to use.
Definition: gp2y10xx_params.h:41
GP2Y10XX_PARAM_ILED_PIN
#define GP2Y10XX_PARAM_ILED_PIN
ILED GPIO pin.
Definition: gp2y10xx_params.h:62