ambient21 2.1.0.0
Ambient 21 Registers Settings

Settings for registers of Ambient 21 Click driver. More...

Macros

#define AMBIENT21_CMD_NORMAL_OP   0xA0
 Ambient 21 command register setting.
 
#define AMBIENT21_CMD_SPEC_FUNC   0xE0
 
#define AMBIENT21_SF_INT_SET   0x04
 
#define AMBIENT21_SF_CLEAR_ALS_INT   0x06
 
#define AMBIENT21_SF_CLEAR_ALS_NOPERS_INT   0x07
 
#define AMBIENT21_SF_CLEAR_NOPERS_INT   0x0A
 
#define AMBIENT21_ADDR_SF_MASK   0x1F
 
#define AMBIENT21_ENABLE_NPIEN   0x80
 Ambient 21 enable register setting.
 
#define AMBIENT21_ENABLE_SAI   0x40
 
#define AMBIENT21_ENABLE_AIEN   0x10
 
#define AMBIENT21_ENABLE_AEN   0x02
 
#define AMBIENT21_ENABLE_PON   0x01
 
#define AMBIENT21_CONFIG_SRESET   0x80
 Ambient 21 config register setting.
 
#define AMBIENT21_CONFIG_AGAIN_LOW   0x00
 
#define AMBIENT21_CONFIG_AGAIN_MID   0x10
 
#define AMBIENT21_CONFIG_AGAIN_HIGH   0x20
 
#define AMBIENT21_CONFIG_AGAIN_MAX   0x30
 
#define AMBIENT21_CONFIG_AGAIN_MASK   0x30
 
#define AMBIENT21_CONFIG_ATIME_100MS   0x00
 
#define AMBIENT21_CONFIG_ATIME_200MS   0x01
 
#define AMBIENT21_CONFIG_ATIME_300MS   0x02
 
#define AMBIENT21_CONFIG_ATIME_400MS   0x03
 
#define AMBIENT21_CONFIG_ATIME_500MS   0x04
 
#define AMBIENT21_CONFIG_ATIME_600MS   0x05
 
#define AMBIENT21_CONFIG_ATIME_MASK   0x07
 
#define AMBIENT21_PERSIST_EVERY   0x00
 Ambient 21 persist register setting.
 
#define AMBIENT21_PERSIST_ANY   0x01
 
#define AMBIENT21_PERSIST_2   0x02
 
#define AMBIENT21_PERSIST_3   0x03
 
#define AMBIENT21_PERSIST_5   0x04
 
#define AMBIENT21_PERSIST_10   0x05
 
#define AMBIENT21_PERSIST_15   0x06
 
#define AMBIENT21_PERSIST_20   0x07
 
#define AMBIENT21_PERSIST_25   0x08
 
#define AMBIENT21_PERSIST_30   0x09
 
#define AMBIENT21_PERSIST_35   0x0A
 
#define AMBIENT21_PERSIST_40   0x0B
 
#define AMBIENT21_PERSIST_45   0x0C
 
#define AMBIENT21_PERSIST_50   0x0D
 
#define AMBIENT21_PERSIST_55   0x0E
 
#define AMBIENT21_PERSIST_60   0x0F
 
#define AMBIENT21_PERSIST_MASK   0x0F
 
#define AMBIENT21_STATUS_NPINTR   0x20
 Ambient 21 status register setting.
 
#define AMBIENT21_STATUS_AINT   0x10
 
#define AMBIENT21_STATUS_AVALID   0x01
 
#define AMBIENT21_DEVICE_ID   0x50
 Ambient 21 ID values.
 
#define AMBIENT21_AGAIN_LOW   0x00
 Ambient 21 again and atime setting.
 
#define AMBIENT21_AGAIN_MID   0x01
 
#define AMBIENT21_AGAIN_HIGH   0x02
 
#define AMBIENT21_AGAIN_MAX   0x03
 
#define AMBIENT21_ATIME_100MS   0x00
 
#define AMBIENT21_ATIME_200MS   0x01
 
#define AMBIENT21_ATIME_300MS   0x02
 
#define AMBIENT21_ATIME_400MS   0x03
 
#define AMBIENT21_ATIME_500MS   0x04
 
#define AMBIENT21_ATIME_600MS   0x05
 
#define AMBIENT21_GAIN_0   1.0f
 Ambient 21 lux calculation values.
 
#define AMBIENT21_GAIN_1   25.0f
 
