nRF5 SDK for Thread and Zigbee v3.2.0
Data Structures
EN50523 Appliance events and alerts cluster

Data Structures

struct  zb_zcl_en50523_appl_ev_and_alerts_alert_struct_s
 Alert structure. More...
 
struct  zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_s
 Structure representsation of Get Alerts Response command. More...
 
struct  zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_s
 Structure representsation of Alerts Notification command. More...
 
struct  zb_zcl_en50523_appl_ev_and_alerts_event_notif_s
 Structure representsation of Event Notification command. More...
 

EN50523 Appliance events and alerts cluster commands

enum  zb_zcl_en50523_appl_ev_and_alerts_recv_cmd_e { ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_ID = 0x00 }
 EN50523 Appliance events and alerts cluster command received identifiers. More...
 
enum  zb_zcl_en50523_appl_ev_and_alerts_send_cmd_e { ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_ID = 0x00, ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIFICATION_ID = 0x01, ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_EVENT_NOTIFICATION_ID = 0x02 }
 EN50523 Appliance events and alerts cluster commands generated identifiers. More...
 
enum  zb_zcl_en50523_appl_ev_and_alerts_alerts_type_e { ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_TYPE_UNSTRUCTURED = 0x00 }
 Type of alert.
 
enum  zb_zcl_en50523_appl_ev_and_alerts_alert_category_e { ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_CATEGORY_WARNING = 0x01, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_CATEGORY_DANGER = 0x02, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_CATEGORY_FAILURE = 0x03 }
 Alert category.
 
enum  zb_zcl_en50523_appl_ev_and_alerts_alert_presence_e { ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_RECOVERY = 0x00, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_PRESENCE = 0x01 }
 Alert presence recovery.
 
enum  zb_zcl_en50523_appl_ev_and_alerts_event_identification_e {
  ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_EVENT_ID_END_OF_CYCLE = 0x01, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_EVENT_ID_TEMP_REACHED = 0x04, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_EVENT_ID_END_OF_COOKING = 0x05, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_EVENT_ID_SWITCHING_OFF = 0x06,
  ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_EVENT_ID_WRONG_DATA = 0xf7
}
 Event Identificatoin.
 
typedef struct
zb_zcl_en50523_appl_ev_and_alerts_alert_struct_s 
zb_zcl_en50523_appl_ev_and_alerts_alert_struct_t
 Alert structure.
 
typedef struct
zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_s 
zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_t
 Structure representsation of Get Alerts Response command.
 
typedef struct
zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_s 
zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_t
 Structure representsation of Alerts Notification command.
 
typedef struct
zb_zcl_en50523_appl_ev_and_alerts_event_notif_s 
zb_zcl_en50523_appl_ev_and_alerts_event_notif_t
 Structure representsation of Event Notification command. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_REQ(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb)
 Get Alerts command, ZCL spec 15.4.2.2.1. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_MAX_ALERTS_NUM   15
 Maximum number of Alerts.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(_alerts_count)   ((_alerts_count) & 0x0F)
 Get Number of Alerts.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_SET_NUM(_alerts_count, num)   ((_alerts_count) |= (num & 0x0F))
 Set Number of Alerts.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_TYPE(_alerts_count)   (((_alerts_count) & 0xF0) >> 4)
 Get Type of alert.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_SET_TYPE(_alerts_count, type)   ((_alerts_count) |= ((type & 0x0F) << 4))
 Set Type of alert.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_GET_ID(_alert_struct)   ((_alert_struct).alert[2] & 0xFF)
 Get Alert ID.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_SET_ID(_alert_struct, id)   ((_alert_struct).alert[2] = (id & 0xFF))
 Set Alert ID.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_GET_CATEGORY(_alert_struct)   ((_alert_struct).alert[1] & 0x0F)
 Get Alert Category.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_SET_CATEGORY(_alert_struct, cat)   ((_alert_struct).alert[1] |= (cat & 0x0F))
 Set Alert Category.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_GET_PRESENCE(_alert_struct)   (((_alert_struct).alert[1] & 0xF0) >> 4)
 Get Alert Presence recovery.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_SET_PRESENCE(_alert_struct, pres)   ((_alert_struct).alert[1] |= (pres & 0x0F) << 4)
 Set Alert Presence recovery.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_GET_MANUF_SPEC(_alert_struct)   ((_alert_struct).alert[0] & 0xFF)
 Get Alert Manufacturer specific bits.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERT_STRUCT_SET_MANUF_SPEC(_alert_struct, val)   ((_alert_struct).alert[0] = (val & 0xFF))
 Set Alert Manufacturer specific bits.
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE(ptr)
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_START(buffer, seq, alerts_count, ptr)
 Start Get Alerts Response command, ZCL spec 15.4.2.3.1. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_ADD(ptr, alert_struct)
 Add Alert Structure to Get Alerts Response command, ZCL spec 15.4.2.3.1. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_END(ptr, buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id)
 End form Get Alerts Response command and send it, ZCL spec 15.4.2.3.1. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_GET_ALERTS_RESP(data_ptr, buffer, status)
 Macro for getting Get Alerts Response command, ZCL spec 15.4.2.3.1. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE(ptr)
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_START(buffer, def_resp, alerts_count, ptr)
 Start Alerts Notification command, ZCL spec 15.4.2.3.2. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_ADD(ptr, alert_struct)
 Add Alert Structure to Alerts Notification command, ZCL spec 15.4.2.3.2. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_END(ptr, buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, cb)
 End form Alerts Notification command and send it, ZCL spec 15.4.2.3.2. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_NOTIF(data_ptr, buffer, status)
 Macro for getting Alerts Notification command, ZCL spec 15.4.2.3.2. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_EVENT_NOTIF(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb,event_identification)
 Event Notification command, ZCL spec 15.4.2.3.3. More...
 
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_EVENT_NOTIF(data_ptr, buffer, status)
 Macro for getting Event Notification command, see ZCL spec 15.4.2.3.3. More...
 

