APDS99XX device initialization parameters. More...
APDS99XX device initialization parameters.
Definition at line 325 of file apds99xx.h.
#include <apds99xx.h>
Data Fields | |
| unsigned | dev | 
| I2C device (default I2C_DEV(0))  | |
| uint16_t | als_steps | 
| ALS integration time in steps.  More... | |
| apds99xx_als_gain_t | als_gain | 
| Gain used for ALS.  More... | |
| uint8_t | prx_pulses | 
| IR LED pulses for proximity sensing.  More... | |
| apds99xx_prx_drive_t | prx_drive | 
| IR LED current for proximity sensing (default APDS99XX_PRX_DRIVE_100)  | |
| apds99xx_prx_gain_t | prx_gain | 
| Gain used for proximity sensing.  More... | |
| uint16_t | wait_steps | 
| Waiting time in steps.  More... | |
| bool | wait_long | 
| Long waiting time.  More... | |
| gpio_t | int_pin | 
| interrupt pin: GPIO_UNDEF if not used  | |
| apds99xx_als_gain_t apds99xx_params_t::als_gain | 
| uint16_t apds99xx_params_t::als_steps | 
ALS integration time in steps.
If 0, ALS is disabled. (default 64)
Definition at line 329 of file apds99xx.h.
| apds99xx_prx_gain_t apds99xx_params_t::prx_gain | 
Gain used for proximity sensing.
(default APDS99XX_PRX_GAIN_1)
Definition at line 339 of file apds99xx.h.
| uint8_t apds99xx_params_t::prx_pulses | 
IR LED pulses for proximity sensing.
If 0, proximity sensing is disabled. (default 8 as recommended)
Definition at line 334 of file apds99xx.h.
| bool apds99xx_params_t::wait_long | 
Long waiting time.
If true, waitng time is increased by a factor 12. (default false)
Definition at line 344 of file apds99xx.h.
| uint16_t apds99xx_params_t::wait_steps | 
Waiting time in steps.
If 0, waiting is disabled. (default 0)
Definition at line 342 of file apds99xx.h.