#define AMBIENT21_GAIN_2   428.0f
 
#define AMBIENT21_GAIN_3   9876.0f
 
#define AMBIENT21_TIME_RES   100.0f
 
#define AMBIENT21_LUX_GDF   900.0f
 
#define AMBIENT21_LUX_COEF   1.0f
 
#define AMBIENT21_DEVICE_ADDRESS   0x29
 Ambient 21 device address setting.
 

Detailed Description

Settings for registers of Ambient 21 Click driver.

Macro Definition Documentation

◆ AMBIENT21_ADDR_SF_MASK

#define AMBIENT21_ADDR_SF_MASK   0x1F

◆ AMBIENT21_AGAIN_HIGH

#define AMBIENT21_AGAIN_HIGH   0x02

◆ AMBIENT21_AGAIN_LOW

#define AMBIENT21_AGAIN_LOW   0x00

Ambient 21 again and atime setting.

Specified setting for again and atime of Ambient 21 Click driver.

◆ AMBIENT21_AGAIN_MAX

#define AMBIENT21_AGAIN_MAX   0x03

◆ AMBIENT21_AGAIN_MID

#define AMBIENT21_AGAIN_MID   0x01

◆ AMBIENT21_ATIME_100MS

#define AMBIENT21_ATIME_100MS   0x00

◆ AMBIENT21_ATIME_200MS

#define AMBIENT21_ATIME_200MS   0x01

◆ AMBIENT21_ATIME_300MS

#define AMBIENT21_ATIME_300MS   0x02

◆ AMBIENT21_ATIME_400MS

#define AMBIENT21_ATIME_400MS   0x03

◆ AMBIENT21_ATIME_500MS

#define AMBIENT21_ATIME_500MS   0x04

◆ AMBIENT21_ATIME_600MS

#define AMBIENT21_ATIME_600MS   0x05

◆ AMBIENT21_CMD_NORMAL_OP

#define AMBIENT21_CMD_NORMAL_OP   0xA0

Ambient 21 command register setting.

Specified setting for Command register of Ambient 21 Click driver.

◆ AMBIENT21_CMD_SPEC_FUNC

#define AMBIENT21_CMD_SPEC_FUNC   0xE0

◆ AMBIENT21_CONFIG_AGAIN_HIGH

#define AMBIENT21_CONFIG_AGAIN_HIGH   0x20

◆ AMBIENT21_CONFIG_AGAIN_LOW

#define AMBIENT21_CONFIG_AGAIN_LOW   0x00

◆ AMBIENT21_CONFIG_AGAIN_MASK

#define AMBIENT21_CONFIG_AGAIN_MASK   0x30

◆ AMBIENT21_CONFIG_AGAIN_MAX

#define AMBIENT21_CONFIG_AGAIN_MAX   0x30

◆ AMBIENT21_CONFIG_AGAIN_MID

#define AMBIENT21_CONFIG_AGAIN_MID   0x10

◆ AMBIENT21_CONFIG_ATIME_100MS

#define AMBIENT21_CONFIG_ATIME_100MS   0x00

◆ AMBIENT21_CONFIG_ATIME_200MS

#define AMBIENT21_CONFIG_ATIME_200MS   0x01

◆ AMBIENT21_CONFIG_ATIME_300MS

#define AMBIENT21_CONFIG_ATIME_300MS   0x02

◆ AMBIENT21_CONFIG_ATIME_400MS

#define AMBIENT21_CONFIG_ATIME_400MS   0x03

◆ AMBIENT21_CONFIG_ATIME_500MS

#define AMBIENT21_CONFIG_ATIME_500MS   0x04

◆ AMBIENT21_CONFIG_ATIME_600MS

#define AMBIENT21_CONFIG_ATIME_600MS   0x05

◆ AMBIENT21_CONFIG_ATIME_MASK

#define AMBIENT21_CONFIG_ATIME_MASK   0x07

◆ AMBIENT21_CONFIG_SRESET

#define AMBIENT21_CONFIG_SRESET   0x80

Ambient 21 config register setting.

Specified setting for config register of Ambient 21 Click driver.

◆ AMBIENT21_DEVICE_ADDRESS

#define AMBIENT21_DEVICE_ADDRESS   0x29

Ambient 21 device address setting.

Specified setting for device slave address selection of Ambient 21 Click driver.

◆ AMBIENT21_DEVICE_ID

#define AMBIENT21_DEVICE_ID   0x50

Ambient 21 ID values.

