Register definitions for Broadcom APDS99XX proximity and ambient light sensor. More...
Register definitions for Broadcom APDS99XX proximity and ambient light sensor.
Definition in file apds99xx_regs.h.
Go to the source code of this file.
Register addresses | |
| #define | APDS99XX_REG_BASE (0xa0) | 
| Register base address for autoincrement is 0xa0.  | |
| #define | APDS99XX_REG_ENABLE (APDS99XX_REG_BASE + 0x00) | 
| Enable states and interrupts.  | |
| #define | APDS99XX_REG_ATIME (APDS99XX_REG_BASE + 0x01) | 
| ALS timing register.  | |
| #define | APDS99XX_REG_WTIME (APDS99XX_REG_BASE + 0x03) | 
| Wait timing register.  | |
| #define | APDS99XX_REG_AILTL (APDS99XX_REG_BASE + 0x04) | 
| ALS interrupt low threshold low byte.  | |
| #define | APDS99XX_REG_AILTH (APDS99XX_REG_BASE + 0x05) | 
| ALS interrupt low threshold high byte.  | |
| #define | APDS99XX_REG_AIHTL (APDS99XX_REG_BASE + 0x06) | 
| ALS interrupt high threshold low byte.  | |
| #define | APDS99XX_REG_AIHTH (APDS99XX_REG_BASE + 0x07) | 
| ALS interrupt high threshold high byte.  | |
| #define | APDS99XX_REG_PILTL (APDS99XX_REG_BASE + 0x08) | 
| PRX interrupt low threshold low byte.  | |
| #define | APDS99XX_REG_PILTH (APDS99XX_REG_BASE + 0x09) | 
| PRX interrupt low threshold high byte.  | |
| #define | APDS99XX_REG_PIHTL (APDS99XX_REG_BASE + 0x0a) | 
| PRX interrupt high threshold low byte.  | |
| #define | APDS99XX_REG_PIHTH (APDS99XX_REG_BASE + 0x0b) | 
| PRX interrupt high threshold high byte.  | |
| #define | APDS99XX_REG_PERS (APDS99XX_REG_BASE + 0x0c) | 
| Interrupt persistence filters.  | |
| #define | APDS99XX_REG_CONFIG (APDS99XX_REG_BASE + 0x0d) | 
| Configuration register (one)  | |
| #define | APDS99XX_REG_PPCOUNT (APDS99XX_REG_BASE + 0x0e) | 
| Proximity pulse count.  | |
| #define | APDS99XX_REG_CONTROL (APDS99XX_REG_BASE + 0x0f) | 
| Control.  | |
| #define | APDS99XX_REG_ID (APDS99XX_REG_BASE + 0x12) | 
| Device ID.  | |
| #define | APDS99XX_REG_STATUS (APDS99XX_REG_BASE + 0x13) | 
| Device status.  | |
| #define | APDS99XX_REG_CDATAL (APDS99XX_REG_BASE + 0x14) | 
| Clear channel / Ch0 ADC data low byte.  | |
| #define | APDS99XX_REG_CDATAH (APDS99XX_REG_BASE + 0x15) | 
| Clear channel / Ch0 ADC data high byte.  | |
| #define | APDS99XX_REG_CLI_CMD (0xe7) | 
| Clear ALS and proximity interrupt command.  | |
Register structure definitions | |
| #define | APDS99XX_REG_GEN (0x40) | 
| Gesture Enable.  | |
| #define | APDS99XX_REG_PIEN (0x20) | 
| Proximity Interrupt Enable.  | |
| #define | APDS99XX_REG_AIEN (0x10) | 
| ALS Interrupt Enable.  | |
| #define | APDS99XX_REG_WEN (0x08) | 
| Wait Enable.  | |
| #define | APDS99XX_REG_PEN (0x04) | 
| Proximity Detect Enable.  | |
| #define | APDS99XX_REG_AEN (0x02) | 
| ALS Enable.  | |
| #define | APDS99XX_REG_PON (0x01) | 
| Power ON.  | |
| #define | APDS99XX_REG_CPSAT (0x80) | 
| Clear Photodiode Saturation.  | |
| #define | APDS99XX_REG_PGSAT (0x40) | 
| Analog saturation event occurred.  | |
| #define | APDS99XX_REG_PINT (0x20) | 
| Proximity Interrupt.  | |
| #define | APDS99XX_REG_AINT (0x10) | 
| ALS Interrupt.  | |
| #define | APDS99XX_REG_GINT (0x04) | 
| Gesture Interrupt.  | |
| #define | APDS99XX_REG_PVALID (0x02) | 
| Proximity Valid.  | |
| #define | APDS99XX_REG_AVALID (0x01) | 
| ALS Valid.  | |
| #define | APDS99XX_REG_PDRIVE (0xc0) | 
| Control register (APDS99XX_REG_CONTROL)  More... | |
| #define | APDS99XX_REG_PDIODE (0x30) | 
| Proximity Diode Select.  | |
| #define | APDS99XX_REG_PGAIN (0x0c) | 
| Proximity Gain Control.  | |
| #define | APDS99XX_REG_AGAIN (0x03) | 
| ALS (and Color) Gain Control.  | |
| #define | APDS99XX_REG_WLONG (0x02) | 
| Configuration register (APDS99XX_REG_CONFIG)  More... | |
| #define | APDS99XX_REG_PPERS (0xf0) | 
| Interrupt persistence filter register (APDS99XX_REG_PERS)  More... | |
| #define | APDS99XX_REG_APERS (0x0f) | 
| ALS Interrupt persistence.  | |
| #define APDS99XX_REG_PDRIVE (0xc0) | 
Control register (APDS99XX_REG_CONTROL)
LED Drive Strength
Definition at line 111 of file apds99xx_regs.h.
| #define APDS99XX_REG_PPERS (0xf0) | 
Interrupt persistence filter register (APDS99XX_REG_PERS)
Proximity Interrupt persistence.
Definition at line 122 of file apds99xx_regs.h.
| #define APDS99XX_REG_WLONG (0x02) | 
Configuration register (APDS99XX_REG_CONFIG)
Wait Long
Definition at line 119 of file apds99xx_regs.h.