color16 2.1.0.0
Color 16 Registers Settings

Settings for registers of Color 16 Click driver. More...

Macros

#define COLOR16_ENABLE_FDEN   0x40
 Color 16 ENABLE register setting.
 
#define COLOR16_ENABLE_SMUXEN   0x10
 
#define COLOR16_ENABLE_WEN   0x08
 
#define COLOR16_ENABLE_SP_EN   0x02
 
#define COLOR16_ENABLE_PON   0x01
 
#define COLOR16_ENABLE_POFF   0x00
 
#define COLOR16_CFG_0_LOW_POWER   0x20
 Color 16 CFG_0 register setting.
 
#define COLOR16_CFG_0_REG_BANK   0x10
 
#define COLOR16_CFG_0_WLONG   0x04
 
#define COLOR16_CFG_1_AGAIN_0p5   0x00
 Color 16 CFG_1 register setting.
 
#define COLOR16_CFG_1_AGAIN_1   0x01
 
#define COLOR16_CFG_1_AGAIN_2   0x02
 
#define COLOR16_CFG_1_AGAIN_4   0x03
 
#define COLOR16_CFG_1_AGAIN_8   0x04
 
#define COLOR16_CFG_1_AGAIN_16   0x05
 
#define COLOR16_CFG_1_AGAIN_32   0x06
 
#define COLOR16_CFG_1_AGAIN_64   0x07
 
#define COLOR16_CFG_1_AGAIN_128   0x08
 
#define COLOR16_CFG_1_AGAIN_256   0x09
 
#define COLOR16_CFG_1_AGAIN_512   0x0A
 
#define COLOR16_CFG_1_AGAIN_1024   0x0B
 
#define COLOR16_CFG_1_AGAIN_2048   0x0C
 
#define COLOR16_CFG_1_AGAIN_MASK   0x1F
 
#define COLOR16_CFG_20_FD_FIFO_8BIT   0x80
 Color 16 CFG_20 register setting.
 
#define COLOR16_CFG_20_AUTO_SMUX_6CH   0x00
 
#define COLOR16_CFG_20_AUTO_SMUX_12CH   0x40
 
#define COLOR16_CFG_20_AUTO_SMUX_18CH   0x60
 
#define COLOR16_CFG_20_AUTO_SMUX_MASK   0x60
 
#define COLOR16_CONTROL_SW_RESET   0x08
 Color 16 CONTROL register setting.
 
#define COLOR16_CONTROL_SP_MAN_AZ   0x04
 
#define COLOR16_CONTROL_FIFO_CLR   0x02
 
#define COLOR16_CONTROL_CLEAR_SAI_ACT   0x01
 
#define COLOR16_LED_OFF   0x00
 Color 16 LED register setting.
 
#define COLOR16_LED_ON   0x80
 
#define COLOR16_LED_DRIVE_CURR_MIN   4
 
#define COLOR16_LED_DRIVE_CURR_MAX   258
 
#define COLOR16_LED_DRIVE_CURR_STEP   2
 
#define COLOR16_LED_DRIVE_CURR_DEFAULT   8
 
#define COLOR16_STATUS_ASAT   0x80
 Color 16 STATUS register setting.
 
#define COLOR16_STATUS_AINT   0x08
 
#define COLOR16_STATUS_FINT   0x04
 
#define COLOR16_STATUS_SINT   0x01
 
#define COLOR16_ASTATUS_ASAT   0x80
 Color 16 ASTATUS register setting.
 
#define COLOR16_ASTATUS_AGAIN_MASK   0x0F
 
#define COLOR16_STATUS_2_AVALID   0x40
 Color 16 STATUS_2 register setting.
 
#define COLOR16_STATUS_2_ASAT_DIG   0x10
 
#define COLOR16_STATUS_2_ASAT_ANA   0x08
 
#define COLOR16_STATUS_2_FDSAT_ANA   0x02
 
#define COLOR16_STATUS_2_FDSAT_DIG   0x01
 
#define COLOR16_DEVICE_ID   0x81
 Color 16 device ID value.
 
#define COLOR16_ACCESS_REG_BANK_ABOVE_80H   0
 Color 16 register bank access setting.
 
#define COLOR16_ACCESS_REG_BANK_20H_7FH   1
 
#define COLOR16_SINGLE_STEP_MS   0.00278f
 Color 16 integration time setting.
 
#define COLOR16_ATIME_MAX   255
 
#define COLOR16_ASTEP_MAX   65534
 
#define COLOR16_INTEGRATION_TIME_MAX   ( ( float ) ( COLOR16_ATIME_MAX + 1 ) * ( COLOR16_ASTEP_MAX + 1 ) * COLOR16_SINGLE_STEP_MS )
 
#define COLOR16_INTEGRATION_TIME_MIN   COLOR16_SINGLE_STEP_MS
 
#define COLOR16_INTEGRATION_TIME_DEFAULT   90.0f
 
#define COLOR16_WAIT_STEP_MS   2.78f
 
#define COLOR16_WTIME_MAX   255
 
