Loading...
Searching...
No Matches

Register definitions for Broadcom APDS99XX proximity and ambient light sensor. More...

Detailed Description

Register definitions 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_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)
 
#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)
 
#define APDS99XX_REG_PPERS   (0xf0)
 Interrupt persistence filter register (APDS99XX_REG_PERS)
 
#define APDS99XX_REG_APERS   (0x0f)
 ALS Interrupt persistence.
 

Macro Definition Documentation

◆ APDS99XX_REG_AEN

#define APDS99XX_REG_AEN   (0x02)

ALS Enable.

Definition at line 99 of file apds99xx_regs.h.

◆ APDS99XX_REG_AGAIN

#define APDS99XX_REG_AGAIN   (0x03)

ALS (and Color) Gain Control.

Definition at line 117 of file apds99xx_regs.h.

◆ APDS99XX_REG_AIEN

#define APDS99XX_REG_AIEN   (0x10)

ALS Interrupt Enable.

Definition at line 96 of file apds99xx_regs.h.

◆ APDS99XX_REG_AIHTH

#define APDS99XX_REG_AIHTH   (APDS99XX_REG_BASE + 0x07)

ALS interrupt high threshold high byte.

Definition at line 44 of file apds99xx_regs.h.

◆ APDS99XX_REG_AIHTL

#define APDS99XX_REG_AIHTL   (APDS99XX_REG_BASE + 0x06)

ALS interrupt high threshold low byte.

Definition at line 43 of file apds99xx_regs.h.

◆ APDS99XX_REG_AILTH

#define APDS99XX_REG_AILTH   (APDS99XX_REG_BASE + 0x05)

ALS interrupt low threshold high byte.

Definition at line 42 of file apds99xx_regs.h.

◆ APDS99XX_REG_AILTL

#define APDS99XX_REG_AILTL   (APDS99XX_REG_BASE + 0x04)

ALS interrupt low threshold low byte.

Definition at line 41 of file apds99xx_regs.h.

◆ APDS99XX_REG_AINT

#define APDS99XX_REG_AINT   (0x10)

ALS Interrupt.

Definition at line 106 of file apds99xx_regs.h.

◆ APDS99XX_REG_APERS

#define APDS99XX_REG_APERS   (0x0f)

ALS Interrupt persistence.

Definition at line 124 of file apds99xx_regs.h.

◆ APDS99XX_REG_ATIME

#define APDS99XX_REG_ATIME   (APDS99XX_REG_BASE + 0x01)

ALS timing register.

Definition at line 36 of file apds99xx_regs.h.

◆ APDS99XX_REG_AVALID

#define APDS99XX_REG_AVALID   (0x01)

ALS Valid.

Definition at line 109 of file apds99xx_regs.h.

◆ APDS99XX_REG_BASE

#define APDS99XX_REG_BASE   (0xa0)

Register base address for autoincrement is 0xa0.

Definition at line 32 of file apds99xx_regs.h.

◆ APDS99XX_REG_CDATAH

#define APDS99XX_REG_CDATAH   (APDS99XX_REG_BASE + 0x15)

Clear channel / Ch0 ADC data high byte.

Definition at line 61 of file apds99xx_regs.h.

◆ APDS99XX_REG_CDATAL

#define APDS99XX_REG_CDATAL   (APDS99XX_REG_BASE + 0x14)

Clear channel / Ch0 ADC data low byte.

Definition at line 60 of file apds99xx_regs.h.

◆ APDS99XX_REG_CLI_CMD

#define APDS99XX_REG_CLI_CMD   (0xe7)

Clear ALS and proximity interrupt command.

Definition at line 85 of file apds99xx_regs.h.

◆ APDS99XX_REG_CONFIG

#define APDS99XX_REG_CONFIG   (APDS99XX_REG_BASE + 0x0d)

Configuration register (one)

Definition at line 54 of file apds99xx_regs.h.

◆ APDS99XX_REG_CONTROL

#define APDS99XX_REG_CONTROL   (APDS99XX_REG_BASE + 0x0f)

Control.

Definition at line 56 of file apds99xx_regs.h.

◆ APDS99XX_REG_CPSAT

#define APDS99XX_REG_CPSAT   (0x80)

Clear Photodiode Saturation.

Definition at line 103 of file apds99xx_regs.h.

◆ APDS99XX_REG_ENABLE

#define APDS99XX_REG_ENABLE   (APDS99XX_REG_BASE + 0x00)

Enable states and interrupts.

Definition at line 35 of file apds99xx_regs.h.

◆ APDS99XX_REG_GEN

#define APDS99XX_REG_GEN   (0x40)

Gesture Enable.

