color15 2.0.0.0
Color 15 Registers Settings

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

Macros

#define COLOR15_SYSM_CTRL_SWRST   0x80
 Color 15 SYSM_CTRL register settings.
 
#define COLOR15_SYSM_CTRL_EN_WAIT   0x40
 
#define COLOR15_SYSM_CTRL_EN_IR   0x02
 
#define COLOR15_SYSM_CTRL_EN_CLS   0x01
 
#define COLOR15_INT_CTRL_CLS_SYNC   0x10
 Color 15 INT_CTRL register settings.
 
#define COLOR15_INT_CTRL_EN_CINT   0x01
 
#define COLOR15_INT_FLAG_POR   0x80
 Color 15 INT_FLAG register settings.
 
#define COLOR15_INT_FLAG_DATA_FLAG   0x40
 
#define COLOR15_INT_FLAG_CLS   0x01
 
#define COLOR15_INT_FLAG_CLEAR_ALL   0x00
 
#define COLOR15_WAIT_TIME_MS_MAX   2560
 Color 15 WAIT_TIME register settings.
 
#define COLOR15_WAIT_TIME_MS_DEFAULT   100
 
#define COLOR15_WAIT_TIME_MS_MIN   10
 
#define COLOR15_WAIT_TIME_MS_LSB   10
 
#define COLOR15_WAIT_TIME_RES   0xFF
 
#define COLOR15_CLSCONV_1   0x00
 Color 15 CLS_TIME register settings.
 
#define COLOR15_CLSCONV_2   0x01
 
#define COLOR15_CLSCONV_3   0x02
 
#define COLOR15_CLSCONV_4   0x03
 
#define COLOR15_CLSCONV_5   0x04
 
#define COLOR15_CLSCONV_6   0x05
 
#define COLOR15_CLSCONV_7   0x06
 
#define COLOR15_CLSCONV_8   0x07
 
#define COLOR15_CLSCONV_9   0x08
 
#define COLOR15_CLSCONV_10   0x09
 
#define COLOR15_CLSCONV_11   0x0A
 
#define COLOR15_CLSCONV_12   0x0B
 
#define COLOR15_CLSCONV_13   0x0C
 
#define COLOR15_CLSCONV_14   0x0D
 
#define COLOR15_CLSCONV_15   0x0E
 
#define COLOR15_INT_TIME_1   0x00
 
#define COLOR15_INT_TIME_4   0x01
 
#define COLOR15_INT_TIME_16   0x02
 
#define COLOR15_INT_TIME_64   0x03
 
#define COLOR15_MAX_COUNT_LSB   1024
 
#define COLOR15_MAX_COUNT_RES   0xFFFF
 
#define COLOR15_CLS_GAIN_DIOD_SELT_X1   0x00
 Color 15 CLS_GAIN register settings.
 
#define COLOR15_CLS_GAIN_DIOD_SELT_X2   0x80
 
#define COLOR15_CLS_GAIN_PGA_CLS_X1   0x01
 
#define COLOR15_CLS_GAIN_PGA_CLS_X4   0x02
 
#define COLOR15_CLS_GAIN_PGA_CLS_X8   0x04
 
#define COLOR15_CLS_GAIN_PGA_CLS_X32   0x08
 
#define COLOR15_CLS_GAIN_PGA_CLS_X96   0x10
 
#define COLOR15_PRS_CLS_INDEPENDENT   0x00
 Color 15 PERSISTANCE register settings.
 
#define COLOR15_PRS_CLS_1_CLS   0x01
 
#define COLOR15_PRS_CLS_2_CLS   0x02
 
#define COLOR15_PRS_CLS_3_CLS   0x03
 
#define COLOR15_PRS_CLS_4_CLS   0x04
 
#define COLOR15_PRS_CLS_5_CLS   0x05
 
#define COLOR15_PRS_CLS_6_CLS   0x06
 
#define COLOR15_PRS_CLS_7_CLS   0x07
 
#define COLOR15_PRS_CLS_8_CLS   0x08
 
#define COLOR15_PRS_CLS_9_CLS   0x09
 
#define COLOR15_PRS_CLS_10_CLS   0x0A
 
#define COLOR15_PRS_CLS_11_CLS   0x0B
 
#define COLOR15_PRS_CLS_12_CLS   0x0C
 
#define COLOR15_PRS_CLS_13_CLS   0x0D
 
#define COLOR15_PRS_CLS_14_CLS   0x0E
 
#define COLOR15_PRS_CLS_15_CLS   0x0F
 
#define COLOR15_INT_SRC_RCH_DATA   0x01
 Color 15 INT_SOURCE register settings.
 
#define COLOR15_INT_SRC_GCH_DATA   0x02
 
