|
Z-Wave Protocol Controller Reference
|
Functions for controlling COMMAND_CLASS_SWITCH_COLOR. More...
Macros | |
| #define | COMMAND_CLASS_SWITCH_COLOR_VERSION 3 |
| Version of COMMAND_CLASS_SWITCH_COLOR which this handlers is genrated for. More... | |
Functions | |
| void | zwave_COMMAND_CLASS_SWITCH_COLOR_add_SWITCH_COLOR_COLOR_COMPONENT_ID (attribute_store_node_t parent, uint8_t index) |
| Add SWITCH_COLOR_COLOR_COMPONENT_ID and its mandatory children to a parent. More... | |
| sl_status_t | zwave_COMMAND_CLASS_SWITCH_COLOR_init () |
| Initialisation of COMMAND_CLASS_SWITCH_COLOR. More... | |
| sl_status_t | zwave_SWITCH_COLOR_SUPPORTED_REPORT_handle_report_command_override (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length) |
| Override function for SWITCH_COLOR_SUPPORTED_REPORT. More... | |
| sl_status_t | zwave_SWITCH_COLOR_REPORT_handle_report_command_override (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length) |
| Override function for SWITCH_COLOR_REPORT. More... | |
| sl_status_t | zwave_SWITCH_COLOR_SUPPORTED_GET (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Auto-generated function for SWITCH_COLOR_SUPPORTED_GET. More... | |
| sl_status_t | zwave_SWITCH_COLOR_SUPPORTED_GET_override (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Override function for SWITCH_COLOR_SUPPORTED_GET. More... | |
| sl_status_t | zwave_SWITCH_COLOR_GET (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Auto-generated function for SWITCH_COLOR_GET. More... | |
| sl_status_t | zwave_SWITCH_COLOR_GET_override (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Override function for SWITCH_COLOR_GET. More... | |
| sl_status_t | zwave_SWITCH_COLOR_SET (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Auto-generated function for SWITCH_COLOR_SET. More... | |
| sl_status_t | zwave_SWITCH_COLOR_SET_override (attribute_store_node_t _node, uint8_t *frame, uint16_t *frame_len) |
| Override function for SWITCH_COLOR_SET. More... | |
Functions for controlling COMMAND_CLASS_SWITCH_COLOR.
This module implement functions for generating and parsing the Z-Wave frames for controlling COMMAND_CLASS_SWITCH_COLOR. The module builds frames by reading data from the attribute according to the tree data model shown below. When data is received is will also update the attribute store with data again according the the model described below.
In addition the module will react on the on_version update events from the attribute store to and insert required attributes into to attribute store. A set of helper functions for inserting attribute for more complex data is also provided. The complex data are generally data dependign on some sort of index.
| #define COMMAND_CLASS_SWITCH_COLOR_VERSION 3 |
Version of COMMAND_CLASS_SWITCH_COLOR which this handlers is genrated for.
| void zwave_COMMAND_CLASS_SWITCH_COLOR_add_SWITCH_COLOR_COLOR_COMPONENT_ID | ( | attribute_store_node_t | parent, |
| uint8_t | index | ||
| ) |
Add SWITCH_COLOR_COLOR_COMPONENT_ID and its mandatory children to a parent.
This function will add an attribute of type SWITCH_COLOR_COLOR_COMPONENT_ID under the given parent attribute. The value of the new attribute set to index, and the manetory children are also created under the new attribute, considering the commad class version.
| parent | attribute store node to add children to. |
| index | Index of the new attribute subtree to created |
| sl_status_t zwave_COMMAND_CLASS_SWITCH_COLOR_init | ( | ) |
Initialisation of COMMAND_CLASS_SWITCH_COLOR.
This function registers the command handler with the attribute resolver and the command handler framework.
| sl_status_t zwave_SWITCH_COLOR_GET | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Auto-generated function for SWITCH_COLOR_GET.
This function provide automatic handling of the SWITCH_COLOR_GET command.
| _node | Attribute to genrate the set frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_GET_override | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Override function for SWITCH_COLOR_GET.
This if this function is implemented as a weak symbol. This provided such an external component can modify the behaviour of the auto generated code.
| _node | Attribute to genrate the get frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_REPORT_handle_report_command_override | ( | const zwave_controller_connection_info_t * | connection_info, |
| const uint8_t * | frame, | ||
| uint16_t | frame_length | ||
| ) |
Override function for SWITCH_COLOR_REPORT.
This if this function is implemented as a weak symbol. This provided such an external component can modifiy the behaviour of the generated code.
| sl_status_t zwave_SWITCH_COLOR_SET | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Auto-generated function for SWITCH_COLOR_SET.
This function provide automatic handling of the SWITCH_COLOR_SET command.
| _node | Attribute to genrate the set frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_SET_override | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Override function for SWITCH_COLOR_SET.
This if this function is implemented as a weak symbol. This provided such an external component can modify the behaviour of the auto generated code.
| _node | Attribute to genrate the set frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_SUPPORTED_GET | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Auto-generated function for SWITCH_COLOR_SUPPORTED_GET.
This function provide automatic handling of the SWITCH_COLOR_SUPPORTED_GET command.
| _node | Attribute to genrate the set frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_SUPPORTED_GET_override | ( | attribute_store_node_t | _node, |
| uint8_t * | frame, | ||
| uint16_t * | frame_len | ||
| ) |
Override function for SWITCH_COLOR_SUPPORTED_GET.
This if this function is implemented as a weak symbol. This provided such an external component can modify the behaviour of the auto generated code.
| _node | Attribute to genrate the get frame from. |
| frame | Pointer to frame data which should be written into |
| frame_len | Length of the generated frame. I this is 0 on exit the auto generated code is executed otherwise it is not. |
| sl_status_t zwave_SWITCH_COLOR_SUPPORTED_REPORT_handle_report_command_override | ( | const zwave_controller_connection_info_t * | connection_info, |
| const uint8_t * | frame, | ||
| uint16_t | frame_length | ||
| ) |
Override function for SWITCH_COLOR_SUPPORTED_REPORT.
This if this function is implemented as a weak symbol. This provided such an external component can modifiy the behaviour of the generated code.