Go to the documentation of this file.
56 #ifndef CONFIG_GP2Y10XX_MAX_READINGS
57 #define CONFIG_GP2Y10XX_MAX_READINGS (10)
@ GP2Y10XX_ERR_ADC
ADC error.
GP2Y10xx device descriptor.
unsigned int adc_t
Define default ADC type identifier.
@ GP2Y10XX_ILED_LEVEL_LOW
Active low.
adc_res_t
Possible ADC resolution settings.
Low-level ADC peripheral driver interface definitions.
GP2Y10xx device parameters.
gp2y10xx_level_t
ILED pin level.
int gp2y10xx_init(gp2y10xx_t *dev, const gp2y10xx_params_t *params)
Initialize an GP2Y10xx device.
gp2y10xx_level_t iled_level
ILED pin level.
int gp2y10xx_read_density(const gp2y10xx_t *dev, uint16_t *density)
Read a raw ADC value.
uint16_t vref
Reference voltage used for the VCC supply of the sensor, in mV.
adc_t aout
ADC line connected to device AOUT pin.
gp2y10xx_params_t params
device driver configuration
@ GP2Y10XX_ILED_LEVEL_HIGH
Active high.
Low-level GPIO peripheral driver interface definitions.
@ GP2Y10XX_ERR_ILED
ILED pin error.
adc_res_t adc_res
ADC line resolution.
@ GP2Y10XX_OK
Everything is ok.