spectrometer2 2.0.0.0
Spectrometer 2 Registers Settings

Settings for registers of Spectrometer 2 Click driver. More...

Macros

#define SPECTROMETER2_INTR_STATUS   0x02
 Spectrometer 2 INTERRUPT_CTRL register settings.
 
#define SPECTROMETER2_CLR_INTR_SET   0x01
 
#define SPECTROMETER2_CLR_INTR_CLEAR   0x00
 
#define SPECTROMETER2_EXPOSURE_TIME_MS_MAX   1638.4
 Spectrometer 2 ALS_EXPOSURE register settings.
 
#define SPECTROMETER2_EXPOSURE_TIME_MS_DEFAULT   160.0
 
#define SPECTROMETER2_EXPOSURE_TIME_MS_MIN   1.6
 
#define SPECTROMETER2_EXPOSURE_TIME_MS_LSB   1.6
 
#define SPECTROMETER2_EXPOSURE_TIME_RES   0x03FF
 
#define SPECTROMETER2_IM_PERIOD_MS_MAX   5227.5
 Spectrometer 2 ALS_PERIOD register settings.
 
#define SPECTROMETER2_IM_PERIOD_MS_DEFAULT   200.0
 
#define SPECTROMETER2_IM_PERIOD_MS_MIN   0.0
 
#define SPECTROMETER2_IM_PERIOD_MS_LSB   20.5
 
#define SPECTROMETER2_IM_PERIOD_RES   0xFF
 
#define SPECTROMETER2_AGAIN_66p6X   0x01
 Spectrometer 2 ALS_GAIN_CHx register settings.
 
#define SPECTROMETER2_AGAIN_50X   0x02
 
#define SPECTROMETER2_AGAIN_33X   0x03
 
#define SPECTROMETER2_AGAIN_25X   0x04
 
#define SPECTROMETER2_AGAIN_16X   0x05
 
#define SPECTROMETER2_AGAIN_10X   0x06
 
#define SPECTROMETER2_AGAIN_7p1X   0x07
 
#define SPECTROMETER2_AGAIN_5X   0x08
 
#define SPECTROMETER2_AGAIN_3p33X   0x09
 
#define SPECTROMETER2_AGAIN_2p5X   0x0A
 
#define SPECTROMETER2_AGAIN_1p67X   0x0B
 
#define SPECTROMETER2_AGAIN_1p25X   0x0C
 
#define SPECTROMETER2_AGAIN_1X   0x0D
 
#define SPECTROMETER2_AGAIN_0p83X   0x0E
 
#define SPECTROMETER2_AGAIN_0p71X   0x0F
 
#define SPECTROMETER2_AGAIN_BIT_MASK   0x0F
 
#define SPECTROMETER2_CHANNEL6_DISABLE   0x00
 Spectrometer 2 CHANNEL6_ENABLE register settings.
 
#define SPECTROMETER2_CHANNEL6_ENABLE   0x01
 
#define SPECTROMETER2_NO_CHANNEL_ENABLED   0x00
 Spectrometer 2 ALS_CHANNEL_ENABLE register settings.
 
#define SPECTROMETER2_CHANNEL1_ENABLE   0x01
 
#define SPECTROMETER2_CHANNEL2_ENABLE   0x02
 
#define SPECTROMETER2_CHANNEL3_ENABLE   0x04
 
#define SPECTROMETER2_CHANNEL4_ENABLE   0x08
 
#define SPECTROMETER2_CHANNEL5_ENABLE   0x10
 
#define SPECTROMETER2_ALL_CHANNELS_ENABLE   0x1F
 
#define SPECTROMETER2_ALS_MODE_SINGLE   0x00
 Spectrometer 2 ALS_CTRL register settings.
 
#define SPECTROMETER2_ALS_MODE_CONTINUOUS   0x06
 
#define SPECTROMETER2_ALS_STOP   0x00
 
#define SPECTROMETER2_ALS_START   0x01
 
#define SPECTROMETER2_UNKNOWN_COLOR   0
 Spectrometer 2 color flags.
 