Specified ID values of Ambient 21 Click driver.

◆ AMBIENT21_ENABLE_AEN

#define AMBIENT21_ENABLE_AEN   0x02

◆ AMBIENT21_ENABLE_AIEN

#define AMBIENT21_ENABLE_AIEN   0x10

◆ AMBIENT21_ENABLE_NPIEN

#define AMBIENT21_ENABLE_NPIEN   0x80

Ambient 21 enable register setting.

Specified setting for enable register of Ambient 21 Click driver.

◆ AMBIENT21_ENABLE_PON

#define AMBIENT21_ENABLE_PON   0x01

◆ AMBIENT21_ENABLE_SAI

#define AMBIENT21_ENABLE_SAI   0x40

◆ AMBIENT21_GAIN_0

#define AMBIENT21_GAIN_0   1.0f

Ambient 21 lux calculation values.

Specified lux calculation values of Ambient 21 Click driver.

◆ AMBIENT21_GAIN_1

#define AMBIENT21_GAIN_1   25.0f

◆ AMBIENT21_GAIN_2

#define AMBIENT21_GAIN_2   428.0f

◆ AMBIENT21_GAIN_3

#define AMBIENT21_GAIN_3   9876.0f

◆ AMBIENT21_LUX_COEF

#define AMBIENT21_LUX_COEF   1.0f

◆ AMBIENT21_LUX_GDF

#define AMBIENT21_LUX_GDF   900.0f

◆ AMBIENT21_PERSIST_10

#define AMBIENT21_PERSIST_10   0x05

◆ AMBIENT21_PERSIST_15

#define AMBIENT21_PERSIST_15   0x06

◆ AMBIENT21_PERSIST_2

#define AMBIENT21_PERSIST_2   0x02

◆ AMBIENT21_PERSIST_20

#define AMBIENT21_PERSIST_20   0x07

◆ AMBIENT21_PERSIST_25

#define AMBIENT21_PERSIST_25   0x08

◆ AMBIENT21_PERSIST_3

#define AMBIENT21_PERSIST_3   0x03

◆ AMBIENT21_PERSIST_30

#define AMBIENT21_PERSIST_30   0x09

◆ AMBIENT21_PERSIST_35

#define AMBIENT21_PERSIST_35   0x0A

◆ AMBIENT21_PERSIST_40

#define AMBIENT21_PERSIST_40   0x0B

◆ AMBIENT21_PERSIST_45

#define AMBIENT21_PERSIST_45   0x0C

◆ AMBIENT21_PERSIST_5

#define AMBIENT21_PERSIST_5   0x04

◆ AMBIENT21_PERSIST_50

#define AMBIENT21_PERSIST_50   0x0D

◆ AMBIENT21_PERSIST_55

#define AMBIENT21_PERSIST_55   0x0E

◆ AMBIENT21_PERSIST_60

#define AMBIENT21_PERSIST_60   0x0F

◆ AMBIENT21_PERSIST_ANY

#define AMBIENT21_PERSIST_ANY   0x01

◆ AMBIENT21_PERSIST_EVERY

#define AMBIENT21_PERSIST_EVERY   0x00

Ambient 21 persist register setting.

Specified setting for persist register of Ambient 21 Click driver.

◆ AMBIENT21_PERSIST_MASK

#define AMBIENT21_PERSIST_MASK   0x0F

◆ AMBIENT21_SF_CLEAR_ALS_INT

#define AMBIENT21_SF_CLEAR_ALS_INT   0x06

◆ AMBIENT21_SF_CLEAR_ALS_NOPERS_INT

#define AMBIENT21_SF_CLEAR_ALS_NOPERS_INT   0x07

◆ AMBIENT21_SF_CLEAR_NOPERS_INT

#define AMBIENT21_SF_CLEAR_NOPERS_INT   0x0A

◆ AMBIENT21_SF_INT_SET

#define AMBIENT21_SF_INT_SET   0x04

◆ AMBIENT21_STATUS_AINT

#define AMBIENT21_STATUS_AINT   0x10

◆ AMBIENT21_STATUS_AVALID

#define AMBIENT21_STATUS_AVALID   0x01

◆ AMBIENT21_STATUS_NPINTR

#define AMBIENT21_STATUS_NPINTR   0x20

Ambient 21 status register setting.

Specified setting for status register of Ambient 21 Click driver.

◆ AMBIENT21_TIME_RES

#define AMBIENT21_TIME_RES   100.0f