libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
apds9960.h File Reference

Go to the source code of this file.

Classes

class  daisy::Apds9960I2CTransport
 
struct  daisy::Apds9960I2CTransport::Config
 
class  daisy::Apds9960< Transport >
 Device support for APDS9960 gesture / RGB / proximity sensor. More...
 
struct  daisy::Apds9960< Transport >::Config
 

Namespaces

namespace  daisy
 Hardware defines and helpers for daisy field platform.
 

Macros

#define DSY_APDS9960_H
 
#define APDS9960_ADDRESS   (0x39)
 
#define APDS9960_UP   0x01
 
#define APDS9960_DOWN   0x02
 
#define APDS9960_LEFT   0x03
 
#define APDS9960_RIGHT   0x04
 
#define APDS9960_RAM   0x00
 
#define APDS9960_ENABLE   0x80
 
#define APDS9960_ATIME   0x81
 
#define APDS9960_WTIME   0x83
 
#define APDS9960_AILTIL   0x84
 
#define APDS9960_AILTH   0x85
 
#define APDS9960_AIHTL   0x86
 
#define APDS9960_AIHTH   0x87
 
#define APDS9960_PILT   0x89
 
#define APDS9960_PIHT   0x8B
 
#define APDS9960_PERS   0x8C
 
#define APDS9960_CONFIG1   0x8D
 
#define APDS9960_PPULSE   0x8E
 
#define APDS9960_CONTROL   0x8F
 
#define APDS9960_CONFIG2   0x90
 
#define APDS9960_ID   0x92
 
#define APDS9960_STATUS   0x93
 
#define APDS9960_CDATAL   0x94
 
#define APDS9960_CDATAH   0x95
 
#define APDS9960_RDATAL   0x96
 
#define APDS9960_RDATAH   0x97
 
#define APDS9960_GDATAL   0x98
 
#define APDS9960_GDATAH   0x99
 
#define APDS9960_BDATAL   0x9A
 
#define APDS9960_BDATAH   0x9B
 
#define APDS9960_PDATA   0x9C
 
#define APDS9960_POFFSET_UR   0x9D
 
#define APDS9960_POFFSET_DL   0x9E
 
#define APDS9960_CONFIG3   0x9F
 
#define APDS9960_GPENTH   0xA0
 
#define APDS9960_GEXTH   0xA1
 
#define APDS9960_GCONF1   0xA2
 
#define APDS9960_GCONF2   0xA3
 
#define APDS9960_GOFFSET_U   0xA4
 
#define APDS9960_GOFFSET_D   0xA5
 
#define APDS9960_GOFFSET_L   0xA7
 
#define APDS9960_GOFFSET_R   0xA9
 
#define APDS9960_GPULSE   0xA6
 
#define APDS9960_GCONF3   0xAA
 
#define APDS9960_GCONF4   0xAB
 
#define APDS9960_GFLVL   0xAE
 
#define APDS9960_GSTATUS   0xAF
 
#define APDS9960_IFORCE   0xE4
 
#define APDS9960_PICLEAR   0xE5
 
#define APDS9960_CICLEAR   0xE6
 
#define APDS9960_AICLEAR   0xE7
 
#define APDS9960_GFIFO_U   0xFC
 
#define APDS9960_GFIFO_D   0xFD
 
#define APDS9960_GFIFO_L   0xFE
 
#define APDS9960_GFIFO_R   0xFF
 

Typedefs

using daisy::Apds9960I2C = Apds9960< Apds9960I2CTransport >
 

Macro Definition Documentation

◆ APDS9960_ADDRESS

#define APDS9960_ADDRESS   (0x39)

I2C Address

◆ APDS9960_AICLEAR

#define APDS9960_AICLEAR   0xE7

◆ APDS9960_AIHTH

#define APDS9960_AIHTH   0x87

◆ APDS9960_AIHTL

#define APDS9960_AIHTL   0x86

◆ APDS9960_AILTH

#define APDS9960_AILTH   0x85

◆ APDS9960_AILTIL

#define APDS9960_AILTIL   0x84

◆ APDS9960_ATIME

#define APDS9960_ATIME   0x81

◆ APDS9960_BDATAH

#define APDS9960_BDATAH   0x9B

