color10 2.0.0.0

Topics

 MikroBUS
 
 Error Code
 

Macros

#define COLOR10_SLAVE_ADDR   0x10
 
#define COLOR10_CMD_REG_CFG   0x00
 
#define COLOR10_CMD_REG_C   0x04
 
#define COLOR10_CMD_REG_R   0x05
 
#define COLOR10_CMD_REG_G   0x06
 
#define COLOR10_CMD_REG_B   0x07
 
#define COLOR10_CMD_REG_IR   0x08
 
#define COLOR10_CMD_REG_ID   0x0C
 
#define COLOR10_DEVICE_ID   0x28
 
#define COLOR10_COLOR_ORANGE   0x11
 
#define COLOR10_COLOR_RED   0x22
 
#define COLOR10_COLOR_PINK   0x33
 
#define COLOR10_COLOR_PURPLE   0x44
 
#define COLOR10_COLOR_BLUE   0x55
 
#define COLOR10_COLOR_CYAN   0x66
 
#define COLOR10_COLOR_GREEN   0x77
 
#define COLOR10_COLOR_YELLOW   0x88
 
#define COLOR10_COLOR_OTHER   0x99
 
#define COLOR10_CFG_HIGH_DYNAMIC_RANGE_1_3   0x0040
 
#define COLOR10_CFG_HIGH_DYNAMIC_RANGE_1   0x0000
 
#define COLOR10_CFG_INTEGRATION_TIME_SETT_50_MS   0x0000
 
#define COLOR10_CFG_INTEGRATION_TIME_SETT_100_MS   0x0010
 
#define COLOR10_CFG_INTEGRATION_TIME_SETT_200_MS   0x0020
 
#define COLOR10_CFG_INTEGRATION_TIME_SETT_400_MS   0x0030
 
#define COLOR10_CFG_AUTO_MODE   0x0000
 
#define COLOR10_CFG_FORCE_MODE   0x0008
 
#define COLOR10_CFG_TRIGGER_NO   0x0000
 
#define COLOR10_CFG_TRIGGER_ONE_TIME   0x0004
 
#define COLOR10_CFG_POWER_ON   0x0000
 
#define COLOR10_CFG_SHUT_DOWN   0x8001
 
#define COLOR10_CFG_POWER_ON_G_C_IR   0x4000
 
#define COLOR10_CFG_GAIN_1_X1   0x0000
 
#define COLOR10_CFG_GAIN_1_X2   0x1000
 
#define COLOR10_CFG_GAIN_1_X4   0x2000
 
#define COLOR10_CFG_GAIN_2_X1_2   0x0C00
 
#define COLOR10_CFG_GAIN_2_X1   0x0000
 
#define COLOR10_CFG_GAIN_2_X2   0x0400
 
#define COLOR10_CFG_GAIN_2_X4   0x0800
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ COLOR10_CFG_AUTO_MODE

#define COLOR10_CFG_AUTO_MODE   0x0000

◆ COLOR10_CFG_FORCE_MODE

#define COLOR10_CFG_FORCE_MODE   0x0008

◆ COLOR10_CFG_GAIN_1_X1

#define COLOR10_CFG_GAIN_1_X1   0x0000

◆ COLOR10_CFG_GAIN_1_X2

#define COLOR10_CFG_GAIN_1_X2   0x1000

◆ COLOR10_CFG_GAIN_1_X4

#define COLOR10_CFG_GAIN_1_X4   0x2000

◆ COLOR10_CFG_GAIN_2_X1

#define COLOR10_CFG_GAIN_2_X1   0x0000

◆ COLOR10_CFG_GAIN_2_X1_2

#define COLOR10_CFG_GAIN_2_X1_2   0x0C00

◆ COLOR10_CFG_GAIN_2_X2

#define COLOR10_CFG_GAIN_2_X2   0x0400

◆ COLOR10_CFG_GAIN_2_X4

#define COLOR10_CFG_GAIN_2_X4   0x0800

◆ COLOR10_CFG_HIGH_DYNAMIC_RANGE_1

#define COLOR10_CFG_HIGH_DYNAMIC_RANGE_1   0x0000

◆ COLOR10_CFG_HIGH_DYNAMIC_RANGE_1_3

#define COLOR10_CFG_HIGH_DYNAMIC_RANGE_1_3   0x0040

◆ COLOR10_CFG_INTEGRATION_TIME_SETT_100_MS

#define COLOR10_CFG_INTEGRATION_TIME_SETT_100_MS   0x0010

◆ COLOR10_CFG_INTEGRATION_TIME_SETT_200_MS

#define COLOR10_CFG_INTEGRATION_TIME_SETT_200_MS   0x0020

◆ COLOR10_CFG_INTEGRATION_TIME_SETT_400_MS

#define COLOR10_CFG_INTEGRATION_TIME_SETT_400_MS   0x0030

◆ COLOR10_CFG_INTEGRATION_TIME_SETT_50_MS

#define COLOR10_CFG_INTEGRATION_TIME_SETT_50_MS   0x0000

◆ COLOR10_CFG_POWER_ON

#define COLOR10_CFG_POWER_ON   0x0000

◆ COLOR10_CFG_POWER_ON_G_C_IR

#define COLOR10_CFG_POWER_ON_G_C_IR   0x4000

◆ COLOR10_CFG_SHUT_DOWN

#define COLOR10_CFG_SHUT_DOWN   0x8001

◆ COLOR10_CFG_TRIGGER_NO

#define COLOR10_CFG_TRIGGER_NO   0x0000

◆ COLOR10_CFG_TRIGGER_ONE_TIME

#define COLOR10_CFG_TRIGGER_ONE_TIME   0x0004

◆ COLOR10_CMD_REG_B

#define COLOR10_CMD_REG_B   0x07

◆ COLOR10_CMD_REG_C

#define COLOR10_CMD_REG_C   0x04

◆ COLOR10_CMD_REG_CFG

#define COLOR10_CMD_REG_CFG   0x00

◆ COLOR10_CMD_REG_G

#define COLOR10_CMD_REG_G   0x06

◆ COLOR10_CMD_REG_ID

#define COLOR10_CMD_REG_ID   0x0C

◆ COLOR10_CMD_REG_IR

#define COLOR10_CMD_REG_IR   0x08

◆ COLOR10_CMD_REG_R

#define COLOR10_CMD_REG_R   0x05

◆ COLOR10_COLOR_BLUE

#define COLOR10_COLOR_BLUE   0x55

◆ COLOR10_COLOR_CYAN

#define COLOR10_COLOR_CYAN   0x66

◆ COLOR10_COLOR_GREEN

#define COLOR10_COLOR_GREEN   0x77

◆ COLOR10_COLOR_ORANGE

#define COLOR10_COLOR_ORANGE   0x11

◆ COLOR10_COLOR_OTHER

#define COLOR10_COLOR_OTHER   0x99

◆ COLOR10_COLOR_PINK

#define COLOR10_COLOR_PINK   0x33

◆ COLOR10_COLOR_PURPLE

#define COLOR10_COLOR_PURPLE   0x44

◆ COLOR10_COLOR_RED

#define COLOR10_COLOR_RED   0x22

◆ COLOR10_COLOR_YELLOW

#define COLOR10_COLOR_YELLOW   0x88

◆ COLOR10_DEVICE_ID

#define COLOR10_DEVICE_ID   0x28

◆ COLOR10_SLAVE_ADDR

#define COLOR10_SLAVE_ADDR   0x10