19#ifndef VCNL40X0_PARAMS_H
20#define VCNL40X0_PARAMS_H
35#ifndef VCNL40X0_PARAM_I2C_DEV
36#define VCNL40X0_PARAM_I2C_DEV I2C_DEV(0)
38#ifndef VCNL40X0_PARAM_I2C_ADDR
39#define VCNL40X0_PARAM_I2C_ADDR (VCNL40X0_ADDR)
41#ifndef VCNL40X0_PARAM_LED_CURRENT
42#define VCNL40X0_PARAM_LED_CURRENT (2U)
44#ifndef VCNL40X0_PARAM_PROXIMITY_RATE
45#define VCNL40X0_PARAM_PROXIMITY_RATE (VCNL40X0_PROXIMITY_RATE_2)
47#ifndef VCNL40X0_PARAM_AMBIENT_AVG
48#define VCNL40X0_PARAM_AMBIENT_AVG (VCNL40X0_AMBIENT_AVERAGE_32)
50#ifndef VCNL40X0_PARAM_AMBIENT_RATE
51#define VCNL40X0_PARAM_AMBIENT_RATE (VCNL40X0_AMBIENT_RATE_2)
54#define VCNL40X0_PARAMS { .i2c_dev = VCNL40X0_PARAM_I2C_DEV, \
55 .i2c_addr = VCNL40X0_PARAM_I2C_ADDR, \
56 .led_current = VCNL40X0_PARAM_LED_CURRENT, \
57 .proximity_rate = VCNL40X0_PARAM_PROXIMITY_RATE, \
58 .ambient_avg = VCNL40X0_PARAM_AMBIENT_AVG, \
59 .ambient_rate = VCNL40X0_PARAM_AMBIENT_RATE }
75 { .
name =
"vcnl40x0" }
SAUL registry interface definition.
Additional data to collect for each entry.
const char * name
string identifier for a device
Device initialization parameters.
Device driver interface for the VCNL40X0 sensors family.
Internal addresses, registers, constants for the VCNL40X0 devices.
static const saul_reg_info_t vcnl40x0_saul_reg_info[]
Configure SAUL registry entries.
static const vcnl40x0_params_t vcnl40x0_params[]
Configure VCNL40X0.