Default configuration for ST VL6180X Ranging and Ambient Light Sensing (ALS) module. More...
Default configuration for ST VL6180X Ranging and Ambient Light Sensing (ALS) module.
Definition in file vl6180x_params.h.
Go to the source code of this file.
Variables | |
static const vl6180x_params_t | vl6180x_params [] |
Allocate some memory to store the actual configuration. | |
static const saul_reg_info_t | vl6180x_saul_info [] |
Additional meta information to keep in the SAUL registry. | |
Default hardware configuration | |
#define | VL6180X_PARAM_DEV I2C_DEV(0) |
Default I2C_DEV(0) device. | |
#define | VL6180X_PARAM_ADDR (VL6180X_I2C_ADDR) |
Default I2C device address. | |
#define | VL6180X_PARAM_INT_PIN (GPIO_PIN(0, 1)) |
Default interrupt pin. | |
#define | VL6180X_PARAM_SHUTDOWN_PIN (GPIO_PIN(0, 2)) |
Default shutdown pin. | |
Default sensor configuration parameters | |
#define | CONFIG_VL6180X_MEAS_PERIOD (20) |
Default period for range and ALS measurements in steps of 10 ms: 200 ms. | |
#define | CONFIG_VL6180X_RNG_MAX_TIME (50) |
Default ranging maximum convergence time: 50 ms. | |
#define | CONFIG_VL6180X_RNG_INT (VL6180X_INT_DRDY) |
Default interrupt mode for ranging: VL6180X_INT_DRDY. | |
#define | CONFIG_VL6180X_RNG_THRESH_LOW (20) |
Default low threshold value for ranging comparison: 20 mm. | |
#define | CONFIG_VL6180X_RNG_THRESH_HIGH (90) |
Default high threshold value for ranging comparison: 90 mm. | |
#define | CONFIG_VL6180X_ALS_INT_TIME (100) |
Default ALS integration time: 100 ms (recommended by the datasheet) | |
#define | CONFIG_VL6180X_ALS_GAIN (VL6180X_ALS_GAIN_1) |
Default ALS analogue light channel gain: 1.0. | |
#define | CONFIG_VL6180X_ALS_LUX_RES 320 |
Default ALS lux resolution specified as lux/count*1000: 0.32 count/lux is factory calibrated. | |
#define | CONFIG_VL6180X_ALS_INT (VL6180X_INT_DRDY) |
Default interrupt mode for ranging: VL6180X_INT_DRDY. | |
#define | CONFIG_VL6180X_ALS_THRESH_LOW (50) |
Default low threshold value for ALS comparison: 50 counts. | |
#define | CONFIG_VL6180X_ALS_THRESH_HIGH (2000) |
Default high threshold value for ALS comparison: 2000 counts. | |
#define | VL6180X_PARAM_RANGE .rng_max_time = CONFIG_VL6180X_RNG_MAX_TIME, |
Range measurement configuration parameters. | |
#define | VL6180X_PARAM_ALS |
ALS measurement configuration parameters. | |
#define | VL6180X_PARAM_SHUTDOWN .shutdown_pin = VL6180X_PARAM_SHUTDOWN_PIN, |
Shutdown hardware configuration. | |
#define | VL6180X_PARAM_INT .int_pin = VL6180X_PARAM_INT_PIN, |
Interrupt pin configuration. | |
#define | VL6180X_PARAM_INT_RNG_CFG |
Interrupt configuration for ranging. | |
#define | VL6180X_PARAM_INT_ALS_CFG |
Interrupt configuration for ALS. | |
#define | VL6180X_PARAMS |
Default configuration parameter set. | |
#define | VL6180X_SAUL_INFO { .name = "vl6180x" } |
Default SAUL information. | |
#define CONFIG_VL6180X_ALS_GAIN (VL6180X_ALS_GAIN_1) |
Default ALS analogue light channel gain: 1.0.
Definition at line 131 of file vl6180x_params.h.
#define CONFIG_VL6180X_ALS_INT (VL6180X_INT_DRDY) |
Default interrupt mode for ranging: VL6180X_INT_DRDY.
Definition at line 141 of file vl6180x_params.h.
#define CONFIG_VL6180X_ALS_INT_TIME (100) |
Default ALS integration time: 100 ms (recommended by the datasheet)
Definition at line 126 of file vl6180x_params.h.
#define CONFIG_VL6180X_ALS_LUX_RES 320 |
Default ALS lux resolution specified as lux/count*1000: 0.32 count/lux is factory calibrated.
Definition at line 136 of file vl6180x_params.h.
#define CONFIG_VL6180X_ALS_THRESH_HIGH (2000) |
Default high threshold value for ALS comparison: 2000 counts.
Definition at line 151 of file vl6180x_params.h.
#define CONFIG_VL6180X_ALS_THRESH_LOW (50) |
Default low threshold value for ALS comparison: 50 counts.
Definition at line 146 of file vl6180x_params.h.
#define CONFIG_VL6180X_MEAS_PERIOD (20) |
Default period for range and ALS measurements in steps of 10 ms: 200 ms.
Definition at line 101 of file vl6180x_params.h.
#define CONFIG_VL6180X_RNG_INT (VL6180X_INT_DRDY) |
Default interrupt mode for ranging: VL6180X_INT_DRDY.
Definition at line 111 of file vl6180x_params.h.
#define CONFIG_VL6180X_RNG_MAX_TIME (50) |
Default ranging maximum convergence time: 50 ms.
Definition at line 106 of file vl6180x_params.h.
#define CONFIG_VL6180X_RNG_THRESH_HIGH (90) |
Default high threshold value for ranging comparison: 90 mm.
Definition at line 121 of file vl6180x_params.h.
#define CONFIG_VL6180X_RNG_THRESH_LOW (20) |
Default low threshold value for ranging comparison: 20 mm.
Definition at line 116 of file vl6180x_params.h.
#define VL6180X_PARAM_ADDR (VL6180X_I2C_ADDR) |
Default I2C device address.
Definition at line 38 of file vl6180x_params.h.
#define VL6180X_PARAM_ALS |
ALS measurement configuration parameters.
Definition at line 163 of file vl6180x_params.h.
#define VL6180X_PARAM_DEV I2C_DEV(0) |
Default I2C_DEV(0) device.
Definition at line 33 of file vl6180x_params.h.
#define VL6180X_PARAM_INT .int_pin = VL6180X_PARAM_INT_PIN, |
Interrupt pin configuration.
Definition at line 179 of file vl6180x_params.h.
#define VL6180X_PARAM_INT_ALS_CFG |
Interrupt configuration for ALS.
Definition at line 192 of file vl6180x_params.h.
#define VL6180X_PARAM_INT_PIN (GPIO_PIN(0, 1)) |
Default interrupt pin.
Definition at line 43 of file vl6180x_params.h.
#define VL6180X_PARAM_INT_RNG_CFG |
Interrupt configuration for ranging.
Definition at line 183 of file vl6180x_params.h.
#define VL6180X_PARAM_RANGE .rng_max_time = CONFIG_VL6180X_RNG_MAX_TIME, |
Range measurement configuration parameters.
Definition at line 156 of file vl6180x_params.h.
#define VL6180X_PARAM_SHUTDOWN .shutdown_pin = VL6180X_PARAM_SHUTDOWN_PIN, |
Shutdown hardware configuration.
Definition at line 172 of file vl6180x_params.h.
#define VL6180X_PARAM_SHUTDOWN_PIN (GPIO_PIN(0, 2)) |
Default shutdown pin.
Definition at line 48 of file vl6180x_params.h.
#define VL6180X_PARAMS |
Default configuration parameter set.
Definition at line 207 of file vl6180x_params.h.
#define VL6180X_SAUL_INFO { .name = "vl6180x" } |
Default SAUL information.
Definition at line 222 of file vl6180x_params.h.
|
static |
Allocate some memory to store the actual configuration.
Definition at line 229 of file vl6180x_params.h.
|
static |
Additional meta information to keep in the SAUL registry.
Definition at line 237 of file vl6180x_params.h.