GP2Y10xx device driver. More...
GP2Y10xx device driver.
Definition in file gp2y10xx.h.
 Include dependency graph for gp2y10xx.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | gp2y10xx_params_t | 
| GP2Y10xx device parameters.  More... | |
| struct | gp2y10xx_t | 
| GP2Y10xx device descriptor.  More... | |
Macros | |
| #define | CONFIG_GP2Y10XX_MAX_READINGS (10) | 
| This configures the maximum number of ADC readings stored to calculate the average ADC value.  More... | |
Enumerations | |
| enum | { GP2Y10XX_OK = 0 , GP2Y10XX_ERR_ADC = -1 , GP2Y10XX_ERR_ILED = -2 } | 
| Driver error values.  More... | |
| enum | gp2y10xx_level_t { GP2Y10XX_ILED_LEVEL_HIGH , GP2Y10XX_ILED_LEVEL_LOW } | 
| ILED pin level.  More... | |
Functions | |
| int | gp2y10xx_init (gp2y10xx_t *dev, const gp2y10xx_params_t *params) | 
| Initialize an GP2Y10xx device.  More... | |
| int | gp2y10xx_read_density (const gp2y10xx_t *dev, uint16_t *density) | 
| Read a raw ADC value.  More... | |