Data Structures | |
struct | zb_zcl_on_off_off_with_effect_req_s |
Structured representsation of Off with effect command payload. More... | |
struct | zb_zcl_on_off_on_with_timed_off_req_s |
Structured representsation of On with timed off command payload. More... | |
struct | zb_zcl_on_off_set_effect_value_param_s |
Declare run Set Effect command for User Application. More... | |
struct | zb_zll_on_off_effect_user_app_schedule_e |
Macros | |
#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_ZB_ZCL_ON_OFF_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 ZLL OnOff with Effect command. More... | |
#define | ZB_ZCL_ON_OFF_GET_ON_WITH_TIMED_OFF_REQ(data_ptr, buffer, status) |
Parses ZLL On with timed off command. More... | |
Typedefs | |
typedef struct zb_zcl_on_off_off_with_effect_req_s | zb_zcl_on_off_off_with_effect_req_t |
Structured representsation of Off with effect command payload. | |
typedef struct zb_zcl_on_off_on_with_timed_off_req_s | zb_zcl_on_off_on_with_timed_off_req_t |
Structured representsation of On with timed off command payload. | |
Enumerations | |
enum | zb_zcl_on_off_cmd_zll_e { ZB_ZCL_ON_OFF_OFF_WITH_EFFECT_ID = 0x40, ZB_ZCL_ON_OFF_ON_WITH_RECALL_GLOBAL_SCENE_ID = 0x41, ZB_ZCL_ON_OFF_ON_WITH_TIMED_OFF_ID = 0x42 } |
On/Off cluster extended 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 } |
Attributes added to On/Off cluster. | |
enum | zb_zcl_on_off_attr_zll_e { ZB_ZCL_ATTR_ON_OFF_GLOBAL_SCENE_CONTROL_ZLL_ID = 0x4000, ZB_ZCL_ATTR_ON_OFF_ON_TIME_ZLL_ID = 0x4001, ZB_ZCL_ATTR_ON_OFF_OFF_WAIT_TIME_ZLL_ID = 0x4002 } |
On/Off cluster extended attributes identifiers. More... | |
ZLL On/Off cluster additions internals. | |
Internal structures for attribute representation in cluster additions. | |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_GLOBAL_SCENE_CONTROL_ZLL_ID(data_ptr) |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_ON_TIME_ZLL_ID(data_ptr) |
#define | ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_OFF_WAIT_TIME_ZLL_ID(data_ptr) |
#define | ZB_ZCL_DECLARE_ON_OFF_ATTRIB_LIST_ZLL(attr_list, on_off, global_scene_ctrl, on_time, off_wait_time) |
Declare attribute list for On/Off cluster with ZLL additions. Each attribute type corresponds to attribute description in ZLL specification (Zigbee Light Link Profile Specification Version 1.0, chapter 6.6 On/off cluster). More... | |
Inform User App about ZLL On/Off cluster command and change attributes. | |
Internal structures and define-procedure for inform User App about ZLL On/Off cluster command and change attributes. | |
typedef struct zb_zcl_on_off_set_effect_value_param_s | zb_zcl_on_off_set_effect_value_param_t |
Declare run Set Effect command for User Application. | |
typedef struct zb_zll_on_off_effect_user_app_schedule_e | zb_zll_on_off_effect_user_app_schedule_t |
#define | ZB_ZLL_ON_OFF_EFFECT_SCHEDULE_USER_APP(buffer, pcmd_info, effectId, effectVar) |
ZLL additions to On/Off cluster.
Extended On/Off cluster for Light Link (see spec 6.6.1).
Other commands can be sent in the same way using appropriate macros.
For more information tp_cst_02, tp_cst_03 tests
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_GLOBAL_SCENE_CONTROL_ZLL_ID | ( | data_ptr | ) |
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_OFF_WAIT_TIME_ZLL_ID | ( | data_ptr | ) |
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_ON_OFF_ON_TIME_ZLL_ID | ( | data_ptr | ) |
#define ZB_ZCL_DECLARE_ON_OFF_ATTRIB_LIST_ZLL | ( | attr_list, | |
on_off, | |||
global_scene_ctrl, | |||
on_time, | |||
off_wait_time | |||
) |
Declare attribute list for On/Off cluster with ZLL additions. Each attribute type corresponds to attribute description in ZLL specification (Zigbee Light Link Profile Specification Version 1.0, chapter 6.6 On/off cluster).
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_GET_OFF_WITH_EFFECT_REQ | ( | data_ptr, | |
buffer, | |||
status | |||
) |
Parses ZLL OnOff 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 ZLL 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_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_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_ZB_ZCL_ON_OFF_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_ZLL_ON_OFF_EFFECT_SCHEDULE_USER_APP | ( | buffer, | |
pcmd_info, | |||
effectId, | |||
effectVar | |||
) |
Struct for invoke User App & continue after
On/Off cluster extended attributes identifiers.
On/Off cluster extended command identifiers.
Effect variant field for delayed enum