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 representation of Get Alerts Response command. More... | |
| struct | zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_s |
| Structure representation of Alerts Notification command. More... | |
| struct | zb_zcl_en50523_appl_ev_and_alerts_event_notif_s |
| Structure representation 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 Identification. | |
| 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 representation 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 representation 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 representation of Event Notification command. More... | |
| #define | ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_CLUSTER_REVISION_DEFAULT ((zb_uint16_t)0x0001u) |
| Default value for EN50523 Appliance events and alerts cluster revision global attribute. | |
| #define | ZB_ZCL_DECLARE_EN50523_APPL_EV_AND_ALERTS_ATTR_LIST(attr_list) |
| Declare attribute list for EN50523 Appliance events and alerts cluster (only cluster revision attribute) 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
◆ ZB_ZCL_DECLARE_EN50523_APPL_EV_AND_ALERTS_ATTR_LIST
| #define ZB_ZCL_DECLARE_EN50523_APPL_EV_AND_ALERTS_ATTR_LIST | ( | attr_list | ) |
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_EN50523_APPL_EV_AND_ALERTS) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for EN50523 Appliance events and alerts cluster (only cluster revision attribute)
- Parameters
-
attr_list - attribute list name
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE | ( | ptr | ) |
(sizeof(((zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_t *)(ptr))->alerts_count) + \ (ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(((zb_zcl_en50523_appl_ev_and_alerts_alerts_notif_t *)(ptr))->alerts_count)* \Structure representation of Alerts Notification command. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:284
#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:156
Alert structure. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:192
Alerts Notification command payload size
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_NOTIF
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_NOTIF | ( | data_ptr, | |
| buffer, | |||
| status | |||
| ) |
{ \ zb_uint8_t *data = zb_buf_begin(buffer); \ if (zb_buf_len((buffer)) < \ { \ (status) = ZB_ZCL_PARSE_STATUS_FAILURE; \ } \ else \ { \ ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->alerts_count, data); \ ZB_ZCL_PACKET_GET_DATA_N((data_ptr)->alert_struct, data, \ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM((data_ptr)->alerts_count)*sizeof(zb_zcl_en50523_appl_ev_and_alerts_alert_struct_t)); \ (status) = ZB_ZCL_PARSE_STATUS_SUCCESS; \ } \}#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIF_PAYLOAD_SIZE(ptr)Definition: zb_zcl_en50523_appliance_events_and_alerts.h:294
#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:156
Definition: zb_zcl_common.h:348
Alert structure. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:192
Definition: zb_zcl_common.h:347
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 buffer containing the packet (by pointer). status - variable to put parse status to (see zb_zcl_parse_status_t).
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE | ( | ptr | ) |
(sizeof(((zb_zcl_en50523_appl_ev_and_alerts_get_alerts_resp_t *)(ptr))->alerts_count) + \ (ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM(((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:156
Alert structure. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:192
Structure representation of Get Alerts Response command. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:199
Get Alerts Response command payload size
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_EVENT_NOTIF
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_EVENT_NOTIF | ( | data_ptr, | |
| buffer, | |||
| status | |||
| ) |
{ \ zb_uint8_t *data = zb_buf_begin(buffer); \ if (zb_buf_len((buffer)) < \ { \ (status) = ZB_ZCL_PARSE_STATUS_FAILURE; \ } \ else \ { \ ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->event_header, data); \ ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->event_identification, data); \ (status) = ZB_ZCL_PARSE_STATUS_SUCCESS; \ } \}Definition: zb_zcl_common.h:348
Structure representation of Event Notification command. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:388
Definition: zb_zcl_common.h:347
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 buffer containing the packet (by pointer). status - variable to put parse status to (see zb_zcl_parse_status_t).
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_GET_ALERTS_RESP
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_GET_ALERTS_RESP | ( | data_ptr, | |
| buffer, | |||
| status | |||
| ) |
{ \ zb_uint8_t *data = zb_buf_begin(buffer); \ if (zb_buf_len((buffer)) < \ { \ (status) = ZB_ZCL_PARSE_STATUS_FAILURE; \ } \ else \ { \ ZB_ZCL_PACKET_GET_DATA8(&(data_ptr)->alerts_count, data); \ ZB_ZCL_PACKET_GET_DATA_N((data_ptr)->alert_struct, data, \ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_ALERTS_COUNT_GET_NUM((data_ptr)->alerts_count)*sizeof(zb_zcl_en50523_appl_ev_and_alerts_alert_struct_t)); \ (status) = ZB_ZCL_PARSE_STATUS_SUCCESS; \ } \}#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:156
Definition: zb_zcl_common.h:348
Alert structure. Definition: zb_zcl_en50523_appliance_events_and_alerts.h:192
#define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_GET_ALERTS_RESP_PAYLOAD_SIZE(ptr)Definition: zb_zcl_en50523_appliance_events_and_alerts.h:209
Definition: zb_zcl_common.h:347
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 buffer containing the packet (by pointer). status - variable to put parse status to (see zb_zcl_parse_status_t).
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_ADD
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_ADD | ( | ptr, | |
| alert_struct | |||
| ) |
{ \ ZB_ZCL_PACKET_PUT_DATA24(ptr, (alert_struct)); \}
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_END
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_END | ( | ptr, | |
| buffer, | |||
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| cb | |||
| ) |
{ \ ZB_ZCL_FINISH_PACKET((buffer), ptr) \ ZB_ZCL_SEND_COMMAND_SHORT( \ buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \}#define ZB_ZCL_CLUSTER_ID_APPLIANCE_EVENTS_AND_ALERTSDefinition: zb_zcl_common.h:300
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_START
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_ALERTS_NOTIF_START | ( | buffer, | |
| def_resp, | |||
| alerts_count, | |||
| ptr | |||
| ) |
{ \ (ptr) = zb_zcl_start_command_header(buffer, \ ZB_ZCL_CONSTRUCT_FRAME_CONTROL( \ (def_resp)), \ 0, /* No manuf_code */ \ ZB_ZCL_CMD_EN50523_APPL_EV_AND_ALERTS_ALERTS_NOTIFICATION_ID, \ NULL); \ ZB_ZCL_PACKET_PUT_DATA8((ptr), (alerts_count)); \}void * zb_zcl_start_command_header(zb_bufid_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.
#define ZB_ZCL_NOT_MANUFACTURER_SPECIFICDefinition: zb_zcl_common.h:1006
#define ZB_ZCL_FRAME_TYPE_CLUSTER_SPECIFICDefinition: zb_zcl_common.h:987
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_EVENT_NOTIF
| #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 | |||
| ) |
{ \ zb_uint8_t* 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, 0); \ 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_CLUSTER_ID_APPLIANCE_EVENTS_AND_ALERTSDefinition: zb_zcl_common.h:300
void * zb_zcl_start_command_header(zb_bufid_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.
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:75
#define ZB_ZCL_NOT_MANUFACTURER_SPECIFICDefinition: zb_zcl_common.h:1006
#define ZB_ZCL_FRAME_TYPE_CLUSTER_SPECIFICDefinition: zb_zcl_common.h:987
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_REQ
| #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 | |||
| ) |
{ \ 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_CLUSTER_ID_APPLIANCE_EVENTS_AND_ALERTSDefinition: zb_zcl_common.h:300
#define ZB_ZCL_GET_SEQ_NUM()Return next sequence number for ZCL frame. Definition: zb_zcl_common.h:1443
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:61
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_ADD
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_ADD | ( | ptr, | |
| alert_struct | |||
| ) |
{ \ ZB_ZCL_PACKET_PUT_DATA24(ptr, (alert_struct)); \}
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_END
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_END | ( | ptr, | |
| buffer, | |||
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id | |||
| ) |
{ \ ZB_ZCL_FINISH_PACKET((buffer), ptr) \ ZB_ZCL_SEND_COMMAND_SHORT( \ buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, \}#define ZB_ZCL_CLUSTER_ID_APPLIANCE_EVENTS_AND_ALERTSDefinition: zb_zcl_common.h:300
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
◆ ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_START
| #define ZB_ZCL_EN50523_APPL_EV_AND_ALERTS_SEND_GET_ALERTS_RESP_START | ( | buffer, | |
| seq, | |||
| alerts_count, | |||
| ptr | |||
| ) |
{ \ (ptr) = ZB_ZCL_START_PACKET(buffer); \ ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_RES_FRAME_CONTROL(ptr); \ ZB_ZCL_CONSTRUCT_COMMAND_HEADER(ptr, seq, \ ZB_ZCL_PACKET_PUT_DATA8((ptr), (alerts_count)); \}#define ZB_ZCL_START_PACKET(zbbuf)Initializes zb_buf_t buffer and returns pointer to the beginning of array. Definition: zb_zcl_common.h:1523
Definition: zb_zcl_en50523_appliance_events_and_alerts.h:71
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
◆ zb_zcl_en50523_appl_ev_and_alerts_event_notif_t
Structure representation 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
◆ zb_zcl_en50523_appl_ev_and_alerts_recv_cmd_e
◆ zb_zcl_en50523_appl_ev_and_alerts_send_cmd_e
EN50523 Appliance events and alerts cluster commands generated identifiers.
- See also
- ZCL 6.0 spec, subclause 15.4.2.4