#define COLOR16_WAIT_TIME_MAX   ( ( float ) ( COLOR16_WTIME_MAX + 1 ) * COLOR16_WAIT_STEP_MS )
 
#define COLOR16_WAIT_TIME_MIN   COLOR16_WAIT_STEP_MS
 
#define COLOR16_WAIT_TIME_DEFAULT   100.0f
 
#define COLOR16_DEVICE_ADDRESS   0x39
 Color 16 device address setting.
 

Detailed Description

Settings for registers of Color 16 Click driver.

Macro Definition Documentation

◆ COLOR16_ACCESS_REG_BANK_20H_7FH

#define COLOR16_ACCESS_REG_BANK_20H_7FH   1

◆ COLOR16_ACCESS_REG_BANK_ABOVE_80H

#define COLOR16_ACCESS_REG_BANK_ABOVE_80H   0

Color 16 register bank access setting.

Specified setting for register bank access of Color 16 Click driver.

◆ COLOR16_ASTATUS_AGAIN_MASK

#define COLOR16_ASTATUS_AGAIN_MASK   0x0F

◆ COLOR16_ASTATUS_ASAT

#define COLOR16_ASTATUS_ASAT   0x80

Color 16 ASTATUS register setting.

Specified setting for ASTATUS register of Color 16 Click driver.

◆ COLOR16_ASTEP_MAX

#define COLOR16_ASTEP_MAX   65534

◆ COLOR16_ATIME_MAX

#define COLOR16_ATIME_MAX   255

◆ COLOR16_CFG_0_LOW_POWER

#define COLOR16_CFG_0_LOW_POWER   0x20

Color 16 CFG_0 register setting.

Specified setting for CFG_0 register of Color 16 Click driver.

◆ COLOR16_CFG_0_REG_BANK

#define COLOR16_CFG_0_REG_BANK   0x10

◆ COLOR16_CFG_0_WLONG

#define COLOR16_CFG_0_WLONG   0x04

◆ COLOR16_CFG_1_AGAIN_0p5

#define COLOR16_CFG_1_AGAIN_0p5   0x00

Color 16 CFG_1 register setting.

Specified setting for CFG_1 register of Color 16 Click driver.

◆ COLOR16_CFG_1_AGAIN_1

#define COLOR16_CFG_1_AGAIN_1   0x01

◆ COLOR16_CFG_1_AGAIN_1024

#define COLOR16_CFG_1_AGAIN_1024   0x0B

◆ COLOR16_CFG_1_AGAIN_128

#define COLOR16_CFG_1_AGAIN_128   0x08

◆ COLOR16_CFG_1_AGAIN_16

#define COLOR16_CFG_1_AGAIN_16   0x05

◆ COLOR16_CFG_1_AGAIN_2

#define COLOR16_CFG_1_AGAIN_2   0x02

◆ COLOR16_CFG_1_AGAIN_2048

#define COLOR16_CFG_1_AGAIN_2048   0x0C

◆ COLOR16_CFG_1_AGAIN_256

#define COLOR16_CFG_1_AGAIN_256   0x09

◆ COLOR16_CFG_1_AGAIN_32

#define COLOR16_CFG_1_AGAIN_32   0x06

◆ COLOR16_CFG_1_AGAIN_4

#define COLOR16_CFG_1_AGAIN_4   0x03

◆ COLOR16_CFG_1_AGAIN_512

#define COLOR16_CFG_1_AGAIN_512   0x0A

◆ COLOR16_CFG_1_AGAIN_64

#define COLOR16_CFG_1_AGAIN_64   0x07

◆ COLOR16_CFG_1_AGAIN_8

#define COLOR16_CFG_1_AGAIN_8   0x04

◆ COLOR16_CFG_1_AGAIN_MASK

#define COLOR16_CFG_1_AGAIN_MASK   0x1F

◆ COLOR16_CFG_20_AUTO_SMUX_12CH

#define COLOR16_CFG_20_AUTO_SMUX_12CH   0x40

◆ COLOR16_CFG_20_AUTO_SMUX_18CH

#define COLOR16_CFG_20_AUTO_SMUX_18CH   0x60

◆ COLOR16_CFG_20_AUTO_SMUX_6CH

#define COLOR16_CFG_20_AUTO_SMUX_6CH   0x00

◆ COLOR16_CFG_20_AUTO_SMUX_MASK

#define COLOR16_CFG_20_AUTO_SMUX_MASK   0x60

◆ COLOR16_CFG_20_FD_FIFO_8BIT

#define COLOR16_CFG_20_FD_FIFO_8BIT   0x80

Color 16 CFG_20 register setting.

Specified setting for CFG_20 register of Color 16 Click driver.

◆ COLOR16_CONTROL_CLEAR_SAI_ACT

#define COLOR16_CONTROL_CLEAR_SAI_ACT   0x01

◆ COLOR16_CONTROL_FIFO_CLR

#define COLOR16_CONTROL_FIFO_CLR   0x02

◆ COLOR16_CONTROL_SP_MAN_AZ

