ColorSwitch#
Modules#
Enumerations#
enum
ECOLORCOMPONENT_WARM_WHITE
ECOLORCOMPONENT_COLD_WHITE
ECOLORCOMPONENT_RED
ECOLORCOMPONENT_GREEN
ECOLORCOMPONENT_BLUE
ECOLORCOMPONENT_AMBER
ECOLORCOMPONENT_CYAN
ECOLORCOMPONENT_PURPLE
ECOLORCOMPONENT_COLOR_UNDEFINED
}
Defined Color Components ID.
Typedefs#
typedef enum EColorComponents_
Defined Color Components ID.
typedef struct colorComponent_
Structure that holds Color Switch CC related data.
Functions#
void
Can be used as single cb function for all colors.
void
cc_color_switch_cb(s_colorComponent *colorComponent)
uint8_t
uint8_t
bool
cc_color_switch_write(uint8_t color_component_id, s_colorComponent *color_component)
bool
cc_color_switch_read(uint8_t color_component_id, s_colorComponent *color_component)
Enumeration Documentation#
EColorComponents_#
EColorComponents_
Defined Color Components ID.
| Enumerator | |
|---|---|
| ECOLORCOMPONENT_WARM_WHITE | ECOLORCOMPONENT_WARM_WHITE. |
| ECOLORCOMPONENT_COLD_WHITE | ECOLORCOMPONENT_COLD_WHITE. |
| ECOLORCOMPONENT_RED | ECOLORCOMPONENT_RED. |
| ECOLORCOMPONENT_GREEN | ECOLORCOMPONENT_GREEN. |
| ECOLORCOMPONENT_BLUE | ECOLORCOMPONENT_BLUE. |
| ECOLORCOMPONENT_AMBER | ECOLORCOMPONENT_AMBER. |
| ECOLORCOMPONENT_CYAN | ECOLORCOMPONENT_CYAN (For 6ch color mixing) |
| ECOLORCOMPONENT_PURPLE | ECOLORCOMPONENT_PURPLE (For 6ch color mixing) |
| ECOLORCOMPONENT_COLOR_UNDEFINED | |
Typedef Documentation#
s_colorComponent#
typedef struct colorComponent_ s_colorComponent
Structure that holds Color Switch CC related data.
Function Documentation#
cc_color_switch_refresh_cb#
void cc_color_switch_refresh_cb (void )
Can be used as single cb function for all colors.
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
Defined in the app. Called when change takes place in driver and app needs to update LED status
cc_color_switch_cb#
void cc_color_switch_cb (s_colorComponent * colorComponent)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| s_colorComponent * | N/A | colorComponent |
cc_color_switch_get_colorComponents#
s_colorComponent * cc_color_switch_get_colorComponents (void )
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
cc_color_switch_get_length_colorComponents#
uint8_t cc_color_switch_get_length_colorComponents (void )
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
cc_color_switch_get_default_duration#
uint8_t cc_color_switch_get_default_duration (void )
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
cc_color_switch_write#
bool cc_color_switch_write (uint8_t color_component_id, s_colorComponent * color_component)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint8_t | N/A | color_component_id | |
| s_colorComponent * | N/A | color_component |
cc_color_switch_read#
bool cc_color_switch_read (uint8_t color_component_id, s_colorComponent * color_component)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint8_t | N/A | color_component_id | |
| s_colorComponent * | N/A | color_component |