#define COLOR15_INT_SRC_BCH_DATA   0x04
 
#define COLOR15_INT_SRC_WCH_DATA   0x08
 
#define COLOR15_INT_SRC_IRCH_DATA   0x10
 
#define COLOR15_UNKNOWN_COLOR   0
 Color 15 color flags.
 
#define COLOR15_RED_COLOR   1
 
#define COLOR15_YELLOW_COLOR   2
 
#define COLOR15_GREEN_COLOR   3
 
#define COLOR15_CYAN_COLOR   4
 
#define COLOR15_BLUE_COLOR   5
 
#define COLOR15_MAGENTA_COLOR   6
 
#define COLOR15_WHITE_COLOR   7
 
#define COLOR15_BLACK_COLOR   8
 
#define COLOR15_WHITE_COLOR_LIGHTNESS   97
 Color 15 color from HSL thresholds.
 
#define COLOR15_BLACK_COLOR_LIGHTNESS   3
 
#define COLOR15_YELLOW_COLOR_HUE_ANGLE   30
 
#define COLOR15_GREEN_COLOR_HUE_ANGLE   90
 
#define COLOR15_CYAN_COLOR_HUE_ANGLE   150
 
#define COLOR15_BLUE_COLOR_HUE_ANGLE   210
 
#define COLOR15_MAGENTA_COLOR_HUE_ANGLE   270
 
#define COLOR15_RED_COLOR_HUE_ANGLE   330
 
#define COLOR15_HSL_HUE_RESOLUTION   360
 Color 15 RGB to HSL calculation values.
 
#define COLOR15_HSL_SATURATION_RESOLUTION   100
 
#define COLOR15_HSL_LIGHTNESS_RESOLUTION   100
 
#define COLOR15_PRODUCT_ID_LSB   0x12
 Color 15 product ID values.
 
#define COLOR15_PRODUCT_ID_MSB   0x07
 
#define COLOR15_DEVICE_ADDRESS   0x38
 Color 15 device address setting.
 

Detailed Description

Settings for registers of Color 15 Click driver.

Macro Definition Documentation

◆ COLOR15_BLACK_COLOR

#define COLOR15_BLACK_COLOR   8

◆ COLOR15_BLACK_COLOR_LIGHTNESS

#define COLOR15_BLACK_COLOR_LIGHTNESS   3

◆ COLOR15_BLUE_COLOR

#define COLOR15_BLUE_COLOR   5

◆ COLOR15_BLUE_COLOR_HUE_ANGLE

#define COLOR15_BLUE_COLOR_HUE_ANGLE   210

◆ COLOR15_CLS_GAIN_DIOD_SELT_X1

#define COLOR15_CLS_GAIN_DIOD_SELT_X1   0x00

Color 15 CLS_GAIN register settings.

Specified CLS_GAIN register settings of Color 15 Click driver.

◆ COLOR15_CLS_GAIN_DIOD_SELT_X2

#define COLOR15_CLS_GAIN_DIOD_SELT_X2   0x80

◆ COLOR15_CLS_GAIN_PGA_CLS_X1

#define COLOR15_CLS_GAIN_PGA_CLS_X1   0x01

◆ COLOR15_CLS_GAIN_PGA_CLS_X32

#define COLOR15_CLS_GAIN_PGA_CLS_X32   0x08

◆ COLOR15_CLS_GAIN_PGA_CLS_X4

#define COLOR15_CLS_GAIN_PGA_CLS_X4   0x02

◆ COLOR15_CLS_GAIN_PGA_CLS_X8

#define COLOR15_CLS_GAIN_PGA_CLS_X8   0x04

◆ COLOR15_CLS_GAIN_PGA_CLS_X96

#define COLOR15_CLS_GAIN_PGA_CLS_X96   0x10

◆ COLOR15_CLSCONV_1

#define COLOR15_CLSCONV_1   0x00

Color 15 CLS_TIME register settings.

Specified CLS_TIME register settings of Color 15 Click driver.

◆ COLOR15_CLSCONV_10

#define COLOR15_CLSCONV_10   0x09

◆ COLOR15_CLSCONV_11

#define COLOR15_CLSCONV_11   0x0A

◆ COLOR15_CLSCONV_12

#define COLOR15_CLSCONV_12   0x0B

◆ COLOR15_CLSCONV_13

#define COLOR15_CLSCONV_13   0x0C

◆ COLOR15_CLSCONV_14

#define COLOR15_CLSCONV_14   0x0D

◆ COLOR15_CLSCONV_15

#define COLOR15_CLSCONV_15   0x0E

◆ COLOR15_CLSCONV_2

#define COLOR15_CLSCONV_2   0x01

