Z-Wave Protocol Controller Reference
Switch Color Command Class

Switch Color Command Class handlers and control functions. More...

Collaboration diagram for Switch Color Command Class:

Functions

void zwave_command_class_switch_color_invoke_on_all_attributes (attribute_store_node_t state_node, attribute_store_type_t child_node_type, void(*function)(attribute_store_node_t))
 Runs a functions for all chidren with a certain type for all color component IDs in the Color Switch Command Class. More...
 
void zwave_command_class_switch_color_invoke_on_all_attributes_with_return_value (attribute_store_node_t state_node, attribute_store_type_t child_node_type, sl_status_t(*function)(attribute_store_node_t))
 Runs a functions for all chidren with a certain type for all color component IDs in the Color Switch Command Class. More...
 
sl_status_t zwave_command_class_switch_color_init ()
 This function initialize the Switch Color Command Class handler. More...
 

Detailed Description

Switch Color Command Class handlers and control functions.

This module implement functions for generating and parsing the Z-Wave frames for controlling the Switch Color Command Class.

The data model used for this command class is tailored to be mapped to the ZCL Level cluster.

The State attribute is a hook for the Set / Get rule registrations. The actual values being set and resolved are the duration and the value. If the duration and/or the value needs a resolution, the Command Class handler adjusts the state in order to trigger the resolver:

Switch Color data model

Function Documentation

◆ zwave_command_class_switch_color_init()

sl_status_t zwave_command_class_switch_color_init ( )

This function initialize the Switch Color Command Class handler.

Returns
SL_STATUS_OK on success, any other error code for an error.
Here is the caller graph for this function:

◆ zwave_command_class_switch_color_invoke_on_all_attributes()

void zwave_command_class_switch_color_invoke_on_all_attributes ( attribute_store_node_t  state_node,
attribute_store_type_t  child_node_type,
void(*)(attribute_store_node_t)  function 
)

Runs a functions for all chidren with a certain type for all color component IDs in the Color Switch Command Class.

Parameters
state_nodeAttribute Store node for the Color Switch State
child_node_typeType of children to run the function on
functionFunction to run on all children
Here is the caller graph for this function:

◆ zwave_command_class_switch_color_invoke_on_all_attributes_with_return_value()

void zwave_command_class_switch_color_invoke_on_all_attributes_with_return_value ( attribute_store_node_t  state_node,
attribute_store_type_t  child_node_type,
sl_status_t(*)(attribute_store_node_t)  function 
)

Runs a functions for all chidren with a certain type for all color component IDs in the Color Switch Command Class.

Parameters
state_nodeAttribute Store node for the Color Switch State
child_node_typeType of children to run the function on
functionFunction to run on all children