{ \
zb_uint8_t req_size = 0xff; \
(rep_attr_req) =
zb_buf_len(data_buf) >= ZB_ZCL_REPORT_ATTR_REQ_SIZE ? \
\
if (rep_attr_req) \
{ \
req_size = ZB_ZCL_REPORT_ATTR_REQ_SIZE; \
ZB_ZCL_HTOLE16_INPLACE(&(rep_attr_req)->attr_id); \
\
req_size += \
zb_zcl_get_attribute_size((rep_attr_req)->attr_type, (rep_attr_req)->attr_value) - \
{ \
ZB_ZCL_FIX_ENDIAN((rep_attr_req)->attr_value, (rep_attr_req)->attr_type); \
} \
\
{ \
} \
else \
{ \
(rep_attr_req) = NULL; \
} \
} \
}
ZCL Report Attribute Command frame.
Definition: zb_zcl_commands.h:1723
#define zb_buf_cut_left(buf, size)
Definition: zboss_api_buf.h:474
#define zb_buf_begin(buf)
Definition: zboss_api_buf.h:354
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:147
#define zb_buf_len(buf)
Definition: zboss_api_buf.h:372
Parses Report attribute command and returns next Attribute report or NULL if there is no more data.
If command contains invalid data, NULL is returned.