Macros | |
| #define | ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST(attr_list, switch_type, switch_actions) |
| Declare attribute list for ON/OFF Switch configuration cluster. More... | |
Detailed Description
On/Off Switch Configuration cluster has no cluster-specific command support. Cluster attributes can be queried with common commands.
Sample switch config cluster attributes data
zb_uint8_t attr_switch_type = ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_TOGGLE;zb_uint8_t attr_switch_actions = ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_DEFAULT_VALUE;ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST(switch_cfg_attr_list, &attr_switch_type, &attr_switch_actions); Macro Definition Documentation
◆ ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST
| #define ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST | ( | attr_list, | |
| switch_type, | |||
| switch_actions | |||
| ) |
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_ID, (switch_type)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_ID, (switch_actions)) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LISTDefinition: zb_zcl_on_off_switch_conf.h:81
Definition: zb_zcl_on_off_switch_conf.h:79
Declare attribute list for ON/OFF Switch configuration cluster.
- Parameters
-
attr_list - attribute list name switch_type - pointer to variable to store switch type attribute value switch_actions - pointer to variable to store switch action attribute value
Enumeration Type Documentation
◆ zb_zcl_on_off_switch_configuration_attr_e
On/off switch configuration cluster attribute identifiers.
- See also
- ZCL spec, subclause 3.9.2.2
◆ zb_zcl_on_off_switch_configuration_switch_actions_e
Permissible values for switch actions attribute.
- See also
- ZCL spec, subclause 3.9.2.2.3.1
◆ zb_zcl_on_off_switch_configuration_switch_type_e
Permissible values for switch type attribute.
- See also
- ZCL spec, subclause 3.9.2.2.2