Default configuration for VCNL40X0 devices. More...

Detailed Description

Default configuration for VCNL40X0 devices.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file vcnl40x0_params.h.

#include "board.h"
#include "vcnl40x0.h"
#include "vcnl40x0_internals.h"
#include "saul_reg.h"
+ Include dependency graph for vcnl40x0_params.h:

Go to the source code of this file.

Variables

static const vcnl40x0_params_t vcnl40x0_params []
 Configure VCNL40X0. More...
 
static const saul_reg_info_t vcnl40x0_saul_reg_info []
 Configure SAUL registry entries. More...
 

Default configuration parameters for the VCNL40X0

#define VCNL40X0_PARAM_I2C_DEV   I2C_DEV(0)
 
#define VCNL40X0_PARAM_I2C_ADDR   (VCNL40X0_ADDR)
 
#define VCNL40X0_PARAM_LED_CURRENT   (2U)
 
#define VCNL40X0_PARAM_PROXIMITY_RATE   (VCNL40X0_PROXIMITY_RATE_2)
 
#define VCNL40X0_PARAM_AMBIENT_AVG   (VCNL40X0_AMBIENT_AVERAGE_32)
 
#define VCNL40X0_PARAM_AMBIENT_RATE   (VCNL40X0_AMBIENT_RATE_2)
 
#define VCNL40X0_PARAMS
 

Macro Definition Documentation

◆ VCNL40X0_PARAMS

#define VCNL40X0_PARAMS
Value:
{ .i2c_dev = VCNL40X0_PARAM_I2C_DEV, \
.i2c_addr = VCNL40X0_PARAM_I2C_ADDR, \
.led_current = VCNL40X0_PARAM_LED_CURRENT, \
.proximity_rate = VCNL40X0_PARAM_PROXIMITY_RATE, \
.ambient_avg = VCNL40X0_PARAM_AMBIENT_AVG, \
.ambient_rate = VCNL40X0_PARAM_AMBIENT_RATE }

Definition at line 54 of file vcnl40x0_params.h.

Variable Documentation

◆ vcnl40x0_params

const vcnl40x0_params_t vcnl40x0_params[]
static
Initial value:
=
{
VCNL40X0_PARAMS,
}

Configure VCNL40X0.

Definition at line 65 of file vcnl40x0_params.h.

◆ vcnl40x0_saul_reg_info

const saul_reg_info_t vcnl40x0_saul_reg_info[]
static
Initial value:
=
{
{ .name = "vcnl40x0" }
}

Configure SAUL registry entries.

Definition at line 73 of file vcnl40x0_params.h.