|
Z-Wave Protocol Controller Reference
|
Switch Color Command Class handlers and control functions. More...
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... | |
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:
| sl_status_t zwave_command_class_switch_color_init | ( | ) |
This function initialize the Switch Color Command Class handler.
| 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.
| state_node | Attribute Store node for the Color Switch State |
| child_node_type | Type of children to run the function on |
| function | Function to run on all children |
| 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.
| state_node | Attribute Store node for the Color Switch State |
| child_node_type | Type of children to run the function on |
| function | Function to run on all children |