#define SPECTROMETER2_RED_COLOR   1
 
#define SPECTROMETER2_YELLOW_COLOR   2
 
#define SPECTROMETER2_GREEN_COLOR   3
 
#define SPECTROMETER2_CYAN_COLOR   4
 
#define SPECTROMETER2_BLUE_COLOR   5
 
#define SPECTROMETER2_MAGENTA_COLOR   6
 
#define SPECTROMETER2_WHITE_COLOR   7
 
#define SPECTROMETER2_BLACK_COLOR   8
 
#define SPECTROMETER2_WHITE_COLOR_LIGHTNESS   95
 Spectrometer 2 color from HSL thresholds.
 
#define SPECTROMETER2_BLACK_COLOR_LIGHTNESS   5
 
#define SPECTROMETER2_YELLOW_COLOR_HUE_ANGLE   30
 
#define SPECTROMETER2_GREEN_COLOR_HUE_ANGLE   90
 
#define SPECTROMETER2_CYAN_COLOR_HUE_ANGLE   150
 
#define SPECTROMETER2_BLUE_COLOR_HUE_ANGLE   210
 
#define SPECTROMETER2_MAGENTA_COLOR_HUE_ANGLE   270
 
#define SPECTROMETER2_RED_COLOR_HUE_ANGLE   330
 
#define SPECTROMETER2_HSL_HUE_RESOLUTION   360
 Spectrometer 2 RGB to HSL calculation values.
 
#define SPECTROMETER2_HSL_SATURATION_RESOLUTION   100
 
#define SPECTROMETER2_HSL_LIGHTNESS_RESOLUTION   100
 
#define SPECTROMETER2_DEVICE_ID   0x70
 Spectrometer 2 device ID value.
 
#define SPECTROMETER2_DEVICE_ADDRESS   0x20
 Spectrometer 2 device address setting.
 

Detailed Description

Settings for registers of Spectrometer 2 Click driver.

Macro Definition Documentation

◆ SPECTROMETER2_AGAIN_0p71X

#define SPECTROMETER2_AGAIN_0p71X   0x0F

◆ SPECTROMETER2_AGAIN_0p83X

#define SPECTROMETER2_AGAIN_0p83X   0x0E

◆ SPECTROMETER2_AGAIN_10X

#define SPECTROMETER2_AGAIN_10X   0x06

◆ SPECTROMETER2_AGAIN_16X

#define SPECTROMETER2_AGAIN_16X   0x05

◆ SPECTROMETER2_AGAIN_1p25X

#define SPECTROMETER2_AGAIN_1p25X   0x0C

◆ SPECTROMETER2_AGAIN_1p67X

#define SPECTROMETER2_AGAIN_1p67X   0x0B

◆ SPECTROMETER2_AGAIN_1X

#define SPECTROMETER2_AGAIN_1X   0x0D

◆ SPECTROMETER2_AGAIN_25X

#define SPECTROMETER2_AGAIN_25X   0x04

◆ SPECTROMETER2_AGAIN_2p5X

#define SPECTROMETER2_AGAIN_2p5X   0x0A

◆ SPECTROMETER2_AGAIN_33X

#define SPECTROMETER2_AGAIN_33X   0x03

◆ SPECTROMETER2_AGAIN_3p33X

#define SPECTROMETER2_AGAIN_3p33X   0x09

◆ SPECTROMETER2_AGAIN_50X

#define SPECTROMETER2_AGAIN_50X   0x02

◆ SPECTROMETER2_AGAIN_5X

#define SPECTROMETER2_AGAIN_5X   0x08

◆ SPECTROMETER2_AGAIN_66p6X

#define SPECTROMETER2_AGAIN_66p6X   0x01

Spectrometer 2 ALS_GAIN_CHx register settings.

Specified ALS_GAIN_CHx register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_AGAIN_7p1X

#define SPECTROMETER2_AGAIN_7p1X   0x07

◆ SPECTROMETER2_AGAIN_BIT_MASK

#define SPECTROMETER2_AGAIN_BIT_MASK   0x0F

