|
Developing with ZBOSS for Zigbee
|
◆ zb_aps_check_binding_req_t
◆ zb_aps_check_binding_resp_t
◆ zb_apsme_binding_req_t
◆ zb_aps_check_binding_request()
void zb_aps_check_binding_request |
( |
zb_bufid_t |
param | ) |
|
Checks if the binding with specified parameters exists
◆ zb_apsme_add_group_request()
void zb_apsme_add_group_request |
( |
zb_uint8_t |
param | ) |
|
APSME-ADD-GROUP.request primitive.
- Parameters
-
- Example
TRACE_MSG(TRACE_APP1,
"> add_to_test_group buf %p", (FMT__P, buf));
ZB_BZERO(aps_req, sizeof(*aps_req));
◆ zb_apsme_bind_request()
APSME-BIND.request primitive.
- Parameters
-
- Example
{
TRACE_MSG(TRACE_APP2,
">> light_control_bind_bulb param %hd", (FMT__H, param));
bind_on_off_cluster(param);
TRACE_MSG(TRACE_APP2,
"<< light_control_bind_bulb", (FMT__0));
}
◆ zb_apsme_remove_all_groups_request()
void zb_apsme_remove_all_groups_request |
( |
zb_uint8_t |
param | ) |
|
APSME-REMOVE-ALL-GROUPS.request primitive.
- Parameters
-
- Example
{
zb_buf_t *buf = ZB_BUF_FROM_REF(param);
TRACE_MSG(TRACE_APP1,
"> remove_groups param %hd", (FMT__H, param));
req_remove_param->
endpoint = ZB_TEST_PROFILE_EP;
zb_free_buf(buf);
TRACE_MSG(TRACE_APP1,
"< remove_groups", (FMT__0));
}
◆ zb_apsme_remove_group_request()
void zb_apsme_remove_group_request |
( |
zb_uint8_t |
param | ) |
|
APSME-REMOVE-GROUP.request primitive.
- Parameters
-
- Example
{
zb_buf_t *buf = ZB_BUF_FROM_REF(param);
TRACE_MSG(TRACE_APP1,
"> remove_group param %hd", (FMT__H, param));
req_remove_param->
endpoint = ZB_TEST_PROFILE_EP;
zb_free_buf(buf);
TRACE_MSG(TRACE_APP1,
"< remove_group", (FMT__0));
}
◆ zb_apsme_unbind_all()
Perform unbind all entries. This custom function and it is not described in Zigbee specification.
- Parameters
-
◆ zb_apsme_unbind_request()
APSME-UNBIND.request primitive.
- Parameters
-
- Example
TRACE_MSG(TRACE_APS1,
"start APS unbind test", (FMT__0));
{
gen_64_bit_addr(ieee_addr, i+1, i+1);
req_b.src_endpoint = i;
req_b.clusterid = 1;
gen_64_bit_addr(ieee_addr, i+2, i+2);
ZB_MEMCPY(&req_b.dst_addr.addr_long, &ieee_addr,
sizeof(
zb_ieee_addr_t));
req_b.dst_endpoint = i+1;
ZB_MEMCPY(
&req_b,
ret = aps->u.hdr.status;
}
if (ret)
{
if (ret == RET_INVALID_BINDING)
{
TRACE_MSG(TRACE_APS1,
"invalid binding for i = %d ret %d", (FMT__D_D, i, ret));
if (ZG->aps.binding.src_n_elements == 1 && ZG->aps.binding.dst_n_elements == 1)
{
}
else
{
TRACE_MSG(TRACE_APS1,
"ERROR binding table is corrupted", (FMT__0));
}
}
else
{
TRACE_MSG(TRACE_APS1,
"ERROR %d", (FMT__D, ret));
}
}
zb_uint8_t endpoint
Definition: zboss_api_aps.h:317
zb_uint16_t group_address
Definition: zboss_api_aps.h:316
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:153
APSME binding structure.
Definition: zboss_api_aps.h:267
#define TRACE_MSG(lm, fmts, args)
Put trace output.
Definition: zb_trace.h:359
void zb_apsme_remove_group_request(zb_uint8_t param)
APSME-REMOVE-GROUP.request primitive.
#define zb_buf_reuse(buf)
Definition: zboss_api_buf.h:392
APSME-REMOVE-ALL-GROUPS.request primitive parameters.
Definition: zboss_api_aps.h:336
#define ZB_BUF_GET_PARAM(buf, type)
Definition: zboss_api_buf.h:447
void zb_apsme_remove_all_groups_request(zb_uint8_t param)
APSME-REMOVE-ALL-GROUPS.request primitive.
#define ZB_APS_ADDR_MODE_64_ENDP_PRESENT
Definition: zboss_api_aps.h:108
APSME-ADD-GROUP.request primitive parameters.
Definition: zboss_api_aps.h:314
zb_64bit_addr_t zb_ieee_addr_t
Long (64-bit) device address.
Definition: zb_types.h:554
#define RET_OK
Error codes for non-void stack functions. In general, function can return OK, BLOCKED or some error....
Definition: zb_errors.h:78
void zb_apsme_unbind_request(zb_uint8_t param)
APSME-UNBIND.request primitive.
zb_uint8_t endpoint
Definition: zboss_api_aps.h:338
void zb_apsme_add_group_request(zb_uint8_t param)
APSME-ADD-GROUP.request primitive.
#define ZB_APS_SRC_BINDING_TABLE_SIZE
Definition: zb_config.h:833