Developing with ZBOSS for Zigbee
ZCL level control add-ons

Data Structures

struct  zb_zcl_level_control_attrs_t
 Level Control cluster attributes according to ZCL Spec 3.10.2.3. More...
 

Macros

#define ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD_NO_APS_ACK(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time, cmd_id)
 Macro equivalent to ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD, but command is sent without APS ACK. More...
 
#define ZB_ZCL_LEVEL_CONTROL_SEND_STEP_REQ_NO_APS_ACK(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time)
 Macro equivalent to ZB_ZCL_LEVEL_CONTROL_SEND_STEP_REQ, but command is sent without APS ACK. More...
 
#define ZB_ZCL_DECLARE_LEVEL_CONTROL_CLIENT_ATTRIB_LIST(attr_list)
 Declare attribute list for Level control cluster (client). More...
 

Detailed Description

Macro Definition Documentation

◆ ZB_ZCL_DECLARE_LEVEL_CONTROL_CLIENT_ATTRIB_LIST

#define ZB_ZCL_DECLARE_LEVEL_CONTROL_CLIENT_ATTRIB_LIST (   attr_list)
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_LEVEL_CONTROL) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST

Declare attribute list for Level control cluster (client).

Parameters
attr_list- attribute list name.

◆ ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD_NO_APS_ACK

#define ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD_NO_APS_ACK (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time,
  cmd_id 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, def_resp) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), cmd_id); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_mode)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_size)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \
ZB_ZCL_SEND_COMMAND_SHORT_WITHOUT_ACK((buffer), ptr, \
addr, dst_addr_mode, \
dst_ep, ep, prfl_id, \
}

Macro equivalent to ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD, but command is sent without APS ACK.

◆ ZB_ZCL_LEVEL_CONTROL_SEND_STEP_REQ_NO_APS_ACK

#define ZB_ZCL_LEVEL_CONTROL_SEND_STEP_REQ_NO_APS_ACK (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time 
)
Value:
{ \
ZB_ZCL_LEVEL_CONTROL_SEND_STEP_CMD_NO_APS_ACK(buffer, \
addr, \
dst_addr_mode, \
dst_ep, \
ep, \
prfl_id, \
def_resp, \
cb, \
step_mode, \
step_size, \
transition_time, \
}

Macro equivalent to ZB_ZCL_LEVEL_CONTROL_SEND_STEP_REQ, but command is sent without APS ACK.

ZB_ZCL_GET_SEQ_NUM
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1450
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION
#define ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attrs_desc_name, cluster_name)
Start declaration of attributes list with cluster revision.
Definition: zb_zcl_common.h:791
ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL
#define ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL
Definition: zb_zcl_common.h:214
ZB_ZCL_CMD_LEVEL_CONTROL_STEP
@ ZB_ZCL_CMD_LEVEL_CONTROL_STEP
Definition: zb_zcl_level_control.h:323