◆ COLOR15_CLSCONV_3

#define COLOR15_CLSCONV_3   0x02

◆ COLOR15_CLSCONV_4

#define COLOR15_CLSCONV_4   0x03

◆ COLOR15_CLSCONV_5

#define COLOR15_CLSCONV_5   0x04

◆ COLOR15_CLSCONV_6

#define COLOR15_CLSCONV_6   0x05

◆ COLOR15_CLSCONV_7

#define COLOR15_CLSCONV_7   0x06

◆ COLOR15_CLSCONV_8

#define COLOR15_CLSCONV_8   0x07

◆ COLOR15_CLSCONV_9

#define COLOR15_CLSCONV_9   0x08

◆ COLOR15_CYAN_COLOR

#define COLOR15_CYAN_COLOR   4

◆ COLOR15_CYAN_COLOR_HUE_ANGLE

#define COLOR15_CYAN_COLOR_HUE_ANGLE   150

◆ COLOR15_DEVICE_ADDRESS

#define COLOR15_DEVICE_ADDRESS   0x38

Color 15 device address setting.

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

◆ COLOR15_GREEN_COLOR

#define COLOR15_GREEN_COLOR   3

◆ COLOR15_GREEN_COLOR_HUE_ANGLE

#define COLOR15_GREEN_COLOR_HUE_ANGLE   90

◆ COLOR15_HSL_HUE_RESOLUTION

#define COLOR15_HSL_HUE_RESOLUTION   360

Color 15 RGB to HSL calculation values.

Specified RGB to HSL calculation values of Color 15 Click driver.

◆ COLOR15_HSL_LIGHTNESS_RESOLUTION

#define COLOR15_HSL_LIGHTNESS_RESOLUTION   100

◆ COLOR15_HSL_SATURATION_RESOLUTION

#define COLOR15_HSL_SATURATION_RESOLUTION   100

◆ COLOR15_INT_CTRL_CLS_SYNC

#define COLOR15_INT_CTRL_CLS_SYNC   0x10

Color 15 INT_CTRL register settings.

Specified INT_CTRL register settings of Color 15 Click driver.

◆ COLOR15_INT_CTRL_EN_CINT

#define COLOR15_INT_CTRL_EN_CINT   0x01

◆ COLOR15_INT_FLAG_CLEAR_ALL

#define COLOR15_INT_FLAG_CLEAR_ALL   0x00

◆ COLOR15_INT_FLAG_CLS

#define COLOR15_INT_FLAG_CLS   0x01

◆ COLOR15_INT_FLAG_DATA_FLAG

#define COLOR15_INT_FLAG_DATA_FLAG   0x40

◆ COLOR15_INT_FLAG_POR

#define COLOR15_INT_FLAG_POR   0x80

Color 15 INT_FLAG register settings.

Specified INT_FLAG register settings of Color 15 Click driver.

◆ COLOR15_INT_SRC_BCH_DATA

#define COLOR15_INT_SRC_BCH_DATA   0x04

◆ COLOR15_INT_SRC_GCH_DATA

#define COLOR15_INT_SRC_GCH_DATA   0x02

◆ COLOR15_INT_SRC_IRCH_DATA

#define COLOR15_INT_SRC_IRCH_DATA   0x10

◆ COLOR15_INT_SRC_RCH_DATA

#define COLOR15_INT_SRC_RCH_DATA   0x01

Color 15 INT_SOURCE register settings.

Specified INT_SOURCE register settings of Color 15 Click driver.

◆ COLOR15_INT_SRC_WCH_DATA

#define COLOR15_INT_SRC_WCH_DATA   0x08

◆ COLOR15_INT_TIME_1

#define COLOR15_INT_TIME_1   0x00

◆ COLOR15_INT_TIME_16

#define COLOR15_INT_TIME_16   0x02

◆ COLOR15_INT_TIME_4

#define COLOR15_INT_TIME_4   0x01

◆ COLOR15_INT_TIME_64

#define COLOR15_INT_TIME_64   0x03

◆ COLOR15_MAGENTA_COLOR

#define COLOR15_MAGENTA_COLOR   6

◆ COLOR15_MAGENTA_COLOR_HUE_ANGLE

#define COLOR15_MAGENTA_COLOR_HUE_ANGLE   270

◆ COLOR15_MAX_COUNT_LSB

#define COLOR15_MAX_COUNT_LSB   1024

◆ COLOR15_MAX_COUNT_RES

#define COLOR15_MAX_COUNT_RES   0xFFFF

◆ COLOR15_PRODUCT_ID_LSB

#define COLOR15_PRODUCT_ID_LSB   0x12

Color 15 product ID values.

Specified product ID values of Color 15 Click driver.