◆ SPECTROMETER2_ALL_CHANNELS_ENABLE

#define SPECTROMETER2_ALL_CHANNELS_ENABLE   0x1F

◆ SPECTROMETER2_ALS_MODE_CONTINUOUS

#define SPECTROMETER2_ALS_MODE_CONTINUOUS   0x06

◆ SPECTROMETER2_ALS_MODE_SINGLE

#define SPECTROMETER2_ALS_MODE_SINGLE   0x00

Spectrometer 2 ALS_CTRL register settings.

Specified ALS_CTRL register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_ALS_START

#define SPECTROMETER2_ALS_START   0x01

◆ SPECTROMETER2_ALS_STOP

#define SPECTROMETER2_ALS_STOP   0x00

◆ SPECTROMETER2_BLACK_COLOR

#define SPECTROMETER2_BLACK_COLOR   8

◆ SPECTROMETER2_BLACK_COLOR_LIGHTNESS

#define SPECTROMETER2_BLACK_COLOR_LIGHTNESS   5

◆ SPECTROMETER2_BLUE_COLOR

#define SPECTROMETER2_BLUE_COLOR   5

◆ SPECTROMETER2_BLUE_COLOR_HUE_ANGLE

#define SPECTROMETER2_BLUE_COLOR_HUE_ANGLE   210

◆ SPECTROMETER2_CHANNEL1_ENABLE

#define SPECTROMETER2_CHANNEL1_ENABLE   0x01

◆ SPECTROMETER2_CHANNEL2_ENABLE

#define SPECTROMETER2_CHANNEL2_ENABLE   0x02

◆ SPECTROMETER2_CHANNEL3_ENABLE

#define SPECTROMETER2_CHANNEL3_ENABLE   0x04

◆ SPECTROMETER2_CHANNEL4_ENABLE

#define SPECTROMETER2_CHANNEL4_ENABLE   0x08

◆ SPECTROMETER2_CHANNEL5_ENABLE

#define SPECTROMETER2_CHANNEL5_ENABLE   0x10

◆ SPECTROMETER2_CHANNEL6_DISABLE

#define SPECTROMETER2_CHANNEL6_DISABLE   0x00

Spectrometer 2 CHANNEL6_ENABLE register settings.

Specified CHANNEL6_ENABLE register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_CHANNEL6_ENABLE

#define SPECTROMETER2_CHANNEL6_ENABLE   0x01

◆ SPECTROMETER2_CLR_INTR_CLEAR

#define SPECTROMETER2_CLR_INTR_CLEAR   0x00

◆ SPECTROMETER2_CLR_INTR_SET

#define SPECTROMETER2_CLR_INTR_SET   0x01

◆ SPECTROMETER2_CYAN_COLOR

#define SPECTROMETER2_CYAN_COLOR   4

◆ SPECTROMETER2_CYAN_COLOR_HUE_ANGLE

#define SPECTROMETER2_CYAN_COLOR_HUE_ANGLE   150

◆ SPECTROMETER2_DEVICE_ADDRESS

#define SPECTROMETER2_DEVICE_ADDRESS   0x20

Spectrometer 2 device address setting.

Specified setting for device slave address selection of Spectrometer 2 Click driver.

◆ SPECTROMETER2_DEVICE_ID

#define SPECTROMETER2_DEVICE_ID   0x70

Spectrometer 2 device ID value.

Specified device ID value of Spectrometer 2 Click driver.

◆ SPECTROMETER2_EXPOSURE_TIME_MS_DEFAULT

#define SPECTROMETER2_EXPOSURE_TIME_MS_DEFAULT   160.0

◆ SPECTROMETER2_EXPOSURE_TIME_MS_LSB

#define SPECTROMETER2_EXPOSURE_TIME_MS_LSB   1.6

◆ SPECTROMETER2_EXPOSURE_TIME_MS_MAX

#define SPECTROMETER2_EXPOSURE_TIME_MS_MAX   1638.4

Spectrometer 2 ALS_EXPOSURE register settings.

