Default configuration for GP2Y10xx devices. More...

Detailed Description

Default configuration for GP2Y10xx devices.

Author
Jean Pierre Dudey jeand.nosp@m.udey.nosp@m.@hotm.nosp@m.ail..nosp@m.com

Definition in file gp2y10xx_params.h.

#include "board.h"
#include "saul_reg.h"
#include "gp2y10xx.h"
+ Include dependency graph for gp2y10xx_params.h:

Go to the source code of this file.

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...
 
#define GP2Y10XX_SAUL_INFO   { .name = "gp2y1010" }
 GP2Y10xx driver SAUL registry information structures.
 

Variables

static const gp2y10xx_params_t gp2y10xx_params []
 GP2Y1010 configuration. More...
 
static const saul_reg_info_t gp2y10xx_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Variable Documentation

◆ gp2y10xx_params

const gp2y10xx_params_t gp2y10xx_params[]
static
Initial value:

GP2Y1010 configuration.

Definition at line 95 of file gp2y10xx_params.h.

◆ gp2y10xx_saul_info

const saul_reg_info_t gp2y10xx_saul_info[]
static
Initial value:

Additional meta information to keep in the SAUL registry.

Definition at line 103 of file gp2y10xx_params.h.

GP2Y10XX_SAUL_INFO
#define GP2Y10XX_SAUL_INFO
GP2Y10xx driver SAUL registry information structures.
Definition: gp2y10xx_params.h:89
GP2Y10XX_PARAMS
#define GP2Y10XX_PARAMS
GP2Y10xx driver configuration parameters.
Definition: gp2y10xx_params.h:76