◆ COLOR15_PRODUCT_ID_MSB

#define COLOR15_PRODUCT_ID_MSB   0x07

◆ COLOR15_PRS_CLS_10_CLS

#define COLOR15_PRS_CLS_10_CLS   0x0A

◆ COLOR15_PRS_CLS_11_CLS

#define COLOR15_PRS_CLS_11_CLS   0x0B

◆ COLOR15_PRS_CLS_12_CLS

#define COLOR15_PRS_CLS_12_CLS   0x0C

◆ COLOR15_PRS_CLS_13_CLS

#define COLOR15_PRS_CLS_13_CLS   0x0D

◆ COLOR15_PRS_CLS_14_CLS

#define COLOR15_PRS_CLS_14_CLS   0x0E

◆ COLOR15_PRS_CLS_15_CLS

#define COLOR15_PRS_CLS_15_CLS   0x0F

◆ COLOR15_PRS_CLS_1_CLS

#define COLOR15_PRS_CLS_1_CLS   0x01

◆ COLOR15_PRS_CLS_2_CLS

#define COLOR15_PRS_CLS_2_CLS   0x02

◆ COLOR15_PRS_CLS_3_CLS

#define COLOR15_PRS_CLS_3_CLS   0x03

◆ COLOR15_PRS_CLS_4_CLS

#define COLOR15_PRS_CLS_4_CLS   0x04

◆ COLOR15_PRS_CLS_5_CLS

#define COLOR15_PRS_CLS_5_CLS   0x05

◆ COLOR15_PRS_CLS_6_CLS

#define COLOR15_PRS_CLS_6_CLS   0x06

◆ COLOR15_PRS_CLS_7_CLS

#define COLOR15_PRS_CLS_7_CLS   0x07

◆ COLOR15_PRS_CLS_8_CLS

#define COLOR15_PRS_CLS_8_CLS   0x08

◆ COLOR15_PRS_CLS_9_CLS

#define COLOR15_PRS_CLS_9_CLS   0x09

◆ COLOR15_PRS_CLS_INDEPENDENT

#define COLOR15_PRS_CLS_INDEPENDENT   0x00

Color 15 PERSISTANCE register settings.

Specified PERSISTANCE register settings of Color 15 Click driver.

◆ COLOR15_RED_COLOR

#define COLOR15_RED_COLOR   1

◆ COLOR15_RED_COLOR_HUE_ANGLE

#define COLOR15_RED_COLOR_HUE_ANGLE   330

◆ COLOR15_SYSM_CTRL_EN_CLS

#define COLOR15_SYSM_CTRL_EN_CLS   0x01

◆ COLOR15_SYSM_CTRL_EN_IR

#define COLOR15_SYSM_CTRL_EN_IR   0x02

◆ COLOR15_SYSM_CTRL_EN_WAIT

#define COLOR15_SYSM_CTRL_EN_WAIT   0x40

◆ COLOR15_SYSM_CTRL_SWRST

#define COLOR15_SYSM_CTRL_SWRST   0x80

Color 15 SYSM_CTRL register settings.

Specified SYSM_CTRL register settings of Color 15 Click driver.

◆ COLOR15_UNKNOWN_COLOR

#define COLOR15_UNKNOWN_COLOR   0

Color 15 color flags.

Specified color flags of Color 15 Click driver.

◆ COLOR15_WAIT_TIME_MS_DEFAULT

#define COLOR15_WAIT_TIME_MS_DEFAULT   100

◆ COLOR15_WAIT_TIME_MS_LSB

#define COLOR15_WAIT_TIME_MS_LSB   10

◆ COLOR15_WAIT_TIME_MS_MAX

#define COLOR15_WAIT_TIME_MS_MAX   2560

Color 15 WAIT_TIME register settings.

Specified WAIT_TIME register settings of Color 15 Click driver.

◆ COLOR15_WAIT_TIME_MS_MIN

#define COLOR15_WAIT_TIME_MS_MIN   10

◆ COLOR15_WAIT_TIME_RES

#define COLOR15_WAIT_TIME_RES   0xFF

◆ COLOR15_WHITE_COLOR

#define COLOR15_WHITE_COLOR   7

◆ COLOR15_WHITE_COLOR_LIGHTNESS

#define COLOR15_WHITE_COLOR_LIGHTNESS   97

Color 15 color from HSL thresholds.

Specified color from HSL thresholds of Color 15 Click driver.

◆ COLOR15_YELLOW_COLOR

#define COLOR15_YELLOW_COLOR   2

◆ COLOR15_YELLOW_COLOR_HUE_ANGLE

#define COLOR15_YELLOW_COLOR_HUE_ANGLE   30