Developing with ZBOSS for Zigbee
|
Data Structures | |
struct | zb_zcl_alarms_reset_alarm_req_s |
Structured representation of Reset alarm command payload. More... | |
struct | zb_zcl_alarm_get_alarm_hdr_res_s |
struct | zb_zcl_alarm_get_alarm_res_s |
Get alarm response command structure. More... | |
Macros | |
#define | ZB_ZCL_ALARMS_REPORT_ATTR_COUNT 0 |
Alarms cluster attributes | |
enum | zb_zcl_alarms_attr_e { ZB_ZCL_ATTR_ALARMS_ALARM_COUNT_ID = 0x0000 } |
Alarms cluster attribute identifiers. More... | |
Alarms cluster commands | |
enum | zb_zcl_alarms_cmd_e { ZB_ZCL_CMD_ALARMS_RESET_ALARM_ID = 0x00, ZB_ZCL_CMD_ALARMS_RESET_ALL_ALARMS_ID = 0x01, ZB_ZCL_CMD_ALARMS_GET_ALARM_ID = 0x02, ZB_ZCL_CMD_ALARMS_RESET_ALARM_LOG_ID = 0x03 } |
Alarms cluster command identifiers. More... | |
enum | zb_zcl_alarms_cmd_resp_e { ZB_ZCL_CMD_ALARMS_ALARM_ID = 0x00, ZB_ZCL_CMD_ALARMS_GET_ALARM_RES_ID = 0x01 } |
Alarms cluster response command identifiers. More... | |
typedef struct zb_zcl_alarms_reset_alarm_req_s | zb_zcl_alarms_reset_alarm_req_t |
Structured representation of Reset alarm command payload. | |
typedef zb_zcl_alarms_reset_alarm_req_t | zb_zcl_alarms_alarm_res_t |
Structured representation of Alarm command payload. | |
typedef struct zb_zcl_alarm_get_alarm_hdr_res_s | zb_zcl_alarm_get_alarm_hdr_res_t |
typedef struct zb_zcl_alarm_get_alarm_res_s | zb_zcl_alarm_get_alarm_res_t |
Get alarm response command structure. | |
#define | ZB_ZCL_ALARMS_RESET_ALARM_REQ_PAYLOAD_LEN sizeof(zb_zcl_alarms_reset_alarm_req_t) |
Reset alarm payload length macro. | |
#define | ZB_ZCL_ALARMS_SEND_RESET_ALARM_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, cb, alarm_code, cluster_id) |
Send Reset alarm command. More... | |
#define | ZB_ZCL_ALARMS_GET_RESET_ALARM_REQ(data_buf, reset_alarm_req, status) |
Parses Reset alarm command and fills in data request structure. If request contains invalid data, status will set to ZB_FALSE. More... | |
#define | ZB_ZCL_ALARMS_SEND_RESET_ALL_ALARMS_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, cb) |
Send Reset all alarms command. More... | |
#define | ZB_ZCL_ALARMS_SEND_GET_ALARM_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, cb) |
Send Get alarm command. More... | |
#define | ZB_ZCL_ALARMS_SEND_RESET_ALARM_LOG_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, cb) |
Send Reset alarm log command. More... | |
#define | ZB_ZCL_ALARM_GET_ALARM_RES_SIZE sizeof(zb_zcl_alarm_get_alarm_res_t) |
#define | ZB_ZCL_ALARM_GET_ALARM_HDR_RES_SIZE sizeof(zb_zcl_alarm_get_alarm_hdr_res_t) |
#define | ZB_ZCL_ALARMS_SEND_ALARM_RES( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, cb, alarm_code, cluster_id) |
Send Alarm command (to client) More... | |
#define | ZB_ZCL_ALARMS_GET_ALARM_RES(data_ptr, buffer, status) |
Parses Reset alarm command and fills in data request structure. If request contains invalid data, status will set to ZB_FALSE. More... | |
#define | ZB_ZCL_ALARMS_GET_GET_ALARM_RES(data_buf, get_alarm_res, status) |
Parses Get alarm response command and returns response data structure or status = ZB_FALSE if request contains invalid data. More... | |
#define ZB_ZCL_ALARMS_GET_ALARM_RES | ( | data_ptr, | |
buffer, | |||
status | |||
) |
Parses Reset alarm command and fills in data request structure. If request contains invalid data, status will set to ZB_FALSE.
data_ptr | - pointer to a variable of type zb_zcl_alarms_alarm_res_t. |
buffer | containing the packet (by pointer). |
status | - variable to put parse status to (see zb_zcl_parse_status_t). |
#define ZB_ZCL_ALARMS_GET_GET_ALARM_RES | ( | data_buf, | |
get_alarm_res, | |||
status | |||
) |
Parses Get alarm response command and returns response data structure or status = ZB_FALSE if request contains invalid data.
data_buf | - pointer to zb_buf_t buffer containing command response data |
get_alarm_res | - command response record |
status | - variable to put parse status to (see zb_zcl_parse_status_t) |
#define ZB_ZCL_ALARMS_GET_RESET_ALARM_REQ | ( | data_buf, | |
reset_alarm_req, | |||
status | |||
) |
Parses Reset alarm command and fills in data request structure. If request contains invalid data, status will set to ZB_FALSE.
data_buf | - pointer to zb_buf_t buffer containing command request data |
reset_alarm_req | - variable to save command request |
status | - variable to put parse status to (see zb_zcl_parse_status_t). |
#define ZB_ZCL_ALARMS_SEND_ALARM_RES | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prof_id, | |||
cb, | |||
alarm_code, | |||
cluster_id | |||
) |
Send Alarm command (to client)
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 |
cb | - callback to call to report send status |
alarm_code | - Alarm Code |
cluster_id | - Cluster Id |
#define ZB_ZCL_ALARMS_SEND_GET_ALARM_REQ | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prof_id, | |||
dis_default_resp, | |||
cb | |||
) |
Send Get alarm 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 |
cb | - callback to call to report send status |
#define ZB_ZCL_ALARMS_SEND_RESET_ALARM_LOG_REQ | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prof_id, | |||
dis_default_resp, | |||
cb | |||
) |
Send Reset alarm log 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 |
cb | - callback to call to report send status |
#define ZB_ZCL_ALARMS_SEND_RESET_ALARM_REQ | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prof_id, | |||
dis_default_resp, | |||
cb, | |||
alarm_code, | |||
cluster_id | |||
) |
Send Reset alarm 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 |
cb | - callback to call to report send status |
alarm_code | - Alarm Code field |
cluster_id | - Cluster ID field |
#define ZB_ZCL_ALARMS_SEND_RESET_ALL_ALARMS_REQ | ( | buffer, | |
addr, | |||
dst_addr_mode, | |||
dst_ep, | |||
ep, | |||
prof_id, | |||
dis_default_resp, | |||
cb | |||
) |
Send Reset all alarms 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 |
cb | - callback to call to report send status |
enum zb_zcl_alarms_attr_e |
enum zb_zcl_alarms_cmd_e |
Alarms cluster command identifiers.