Detailed Description

Macro Definition Documentation

#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE (   ptr)
Value:
(sizeof(((zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_t *)(ptr))->alerts_count) + \
Structure representsation of Alerts Notification command.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:271
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(_alerts_count)
Get Number of Alerts.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:143
Alert structure.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:179

Alerts Notification command payload size

#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_NOTIF (   data_ptr,
  buffer,
  status 
)
Value:
{ \
zb_uint8_t *data = ZB_BUF_BEGIN(buffer); \
if (ZB_BUF_LEN((buffer)) != \
{ \
} \
else \
{ \
ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->alerts_count, data); \
ZB_ZCL_PACKET_GET_DATA_N((data_ptr)->alert_struct, data, \
} \
}
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE(ptr)
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:281
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(_alerts_count)
Get Number of Alerts.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:143
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_ZCL_PACKET_GET_DATA8(dst_ptr, src_ptr)
Get 8-bit value from packet.
Definition: zb_zcl_common.h:1444
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Alert structure.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:179
Definition: zb_zcl_common.h:318
#define ZB_ZCL_PACKET_GET_DATA_N(dst_ptr, src_ptr, n)
Get N-byte value from packet.
Definition: zb_zcl_common.h:1617
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116

Macro for getting Alerts Notification command, ZCL spec 15.4.2.3.2.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_t
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE (   ptr)
Value:
(sizeof(((zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_t *)(ptr))->alerts_count) + \
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(_alerts_count)
Get Number of Alerts.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:143
Alert structure.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:179
Structure representsation of Get Alerts Response command.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:186

Get Alerts Response command payload size

#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_EVENT_NOTIF (   data_ptr,
  buffer,
  status 
)
Value:
{ \
zb_uint8_t *data = ZB_BUF_BEGIN(buffer); \
if (ZB_BUF_LEN((buffer)) != \
{ \
} \
else \
{ \
ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->event_header, data); \
ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->event_identification, data); \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
Structure representsation of Event Notification command.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:375
#define ZB_ZCL_PACKET_GET_DATA8(dst_ptr, src_ptr)
Get 8-bit value from packet.
Definition: zb_zcl_common.h:1444
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116

Macro for getting Event Notification command, see ZCL spec 15.4.2.3.3.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_en50523_appl_ev_and_alerts_event_notif_e
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_GET_ALERTS_RESP (   data_ptr,
  buffer,
  status 
)
Value:
{ \
zb_uint8_t *data = ZB_BUF_BEGIN(buffer); \
if (ZB_BUF_LEN((buffer)) != \
{ \
} \
else \
{ \
ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->alerts_count, data); \
ZB_ZCL_PACKET_GET_DATA_N((data_ptr)->alert_struct, data, \
} \
}
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(_alerts_count)
Get Number of Alerts.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:143
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_ZCL_PACKET_GET_DATA8(dst_ptr, src_ptr)
Get 8-bit value from packet.
Definition: zb_zcl_common.h:1444
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Alert structure.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:179
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE(ptr)
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:196
Definition: zb_zcl_common.h:318
#define ZB_ZCL_PACKET_GET_DATA_N(dst_ptr, src_ptr, n)
Get N-byte value from packet.
Definition: zb_zcl_common.h:1617
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116

Macro for getting Get Alerts Response command, ZCL spec 15.4.2.3.1.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_t
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_ADD (   ptr,
  alert_struct 
)
Value:
{ \
ZB_ZCL_PACKET_PUT_DATA24(ptr, (alert_struct)); \
}
#define ZB_ZCL_PACKET_PUT_DATA24(ptr, val)
Put 24-bit value to packet.
Definition: zb_zcl_common.h:1427

Add Alert Structure to Alerts Notification command, ZCL spec 15.4.2.3.2.

Parameters
ptr- [in/out] (zb_uint8_t*) current position
alert_struct- pointer to Alert structure to put into packet
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_END (   ptr,
  buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  cb 
)
Value:
{ \
ZB_ZCL_FINISH_PACKET((buffer), ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \
}
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_common.h:285

End form Alerts Notification command and send it, ZCL spec 15.4.2.3.2.

Parameters
ptr- (zb_uint8_t*) current position
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
cb- callback for getting command send status
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_START (   buffer,
  def_resp,
  alerts_count,
  ptr 
)
Value:
{ \
(ptr) = zb_zcl_start_command_header(buffer, \
ZB_ZCL_CONSTRUCT_FRAME_CONTROL( \
(def_resp)), \
0, /* No manuf_code */ \
NULL); \
ZB_ZCL_PACKET_PUT_DATA8((ptr), (alerts_count)); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8-bit value to packet.
Definition: zb_zcl_common.h:1353
Definition: zb_zcl_common.h:874
Standard profile command.
Definition: zb_zcl_common.h:844
Definition: zb_zcl_common.h:832
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:71
void * zb_zcl_start_command_header(zb_buf_t *zbbuf, zb_uint8_t frame_ctl, zb_uint16_t manuf_code, zb_uint8_t cmd_id, zb_uint8_t *tsn)
Construct ZCL command header in the buffer.

Start Alerts Notification command, ZCL spec 15.4.2.3.2.

Parameters
buffer- to put packet to
def_resp- enable/disable default response
alerts_count- Alerts count field
ptr- [out] (zb_uint8_t*) current position for ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_ADD and ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_END
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_EVENT_NOTIF (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  event_identification 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_FRAME_CONTROL( \
(def_resp)), \
0, /* No manuf_code */ \
NULL); \
ZB_ZCL1_PACKET_PUT_DATA8(ptr, (event_identification)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8-bit value to packet.
Definition: zb_zcl_common.h:1353
Definition: zb_zcl_common.h:874
Standard profile command.
Definition: zb_zcl_common.h:844
Definition: zb_zcl_common.h:832
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_common.h:285
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:73
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
void * zb_zcl_start_command_header(zb_buf_t *zbbuf, zb_uint8_t frame_ctl, zb_uint16_t manuf_code, zb_uint8_t cmd_id, zb_uint8_t *tsn)
Construct ZCL command header in the buffer.

Event Notification command, ZCL spec 15.4.2.3.3.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
event_identification- Event ID
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb 
)
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(), \
ZB_ZCL_FINISH_PACKET((buffer), ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:59
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_common.h:285
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116

Get Alerts command, ZCL spec 15.4.2.2.1.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_ADD (   ptr,
  alert_struct 
)
Value:
{ \
ZB_ZCL_PACKET_PUT_DATA24(ptr, (alert_struct)); \
}
#define ZB_ZCL_PACKET_PUT_DATA24(ptr, val)
Put 24-bit value to packet.
Definition: zb_zcl_common.h:1427

Add Alert Structure to Get Alerts Response command, ZCL spec 15.4.2.3.1.

Parameters
ptr- [in/out] (zb_uint8_t*) current position
alert_struct- pointer to the Alert structure to put into packet
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_END (   ptr,
  buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id 
)
Value:
{ \
ZB_ZCL_FINISH_PACKET((buffer), ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \
}
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_common.h:285

End form Get Alerts Response command and send it, ZCL spec 15.4.2.3.1.

Parameters
ptr- (zb_uint8_t*) current position
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_START (   buffer,
  seq,
  alerts_count,
  ptr 
)
Value:
{ \
(ptr) = ZB_ZCL_START_PACKET(buffer); \
ZB_ZCL_PACKET_PUT_DATA8((ptr), (alerts_count)); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8-bit value to packet.
Definition: zb_zcl_common.h:1353
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1332
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1207
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:69
#define ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_RES_FRAME_CONTROL(buf_ptr)
Construct ZCL header frame control value for cluster-specific command response.
Definition: zb_zcl_common.h:1194

Start Get Alerts Response command, ZCL spec 15.4.2.3.1.

Parameters
buffer- to put packet to
seq- sequence
alerts_count- Alerts count field
ptr- [out] (zb_uint8_t*) current position for ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_ADD and ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_END

Typedef Documentation

Structure representsation of Event Notification command.

Parameters
event_header- Event header field
event_identification- Event Identification field, see zb_zcl_en50523_appl_ev_and_alerts_event_identification_e

Enumeration Type Documentation

EN50523 Appliance events and alerts cluster command received identifiers.

See also
ZCL 6.0 spec, subclause 15.4.2.3
Enumerator
ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_ID 

"Get alerts" command.

EN50523 Appliance events and alerts cluster commands generated identifiers.

See also
ZCL 6.0 spec, subclause 15.4.2.4
Enumerator
ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_ID 

"Get alerts response" command.

ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIFICATION_ID 

"Alerts notification" command.

ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_EVENT_NOTIFICATION_ID 

"Event notification" command.


Documentation feedback | Developer Zone | Subscribe | Updated