#define COLOR16_CONTROL_SP_MAN_AZ   0x04

◆ COLOR16_CONTROL_SW_RESET

#define COLOR16_CONTROL_SW_RESET   0x08

Color 16 CONTROL register setting.

Specified setting for CONTROL register of Color 16 Click driver.

◆ COLOR16_DEVICE_ADDRESS

#define COLOR16_DEVICE_ADDRESS   0x39

Color 16 device address setting.

Specified setting for device slave address selection of Color 16 Click driver.

◆ COLOR16_DEVICE_ID

#define COLOR16_DEVICE_ID   0x81

Color 16 device ID value.

Specified device ID value of Color 16 Click driver.

◆ COLOR16_ENABLE_FDEN

#define COLOR16_ENABLE_FDEN   0x40

Color 16 ENABLE register setting.

Specified setting for ENABLE register of Color 16 Click driver.

◆ COLOR16_ENABLE_POFF

#define COLOR16_ENABLE_POFF   0x00

◆ COLOR16_ENABLE_PON

#define COLOR16_ENABLE_PON   0x01

◆ COLOR16_ENABLE_SMUXEN

#define COLOR16_ENABLE_SMUXEN   0x10

◆ COLOR16_ENABLE_SP_EN

#define COLOR16_ENABLE_SP_EN   0x02

◆ COLOR16_ENABLE_WEN

#define COLOR16_ENABLE_WEN   0x08

◆ COLOR16_INTEGRATION_TIME_DEFAULT

#define COLOR16_INTEGRATION_TIME_DEFAULT   90.0f

◆ COLOR16_INTEGRATION_TIME_MAX

#define COLOR16_INTEGRATION_TIME_MAX   ( ( float ) ( COLOR16_ATIME_MAX + 1 ) * ( COLOR16_ASTEP_MAX + 1 ) * COLOR16_SINGLE_STEP_MS )

◆ COLOR16_INTEGRATION_TIME_MIN

#define COLOR16_INTEGRATION_TIME_MIN   COLOR16_SINGLE_STEP_MS

◆ COLOR16_LED_DRIVE_CURR_DEFAULT

#define COLOR16_LED_DRIVE_CURR_DEFAULT   8

◆ COLOR16_LED_DRIVE_CURR_MAX

#define COLOR16_LED_DRIVE_CURR_MAX   258

◆ COLOR16_LED_DRIVE_CURR_MIN

#define COLOR16_LED_DRIVE_CURR_MIN   4

◆ COLOR16_LED_DRIVE_CURR_STEP

#define COLOR16_LED_DRIVE_CURR_STEP   2

◆ COLOR16_LED_OFF

#define COLOR16_LED_OFF   0x00

Color 16 LED register setting.

Specified setting for LED register of Color 16 Click driver.

◆ COLOR16_LED_ON

#define COLOR16_LED_ON   0x80

◆ COLOR16_SINGLE_STEP_MS

#define COLOR16_SINGLE_STEP_MS   0.00278f

Color 16 integration time setting.

Specified setting for integration time of Color 16 Click driver.

◆ COLOR16_STATUS_2_ASAT_ANA

#define COLOR16_STATUS_2_ASAT_ANA   0x08

◆ COLOR16_STATUS_2_ASAT_DIG

#define COLOR16_STATUS_2_ASAT_DIG   0x10

◆ COLOR16_STATUS_2_AVALID

#define COLOR16_STATUS_2_AVALID   0x40

Color 16 STATUS_2 register setting.

Specified setting for STATUS_2 register of Color 16 Click driver.

◆ COLOR16_STATUS_2_FDSAT_ANA

#define COLOR16_STATUS_2_FDSAT_ANA   0x02

◆ COLOR16_STATUS_2_FDSAT_DIG

#define COLOR16_STATUS_2_FDSAT_DIG   0x01

◆ COLOR16_STATUS_AINT

#define COLOR16_STATUS_AINT   0x08

◆ COLOR16_STATUS_ASAT

#define COLOR16_STATUS_ASAT   0x80

Color 16 STATUS register setting.

Specified setting for STATUS register of Color 16 Click driver.

◆ COLOR16_STATUS_FINT

#define COLOR16_STATUS_FINT   0x04

◆ COLOR16_STATUS_SINT

#define COLOR16_STATUS_SINT   0x01

◆ COLOR16_WAIT_STEP_MS

#define COLOR16_WAIT_STEP_MS   2.78f

◆ COLOR16_WAIT_TIME_DEFAULT

#define COLOR16_WAIT_TIME_DEFAULT   100.0f

◆ COLOR16_WAIT_TIME_MAX

#define COLOR16_WAIT_TIME_MAX   ( ( float ) ( COLOR16_WTIME_MAX + 1 ) * COLOR16_WAIT_STEP_MS )

◆ COLOR16_WAIT_TIME_MIN

#define COLOR16_WAIT_TIME_MIN   COLOR16_WAIT_STEP_MS

◆ COLOR16_WTIME_MAX

#define COLOR16_WTIME_MAX   255