56#ifndef CONFIG_GP2Y10XX_MAX_READINGS
57#define CONFIG_GP2Y10XX_MAX_READINGS (10)
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.
int gp2y10xx_read_density(const gp2y10xx_t *dev, uint16_t *density)
Read a raw ADC value.
int gp2y10xx_init(gp2y10xx_t *dev, const gp2y10xx_params_t *params)
Initialize an GP2Y10xx device.
gp2y10xx_level_t
ILED pin level.
@ GP2Y10XX_ERR_ADC
ADC error.
@ GP2Y10XX_OK
Everything is ok.
@ GP2Y10XX_ERR_ILED
ILED pin error.
@ GP2Y10XX_ILED_LEVEL_LOW
Active low.
@ GP2Y10XX_ILED_LEVEL_HIGH
Active high.
uint_fast8_t adc_t
Define default ADC type identifier.
adc_res_t
Possible ADC resolution settings.
GP2Y10xx device parameters.
gp2y10xx_level_t iled_level
ILED pin level.
adc_res_t adc_res
ADC line resolution.
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 device descriptor.
gp2y10xx_params_t params
device driver configuration