Specified ALS_EXPOSURE register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_EXPOSURE_TIME_MS_MIN

#define SPECTROMETER2_EXPOSURE_TIME_MS_MIN   1.6

◆ SPECTROMETER2_EXPOSURE_TIME_RES

#define SPECTROMETER2_EXPOSURE_TIME_RES   0x03FF

◆ SPECTROMETER2_GREEN_COLOR

#define SPECTROMETER2_GREEN_COLOR   3

◆ SPECTROMETER2_GREEN_COLOR_HUE_ANGLE

#define SPECTROMETER2_GREEN_COLOR_HUE_ANGLE   90

◆ SPECTROMETER2_HSL_HUE_RESOLUTION

#define SPECTROMETER2_HSL_HUE_RESOLUTION   360

Spectrometer 2 RGB to HSL calculation values.

Specified RGB to HSL calculation values of Spectrometer 2 Click driver.

◆ SPECTROMETER2_HSL_LIGHTNESS_RESOLUTION

#define SPECTROMETER2_HSL_LIGHTNESS_RESOLUTION   100

◆ SPECTROMETER2_HSL_SATURATION_RESOLUTION

#define SPECTROMETER2_HSL_SATURATION_RESOLUTION   100

◆ SPECTROMETER2_IM_PERIOD_MS_DEFAULT

#define SPECTROMETER2_IM_PERIOD_MS_DEFAULT   200.0

◆ SPECTROMETER2_IM_PERIOD_MS_LSB

#define SPECTROMETER2_IM_PERIOD_MS_LSB   20.5

◆ SPECTROMETER2_IM_PERIOD_MS_MAX

#define SPECTROMETER2_IM_PERIOD_MS_MAX   5227.5

Spectrometer 2 ALS_PERIOD register settings.

Specified ALS_PERIOD register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_IM_PERIOD_MS_MIN

#define SPECTROMETER2_IM_PERIOD_MS_MIN   0.0

◆ SPECTROMETER2_IM_PERIOD_RES

#define SPECTROMETER2_IM_PERIOD_RES   0xFF

◆ SPECTROMETER2_INTR_STATUS

#define SPECTROMETER2_INTR_STATUS   0x02

Spectrometer 2 INTERRUPT_CTRL register settings.

Specified INTERRUPT_CTRL register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_MAGENTA_COLOR

#define SPECTROMETER2_MAGENTA_COLOR   6

◆ SPECTROMETER2_MAGENTA_COLOR_HUE_ANGLE

#define SPECTROMETER2_MAGENTA_COLOR_HUE_ANGLE   270

◆ SPECTROMETER2_NO_CHANNEL_ENABLED

#define SPECTROMETER2_NO_CHANNEL_ENABLED   0x00

Spectrometer 2 ALS_CHANNEL_ENABLE register settings.

Specified ALS_CHANNEL_ENABLE register settings of Spectrometer 2 Click driver.

◆ SPECTROMETER2_RED_COLOR

#define SPECTROMETER2_RED_COLOR   1

◆ SPECTROMETER2_RED_COLOR_HUE_ANGLE

#define SPECTROMETER2_RED_COLOR_HUE_ANGLE   330

◆ SPECTROMETER2_UNKNOWN_COLOR

#define SPECTROMETER2_UNKNOWN_COLOR   0

Spectrometer 2 color flags.

Specified color flags of Spectrometer 2 Click driver.

◆ SPECTROMETER2_WHITE_COLOR

#define SPECTROMETER2_WHITE_COLOR   7

◆ SPECTROMETER2_WHITE_COLOR_LIGHTNESS

#define SPECTROMETER2_WHITE_COLOR_LIGHTNESS   95

Spectrometer 2 color from HSL thresholds.

Specified color from HSL thresholds of Spectrometer 2 Click driver.

◆ SPECTROMETER2_YELLOW_COLOR

#define SPECTROMETER2_YELLOW_COLOR   2

◆ SPECTROMETER2_YELLOW_COLOR_HUE_ANGLE

#define SPECTROMETER2_YELLOW_COLOR_HUE_ANGLE   30