
Data Structures | |
| struct | zb_zcl_on_off_off_with_effect_req_s |
| Structured representation of Off with effect command payload. More... | |
| struct | zb_zcl_on_off_on_with_timed_off_req_s |
| Structured representation of On with timed off command payload. More... | |
On/Off cluster commands | |
| enum | zb_zcl_on_off_cmd_e { ZB_ZCL_CMD_ON_OFF_OFF_ID = 0x00, ZB_ZCL_CMD_ON_OFF_ON_ID = 0x01, ZB_ZCL_CMD_ON_OFF_TOGGLE_ID = 0x02, ZB_ZCL_CMD_ON_OFF_OFF_WITH_EFFECT_ID = 0x40, ZB_ZCL_CMD_ON_OFF_ON_WITH_RECALL_GLOBAL_SCENE_ID = 0x41, ZB_ZCL_CMD_ON_OFF_ON_WITH_TIMED_OFF_ID = 0x42 } |
| On/Off cluster command identifiers. More... | |
| enum | zb_zcl_on_off_effect_e { ZB_ZCL_ON_OFF_EFFECT_ID_DELAYED_ALL_OFF = 0x00, ZB_ZCL_ON_OFF_EFFECT_ID_DYING_LIGHT = 0x01 } |
| enum | zb_zcl_on_off_effect_variant_delayed_e { ZB_ZCL_ON_OFF_EFFECT_VARIANT_FADE = 0x00, ZB_ZCL_ON_OFF_EFFECT_VARIANT_NO_FADE = 0x01, ZB_ZCL_ON_OFF_EFFECT_VARIANT_50PART_FADE = 0x02 } |
| enum | zb_zcl_on_off_effect_variant_dying_e { ZB_ZCL_ON_OFF_EFFECT_VARIANT_20PART_FADE = 0x00 } |
| typedef struct zb_zcl_on_off_off_with_effect_req_s | zb_zcl_on_off_off_with_effect_req_t |
| Structured representation of Off with effect command payload. More... | |
| typedef struct zb_zcl_on_off_on_with_timed_off_req_s | zb_zcl_on_off_on_with_timed_off_req_t |
| Structured representation of On with timed off command payload. More... | |
| #define | ZB_ZCL_ON_OFF_SEND_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb) |
| General macro for sending On/Off cluster command. More... | |
| #define | ZB_ZCL_ON_OFF_SEND_OFF_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, dis_default_resp, cb) |
| #define | ZB_ZCL_ON_OFF_SEND_ON_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, dis_default_resp, cb) |
| #define | ZB_ZCL_ON_OFF_SEND_TOGGLE_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, dis_default_resp, cb) |
| #define | ZB_ZCL_ON_OFF_SEND_OFF_WITH_EFFECT_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, effect_id, effect_var, cb) |
| #define | ZB_ZCL_ON_OFF_SEND_ON_WITH_RECALL_GLOBAL_SCENE_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, cb) |
| #define | ZB_ZCL_ON_OFF_SEND_ON_WITH_TIMED_OFF_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, on_off, on_time, off_wait_time, cb) |
| #define | ZB_ZCL_ON_OFF_ACCEPT_ONLY_WHEN_ON 1 |
| #define | ZB_ZCL_ON_OFF_GET_OFF_WITH_EFFECT_REQ(data_ptr, buffer, status) |
| Parses Off with Effect command. More... | |
| #define | ZB_ZCL_ON_OFF_GET_ON_WITH_TIMED_OFF_REQ(data_ptr, buffer, status) |
| Parses On with timed off command. More... | |
All commands in the cluster have only request form, and carry no payload.
Other two commands can be sent in the same way using appropriate macros.
| #define ZB_ZCL_DECLARE_ON_OFF_ATTRIB_LIST | ( | attr_list, | |
| on_off | |||
| ) |
Declare attribute list for On/Off cluster.
| attr_list | - attribute list name |
| on_off | - pointer to variable to store On/Off attribute value |
| #define ZB_ZCL_DECLARE_ON_OFF_ATTRIB_LIST_EXT | ( | attr_list, | |
| on_off, | |||
| global_scene_ctrl, | |||
| on_time, | |||
| off_wait_time | |||
| ) |
Declare attribute list for On/Off cluster (extended attribute set).
| attr_list | [IN] - attribute list name being declared by this macro. |
| on_off | [IN] - pointer to a boolean variable storing on/off attribute value. |
| global_scene_ctrl | [IN] - pointer to a boolean variable storing global scene control attribute value. |
| on_time | [IN] - pointer to a unsigned 16-bit integer variable storing on time attribute value. |
| off_wait_time | [IN] - pointer to a unsigned 16-bit integer variable storing off wait time attribute value. |
| #define ZB_ZCL_ON_OFF_ACCEPT_ONLY_WHEN_ON 1 |
Accept only when on
| #define ZB_ZCL_ON_OFF_CLUSTER_REVISION_DEFAULT ((zb_uint16_t)0x0002u) |
Default value for OnOff cluster revision global attribute.
| #define ZB_ZCL_ON_OFF_GET_OFF_WITH_EFFECT_REQ | ( | data_ptr, | |
| buffer, | |||
| status | |||
| ) |
Parses Off with Effect command.
| data_ptr | - pointer to a variable of type zb_zcl_on_off_off_with_effect_req_s. |
| buffer | containing the packet (by pointer). |
| status | - variable to put parse status to (see zb_zcl_parse_status_t). |
| #define ZB_ZCL_ON_OFF_GET_ON_WITH_TIMED_OFF_REQ | ( | data_ptr, | |
| buffer, | |||
| status | |||
| ) |
Parses On with timed off command.
| data_ptr | - pointer to a variable of type zb_zcl_on_off_on_with_timed_off_req_s. |
| buffer | containing the packet (by pointer). |
| status | - variable to put parse status to (see zb_zcl_parse_status_t). |
| #define ZB_ZCL_ON_OFF_GLOBAL_SCENE_CONTROL_DEFAULT_VALUE ((zb_bool_t)0x01) |
Default value for GlobalSceneControl attribute.
| #define ZB_ZCL_ON_OFF_OFF_WAIT_TIME_DEFAULT_VALUE ((zb_uint16_t)0x0000) |
Default value for OffWaitTime attribute.
| #define ZB_ZCL_ON_OFF_ON_OFF_DEFAULT_VALUE (ZB_ZCL_ON_OFF_IS_OFF) |
Default value for OnOff attribute.
| #define ZB_ZCL_ON_OFF_ON_TIME_DEFAULT_VALUE ((zb_uint16_t)0x0000) |
Default value for OnTime attribute.
| #define ZB_ZCL_ON_OFF_SEND_OFF_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| dis_default_resp, | |||
| cb | |||
| ) |
Specific macro for sending Off command
| #define ZB_ZCL_ON_OFF_SEND_OFF_WITH_EFFECT_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prof_id, | |||
| dis_default_resp, | |||
| effect_id, | |||
| effect_var, | |||
| cb | |||
| ) |
Specific macro for sending Off with effect command
| #define ZB_ZCL_ON_OFF_SEND_ON_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| dis_default_resp, | |||
| cb | |||
| ) |
Specific macro for sending On command
| #define ZB_ZCL_ON_OFF_SEND_ON_WITH_RECALL_GLOBAL_SCENE_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prof_id, | |||
| dis_default_resp, | |||
| cb | |||
| ) |
Specific macro for sending On with recall global scene command
| #define ZB_ZCL_ON_OFF_SEND_ON_WITH_TIMED_OFF_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prof_id, | |||
| dis_default_resp, | |||
| on_off, | |||
| on_time, | |||
| off_wait_time, | |||
| cb | |||
| ) |
Specific macro for sending On with timed off command
| #define ZB_ZCL_ON_OFF_SEND_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prof_id, | |||
| dis_default_resp, | |||
| command_id, | |||
| cb | |||
| ) |
General macro for sending On/Off cluster command.
| buffer | to put data to |
| addr | - address of the device to send command to |
| dst_addr_mode | - addressing mode |
| dst_ep | destination endpoint |
| ep | - current endpoint |
| prof_id | - profile identifier |
| dis_default_resp | - "Disable default response" flag |
| command_id | - command identifier |
| cb | - callback to call to report send status |
| #define ZB_ZCL_ON_OFF_SEND_TOGGLE_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| dis_default_resp, | |||
| cb | |||
| ) |
Specific macro for sending Toggle command
Structured representation of Off with effect command payload.
Structured representation of On with timed off command payload.
| enum zb_zcl_on_off_attr_e |
On/Off cluster attribute identifiers.
| enum zb_zcl_on_off_cmd_e |
On/Off cluster command identifiers.
Effect variant field for delayed enum