|
| #define | ZB_ZCL_READ_REP_CFG_REQ_SIZE sizeof(zb_zcl_read_reporting_cfg_req_t) |
| | Minimal size of Write attribute request, it will be more if attr_value size is more than 1 byte. More...
|
| |
| #define | ZB_ZCL_GENERAL_GET_NEXT_READ_REP_CFG_REQ(data_buf, rep_cfg_req, rslt) |
| | Parses read reporting configuration request and returns next Read reporting configuration attribute record or NULL if there is no more data. More...
|
| |
| #define | ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ(buffer, ptr, def_resp) |
| | Initialize Read reporting configuration command (report send case) More...
|
| |
| #define | ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ_MANUF(buffer, ptr, def_resp, manuf_code) |
| | Initialize Read reporting configuration command (report send case) More...
|
| |
| #define | ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_CLI_REQ(buffer, ptr, def_resp) |
| | Initialize Read reporting configuration command (report receive case) More...
|
| |
| #define | ZB_ZCL_GENERAL_ADD_SEND_READ_REPORTING_CONFIGURATION_REQ(ptr, attr_id) |
| | Add Read reporting configuration record to command payload (report send case) More...
|
| |
| #define | ZB_ZCL_GENERAL_ADD_RECV_READ_REPORTING_CONFIGURATION_REQ(ptr, attr_id) |
| | Add Read reporting configuration record to command payload (report receive case) More...
|
| |
| #define | ZB_ZCL_GENERAL_SEND_READ_REPORTING_CONFIGURATION_REQ( buffer, ptr, addr, dst_addr_mode, dst_ep, ep, prfl_id, cluster_id, cb) |
| | Sends Read reporting configuration command. More...
|
| |
| #define | ZB_ZCL_GENERAL_GET_READ_REPORTING_CONFIGURATION_RES(data_buf, read_rep_conf_res) |
| | Parses Read reporting configuration response and returns next read reporting configuration record or NULL if there is no more data. More...
|
| |
Most of actions related to the read attribute reporting configuration are implemented in ZCL internals. Read reporting configuration command is described in ZCL spec, subclause 2.4.9.
§ ZB_ZCL_GENERAL_ADD_RECV_READ_REPORTING_CONFIGURATION_REQ
| #define ZB_ZCL_GENERAL_ADD_RECV_READ_REPORTING_CONFIGURATION_REQ |
( |
|
ptr, |
|
|
|
attr_id |
|
) |
| |
§ ZB_ZCL_GENERAL_ADD_SEND_READ_REPORTING_CONFIGURATION_REQ
| #define ZB_ZCL_GENERAL_ADD_SEND_READ_REPORTING_CONFIGURATION_REQ |
( |
|
ptr, |
|
|
|
attr_id |
|
) |
| |
§ ZB_ZCL_GENERAL_GET_NEXT_READ_REP_CFG_REQ
| #define ZB_ZCL_GENERAL_GET_NEXT_READ_REP_CFG_REQ |
( |
|
data_buf, |
|
|
|
rep_cfg_req, |
|
|
|
rslt |
|
) |
| |
#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zcl/zb_zcl_commands.h>
Value:{ \
zb_zcl_read_reporting_cfg_req_t *cfg_req; \
if (cfg_req) \
{ \
rep_cfg_req.direction = cfg_req -> direction; \
rep_cfg_req.attr_id = cfg_req -> attr_id; \
ZB_ZCL_HTOLE16_INPLACE(&(read_rep_cfg_req).attr_id); \
} \
else \
{ \
} \
}
#define zb_buf_cut_left(buf, size)
Definition: zboss_api_buf.h:474
#define ZB_FALSE
Definition: zb_types.h:349
#define zb_buf_begin(buf)
Definition: zboss_api_buf.h:354
#define ZB_ZCL_READ_REP_CFG_REQ_SIZE
Minimal size of Write attribute request, it will be more if attr_value size is more than 1 byte...
Definition: zb_zcl_commands.h:1814
#define ZB_TRUE
Definition: zb_types.h:350
Definition: zb_zcl_commands.h:1798
#define zb_buf_len(buf)
Definition: zboss_api_buf.h:372
Parses read reporting configuration request and returns next Read reporting configuration attribute record or NULL if there is no more data.
If request contains invalid data, NULL is returned.
- Parameters
-
| data_buf | - ID zb_bufid_t of a buffer containing read reporting configuration request data |
| rep_cfg_req | - out pointer to zb_zcl_read_attr_req_t, containing read reporting configuration request |
| rslt | - returns TRUE if record exist and FALSE if not |
- Note
- data_buf buffer should contain read reporting configuration request payload, without ZCL header. Each parsed read reporting configuration request is extracted from initial data_buf buffer
§ ZB_ZCL_GENERAL_GET_READ_REPORTING_CONFIGURATION_RES
| #define ZB_ZCL_GENERAL_GET_READ_REPORTING_CONFIGURATION_RES |
( |
|
data_buf, |
|
|
|
read_rep_conf_res |
|
) |
| |
#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zcl/zb_zcl_commands.h>
Parses Read reporting configuration response and returns next read reporting configuration record or NULL if there is no more data.
If response contains invalid data, NULL is returned.
- Parameters
-
| data_buf | - ID zb_bufid_t of a buffer containing Configure reporting response data |
| read_rep_conf_res | - out pointer to zb_zcl_read_reporting_cfg_rsp_t, containing read reporting configuration record |
- Note
- data_buf buffer should contain Read reporting configuration, without ZCL header. Each parsed Read reporting configuration record is extracted from initial data_buf buffer
§ ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_CLI_REQ
| #define ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_CLI_REQ |
( |
|
buffer, |
|
|
|
ptr, |
|
|
|
def_resp |
|
) |
| |
#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zcl/zb_zcl_commands.h>
Value:{ \
ZB_ZCL_CONSTRUCT_GENERAL_COMMAND_REQ_FRAME_CONTROL_A( \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1470
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1550
#define ZB_ZCL_FRAME_DIRECTION_TO_CLI
Definition: zb_zcl_common.h:1066
#define ZB_ZCL_CMD_READ_REPORT_CFG
Definition: zb_zcl_commands.h:69
#define ZB_ZCL_NOT_MANUFACTURER_SPECIFIC
Definition: zb_zcl_common.h:1017
Initialize Read reporting configuration command (report receive case)
- Parameters
-
| buffer | to put packet to |
| ptr | - command buffer pointer |
| def_resp | - enable/disable default response |
§ ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ
| #define ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ |
( |
|
buffer, |
|
|
|
ptr, |
|
|
|
def_resp |
|
) |
| |
#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zcl/zb_zcl_commands.h>
Value:{ \
ZB_ZCL_CONSTRUCT_GENERAL_COMMAND_REQ_FRAME_CONTROL_A( \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1470
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1550
#define ZB_ZCL_FRAME_DIRECTION_TO_SRV
Definition: zb_zcl_common.h:1064
#define ZB_ZCL_CMD_READ_REPORT_CFG
Definition: zb_zcl_commands.h:69
#define ZB_ZCL_NOT_MANUFACTURER_SPECIFIC
Definition: zb_zcl_common.h:1017
Initialize Read reporting configuration command (report send case)
- Parameters
-
| buffer | to put packet to |
| ptr | - command buffer pointer |
| def_resp | - enable/disable default response |
§ ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ_MANUF
| #define ZB_ZCL_GENERAL_INIT_READ_REPORTING_CONFIGURATION_SRV_REQ_MANUF |
( |
|
buffer, |
|
|
|
ptr, |
|
|
|
def_resp, |
|
|
|
manuf_code |
|
) |
| |
#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zcl/zb_zcl_commands.h>
Value:{ \
ZB_ZCL_CONSTRUCT_GENERAL_COMMAND_REQ_FRAME_CONTROL_A( \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1470
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1550
#define ZB_ZCL_FRAME_DIRECTION_TO_SRV
Definition: zb_zcl_common.h:1064
#define ZB_ZCL_MANUFACTURER_SPECIFIC
Definition: zb_zcl_common.h:1020
#define ZB_ZCL_CMD_READ_REPORT_CFG
Definition: zb_zcl_commands.h:69
#define ZB_TRUE
Definition: zb_types.h:350
Initialize Read reporting configuration command (report send case)
- Parameters
-
| buffer | to put packet to |
| ptr | - command buffer pointer |
| def_resp | - enable/disable default response |
| manuf_code | - manufacturer specific code |
§ ZB_ZCL_GENERAL_SEND_READ_REPORTING_CONFIGURATION_REQ
| #define ZB_ZCL_GENERAL_SEND_READ_REPORTING_CONFIGURATION_REQ |
( |
|
buffer, |
|
|
|
ptr, |
|
|
|
addr, |
|
|
|
dst_addr_mode, |
|
|
|
dst_ep, |
|
|
|
ep, |
|
|
|
prfl_id, |
|
|
|
cluster_id, |
|
|
|
cb |
|
) |
| |
§ ZB_ZCL_READ_REP_CFG_REQ_SIZE
§ zb_zcl_read_reporting_cfg_req_t
§ zb_zcl_read_reporting_cfg_rsp_t