Definition at line 94 of file apds99xx_regs.h.

◆ APDS99XX_REG_GINT

#define APDS99XX_REG_GINT   (0x04)

Gesture Interrupt.

Definition at line 107 of file apds99xx_regs.h.

◆ APDS99XX_REG_ID

#define APDS99XX_REG_ID   (APDS99XX_REG_BASE + 0x12)

Device ID.

Definition at line 57 of file apds99xx_regs.h.

◆ APDS99XX_REG_PDIODE

#define APDS99XX_REG_PDIODE   (0x30)

Proximity Diode Select.

Definition at line 114 of file apds99xx_regs.h.

◆ APDS99XX_REG_PDRIVE

#define APDS99XX_REG_PDRIVE   (0xc0)

Control register (APDS99XX_REG_CONTROL)

LED Drive Strength

Definition at line 112 of file apds99xx_regs.h.

◆ APDS99XX_REG_PEN

#define APDS99XX_REG_PEN   (0x04)

Proximity Detect Enable.

Definition at line 98 of file apds99xx_regs.h.

◆ APDS99XX_REG_PERS

#define APDS99XX_REG_PERS   (APDS99XX_REG_BASE + 0x0c)

Interrupt persistence filters.

Definition at line 53 of file apds99xx_regs.h.

◆ APDS99XX_REG_PGAIN

#define APDS99XX_REG_PGAIN   (0x0c)

Proximity Gain Control.

Definition at line 116 of file apds99xx_regs.h.

◆ APDS99XX_REG_PGSAT

#define APDS99XX_REG_PGSAT   (0x40)

Analog saturation event occurred.

Definition at line 104 of file apds99xx_regs.h.

◆ APDS99XX_REG_PIEN

#define APDS99XX_REG_PIEN   (0x20)

Proximity Interrupt Enable.

Definition at line 95 of file apds99xx_regs.h.

◆ APDS99XX_REG_PIHTH

#define APDS99XX_REG_PIHTH   (APDS99XX_REG_BASE + 0x0b)

PRX interrupt high threshold high byte.

Definition at line 52 of file apds99xx_regs.h.

◆ APDS99XX_REG_PIHTL

#define APDS99XX_REG_PIHTL   (APDS99XX_REG_BASE + 0x0a)

PRX interrupt high threshold low byte.

Definition at line 50 of file apds99xx_regs.h.

◆ APDS99XX_REG_PILTH

#define APDS99XX_REG_PILTH   (APDS99XX_REG_BASE + 0x09)

PRX interrupt low threshold high byte.

Definition at line 48 of file apds99xx_regs.h.

◆ APDS99XX_REG_PILTL

#define APDS99XX_REG_PILTL   (APDS99XX_REG_BASE + 0x08)

PRX interrupt low threshold low byte.

Definition at line 46 of file apds99xx_regs.h.

◆ APDS99XX_REG_PINT

#define APDS99XX_REG_PINT   (0x20)

Proximity Interrupt.

Definition at line 105 of file apds99xx_regs.h.

◆ APDS99XX_REG_PON

#define APDS99XX_REG_PON   (0x01)

Power ON.

Definition at line 100 of file apds99xx_regs.h.

◆ APDS99XX_REG_PPCOUNT

#define APDS99XX_REG_PPCOUNT   (APDS99XX_REG_BASE + 0x0e)

Proximity pulse count.

Definition at line 55 of file apds99xx_regs.h.

◆ APDS99XX_REG_PPERS

#define APDS99XX_REG_PPERS   (0xf0)

Interrupt persistence filter register (APDS99XX_REG_PERS)

Proximity Interrupt persistence.

Definition at line 123 of file apds99xx_regs.h.

◆ APDS99XX_REG_PVALID

#define APDS99XX_REG_PVALID   (0x02)

Proximity Valid.

Definition at line 108 of file apds99xx_regs.h.

◆ APDS99XX_REG_STATUS

#define APDS99XX_REG_STATUS   (APDS99XX_REG_BASE + 0x13)

Device status.

Definition at line 58 of file apds99xx_regs.h.

◆ APDS99XX_REG_WEN

#define APDS99XX_REG_WEN   (0x08)

Wait Enable.

Definition at line 97 of file apds99xx_regs.h.

◆ APDS99XX_REG_WLONG

#define APDS99XX_REG_WLONG   (0x02)

Configuration register (APDS99XX_REG_CONFIG)

Wait Long

Definition at line 120 of file apds99xx_regs.h.

◆ APDS99XX_REG_WTIME

#define APDS99XX_REG_WTIME   (APDS99XX_REG_BASE + 0x03)

Wait timing register.

Definition at line 40 of file apds99xx_regs.h.