Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
ColorSwitch
+ Collaboration diagram for ColorSwitch:

Data Structures

struct  colorComponent_
 

Typedefs

typedef enum EColorComponents_ EColorComponents
 
typedef struct colorComponent_ s_colorComponent
 

Enumerations

enum  EColorComponents_ {
  ECOLORCOMPONENT_WARM_WHITE ,
  ECOLORCOMPONENT_COLD_WHITE ,
  ECOLORCOMPONENT_RED ,
  ECOLORCOMPONENT_GREEN ,
  ECOLORCOMPONENT_BLUE ,
  ECOLORCOMPONENT_AMBER ,
  ECOLORCOMPONENT_CYAN ,
  ECOLORCOMPONENT_PURPLE ,
  ECOLORCOMPONENT_COLOR_UNDEFINED
}
 

Functions

void cc_color_switch_refresh_cb (void)
 Can be used as single cb function for all colors. Defined in the app. Called when change takes place in driver and app needs to update LED status.
 
void cc_color_switch_cb (s_colorComponent *colorComponent)
 
s_colorComponentcc_color_switch_get_colorComponents (void)
 
uint8_t cc_color_switch_get_length_colorComponents (void)
 
uint8_t cc_color_switch_get_default_duration (void)
 
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)
 

Detailed Description

Typedef Documentation

◆ EColorComponents

Defined Color Components ID

◆ s_colorComponent

Structure that holds Color Switch CC related data.

Enumeration Type Documentation

◆ 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 

Function Documentation

◆ cc_color_switch_cb()

void cc_color_switch_cb ( s_colorComponent * colorComponent)

◆ cc_color_switch_get_colorComponents()

s_colorComponent * cc_color_switch_get_colorComponents ( void )

◆ cc_color_switch_get_default_duration()

uint8_t cc_color_switch_get_default_duration ( void )

◆ cc_color_switch_get_length_colorComponents()

uint8_t cc_color_switch_get_length_colorComponents ( void )

◆ cc_color_switch_read()

bool cc_color_switch_read ( uint8_t color_component_id,
s_colorComponent * color_component )

◆ cc_color_switch_refresh_cb()

void cc_color_switch_refresh_cb ( void )

Can be used as single cb function for all colors. Defined in the app. Called when change takes place in driver and app needs to update LED status.

◆ cc_color_switch_write()

bool cc_color_switch_write ( uint8_t color_component_id,
s_colorComponent * color_component )