Loading...
Searching...
No Matches

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.
 

Macro Definition Documentation

◆ GP2Y10XX_PARAM_ADC_RES

#define GP2Y10XX_PARAM_ADC_RES   (ADC_RES_10BIT)

ADC line resolution.

Definition at line 48 of file gp2y10xx_params.h.

◆ GP2Y10XX_PARAM_AOUT

#define GP2Y10XX_PARAM_AOUT   (ADC_LINE(0))

ADC line to use.

Definition at line 41 of file gp2y10xx_params.h.

◆ GP2Y10XX_PARAM_ILED_LEVEL

#define GP2Y10XX_PARAM_ILED_LEVEL   (GP2Y10XX_ILED_LEVEL_HIGH)

ILED level, can be active-high or active-low.

Definition at line 69 of file gp2y10xx_params.h.

◆ GP2Y10XX_PARAM_ILED_PIN

#define GP2Y10XX_PARAM_ILED_PIN   (GPIO_UNDEF)

ILED GPIO pin.

Definition at line 62 of file gp2y10xx_params.h.

◆ GP2Y10XX_PARAM_VREF

#define GP2Y10XX_PARAM_VREF   (3300)

Reference voltage used for the VCC supply of the sensor, in mV.

Definition at line 55 of file gp2y10xx_params.h.

◆ 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, \
}
#define GP2Y10XX_PARAM_ADC_RES
ADC line resolution.
#define GP2Y10XX_PARAM_ILED_LEVEL
ILED level, can be active-high or active-low.
#define GP2Y10XX_PARAM_ILED_PIN
ILED GPIO pin.
#define GP2Y10XX_PARAM_VREF
Reference voltage used for the VCC supply of the sensor, in mV.
#define GP2Y10XX_PARAM_AOUT
ADC line to use.

GP2Y10xx driver configuration parameters.

Definition at line 76 of file gp2y10xx_params.h.