◆ APDS9960_BDATAL

#define APDS9960_BDATAL   0x9A

◆ APDS9960_CDATAH

#define APDS9960_CDATAH   0x95

◆ APDS9960_CDATAL

#define APDS9960_CDATAL   0x94

◆ APDS9960_CICLEAR

#define APDS9960_CICLEAR   0xE6

◆ APDS9960_CONFIG1

#define APDS9960_CONFIG1   0x8D

◆ APDS9960_CONFIG2

#define APDS9960_CONFIG2   0x90

◆ APDS9960_CONFIG3

#define APDS9960_CONFIG3   0x9F

◆ APDS9960_CONTROL

#define APDS9960_CONTROL   0x8F

◆ APDS9960_DOWN

#define APDS9960_DOWN   0x02

Gesture Down

◆ APDS9960_ENABLE

#define APDS9960_ENABLE   0x80

◆ APDS9960_GCONF1

#define APDS9960_GCONF1   0xA2

◆ APDS9960_GCONF2

#define APDS9960_GCONF2   0xA3

◆ APDS9960_GCONF3

#define APDS9960_GCONF3   0xAA

◆ APDS9960_GCONF4

#define APDS9960_GCONF4   0xAB

◆ APDS9960_GDATAH

#define APDS9960_GDATAH   0x99

◆ APDS9960_GDATAL

#define APDS9960_GDATAL   0x98

◆ APDS9960_GEXTH

#define APDS9960_GEXTH   0xA1

◆ APDS9960_GFIFO_D

#define APDS9960_GFIFO_D   0xFD

◆ APDS9960_GFIFO_L

#define APDS9960_GFIFO_L   0xFE

◆ APDS9960_GFIFO_R

#define APDS9960_GFIFO_R   0xFF

◆ APDS9960_GFIFO_U

#define APDS9960_GFIFO_U   0xFC

◆ APDS9960_GFLVL

#define APDS9960_GFLVL   0xAE

◆ APDS9960_GOFFSET_D

#define APDS9960_GOFFSET_D   0xA5

◆ APDS9960_GOFFSET_L

#define APDS9960_GOFFSET_L   0xA7

◆ APDS9960_GOFFSET_R

#define APDS9960_GOFFSET_R   0xA9

◆ APDS9960_GOFFSET_U

#define APDS9960_GOFFSET_U   0xA4

◆ APDS9960_GPENTH

#define APDS9960_GPENTH   0xA0

◆ APDS9960_GPULSE

#define APDS9960_GPULSE   0xA6

◆ APDS9960_GSTATUS

#define APDS9960_GSTATUS   0xAF

◆ APDS9960_ID

#define APDS9960_ID   0x92

◆ APDS9960_IFORCE

#define APDS9960_IFORCE   0xE4

◆ APDS9960_LEFT

#define APDS9960_LEFT   0x03

Gesture Left

◆ APDS9960_PDATA

#define APDS9960_PDATA   0x9C

◆ APDS9960_PERS

#define APDS9960_PERS   0x8C

◆ APDS9960_PICLEAR

#define APDS9960_PICLEAR   0xE5

◆ APDS9960_PIHT

#define APDS9960_PIHT   0x8B

◆ APDS9960_PILT

#define APDS9960_PILT   0x89

◆ APDS9960_POFFSET_DL

#define APDS9960_POFFSET_DL   0x9E

◆ APDS9960_POFFSET_UR

#define APDS9960_POFFSET_UR   0x9D

◆ APDS9960_PPULSE

#define APDS9960_PPULSE   0x8E

◆ APDS9960_RAM

#define APDS9960_RAM   0x00

I2C Registers

◆ APDS9960_RDATAH

#define APDS9960_RDATAH   0x97

◆ APDS9960_RDATAL

#define APDS9960_RDATAL   0x96

◆ APDS9960_RIGHT

#define APDS9960_RIGHT   0x04

Gesture Right

◆ APDS9960_STATUS

#define APDS9960_STATUS   0x93

◆ APDS9960_UP

#define APDS9960_UP   0x01

Gesture Up

◆ APDS9960_WTIME

#define APDS9960_WTIME   0x83

◆ DSY_APDS9960_H

#define DSY_APDS9960_H