Loading...
Searching...
No Matches

Default configuration for Broadcom APDS99XX proximity and ambient light sensor. More...

Detailed Description

Default configuration for Broadcom APDS99XX proximity and ambient light sensor.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file apds99xx_params.h.

#include "board.h"
#include "apds99xx.h"
#include "saul_reg.h"
+ Include dependency graph for apds99xx_params.h:

Go to the source code of this file.

Variables

static const apds99xx_params_t apds99xx_params []
 Allocate some memory to store the actual configuration.
 
static const saul_reg_info_t apds99xx_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters

#define APDS99XX_PARAM_DEV   I2C_DEV(0)
 device is I2C_DEV(0)
 
#define APDS99XX_PARAM_ALS_STEPS   (64)
 ALS measurement: enabled with integration time of 64 steps.
 
#define APDS99XX_PARAM_ALS_GAIN   (APDS99XX_ALS_GAIN_1)
 ALS gain: 1 x gain.
 
#define APDS99XX_PARAM_PRX_PULSES   (8)
 PRX LED pulse count: 8 pulses as recommended in datasheet.
 
#define APDS99XX_PARAM_PRX_DRIVE   (APDS99XX_PRX_DRIVE_100)
 PRX LED drive strength: 100 mA as recommended in datasheet.
 
#define APDS99XX_PARAM_PRX_GAIN   (APDS99XX_PRX_GAIN_1)
 PRX gain: 1 x gain.
 
#define APDS99XX_PARAM_WAIT_STEPS   (0)
 Waiting time: disabled.
 
#define APDS99XX_PARAM_WAIT_LONG   (false)
 Wait long: false.
 
#define APDS99XX_PARAM_INT_PIN   (GPIO_PIN(0, 0))
 Interrupt pin.
 
#define APDS99XX_PARAMS
 
#define APDS99XX_SAUL_INFO   { .name = "apds99xx" }
 

Macro Definition Documentation

◆ APDS99XX_PARAM_ALS_GAIN

#define APDS99XX_PARAM_ALS_GAIN   (APDS99XX_ALS_GAIN_1)

ALS gain: 1 x gain.

Definition at line 43 of file apds99xx_params.h.

◆ APDS99XX_PARAM_ALS_STEPS

#define APDS99XX_PARAM_ALS_STEPS   (64)

ALS measurement: enabled with integration time of 64 steps.

Definition at line 39 of file apds99xx_params.h.

◆ APDS99XX_PARAM_DEV

#define APDS99XX_PARAM_DEV   I2C_DEV(0)

device is I2C_DEV(0)

Definition at line 34 of file apds99xx_params.h.

◆ APDS99XX_PARAM_INT_PIN

#define APDS99XX_PARAM_INT_PIN   (GPIO_PIN(0, 0))

Interrupt pin.

Definition at line 69 of file apds99xx_params.h.

◆ APDS99XX_PARAM_PRX_DRIVE

#define APDS99XX_PARAM_PRX_DRIVE   (APDS99XX_PRX_DRIVE_100)

PRX LED drive strength: 100 mA as recommended in datasheet.

Definition at line 52 of file apds99xx_params.h.

◆ APDS99XX_PARAM_PRX_GAIN

#define APDS99XX_PARAM_PRX_GAIN   (APDS99XX_PRX_GAIN_1)

PRX gain: 1 x gain.

Definition at line 56 of file apds99xx_params.h.

◆ APDS99XX_PARAM_PRX_PULSES

#define APDS99XX_PARAM_PRX_PULSES   (8)

PRX LED pulse count: 8 pulses as recommended in datasheet.

Definition at line 48 of file apds99xx_params.h.

◆ APDS99XX_PARAM_WAIT_LONG

#define APDS99XX_PARAM_WAIT_LONG   (false)

Wait long: false.

Definition at line 64 of file apds99xx_params.h.

◆ APDS99XX_PARAM_WAIT_STEPS

#define APDS99XX_PARAM_WAIT_STEPS   (0)

Waiting time: disabled.

Definition at line 60 of file apds99xx_params.h.

◆ APDS99XX_PARAMS

#define APDS99XX_PARAMS
Value:
{ \
.als_steps = APDS99XX_PARAM_ALS_STEPS, \
.als_gain = APDS99XX_PARAM_ALS_GAIN, \
.prx_pulses = APDS99XX_PARAM_PRX_PULSES, \
.prx_gain = APDS99XX_PARAM_PRX_GAIN, \
.prx_drive = APDS99XX_PARAM_PRX_DRIVE, \
.wait_steps = APDS99XX_PARAM_WAIT_STEPS, \
.wait_long = APDS99XX_PARAM_WAIT_LONG, \
.int_pin = APDS99XX_PARAM_INT_PIN, \
}
#define APDS99XX_PARAM_WAIT_STEPS
Waiting time: disabled.
#define APDS99XX_PARAM_INT_PIN
Interrupt pin.
#define APDS99XX_PARAM_ALS_STEPS
ALS measurement: enabled with integration time of 64 steps.
#define APDS99XX_PARAM_ALS_GAIN
ALS gain: 1 x gain.
#define APDS99XX_PARAM_DEV
device is I2C_DEV(0)
#define APDS99XX_PARAM_PRX_GAIN
PRX gain: 1 x gain.
#define APDS99XX_PARAM_PRX_DRIVE
PRX LED drive strength: 100 mA as recommended in datasheet.
#define APDS99XX_PARAM_WAIT_LONG
Wait long: false.
#define APDS99XX_PARAM_PRX_PULSES
PRX LED pulse count: 8 pulses as recommended in datasheet.

Definition at line 73 of file apds99xx_params.h.

◆ APDS99XX_SAUL_INFO

#define APDS99XX_SAUL_INFO   { .name = "apds99xx" }

Definition at line 87 of file apds99xx_params.h.

Variable Documentation

◆ apds99xx_params

const apds99xx_params_t apds99xx_params[]
static
Initial value:
=
{
APDS99XX_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 94 of file apds99xx_params.h.

◆ apds99xx_saul_info

const saul_reg_info_t apds99xx_saul_info[]
static
Initial value:
=
{
APDS99XX_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 102 of file apds99xx_params.h.