|
Developing with ZBOSS SDK for Zigbee
|
◆ zb_bind_dst_addr_mode_t
◆ zb_end_device_bind_req_param_t
Parameters for End_Device_Bind_req.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_bind_req_head_t
Bind_req request head send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_param_t
Parameters for Bind_req API call.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_tail_1_t
Bind_req request tail 1st variant send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_tail_2_t
Bind_req request tail 2nd variant send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_end_device_bind_req_head_t
End_Device_Bind_req command head.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_end_device_bind_req_tail_t
End_Device_Bind_req command head.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_end_device_bind_resp_t
Response from End_Device_Bind_req.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_mgmt_bind_param_t
Parameters for Mgmt_Bind_req.
- See also
- ZB spec, subclause 2.4.3.3.4.
◆ zb_zdo_mgmt_bind_req_t
Request for Mgmt_Bind_req.
- See also
- ZB spec, subclause 2.4.3.3.4.
◆ zb_zdo_mgmt_bind_resp_t
Response for Mgmt_Bind_rsp.
- See also
- ZB spec, subclause 2.4.4.3.4.
◆ zb_bind_dst_addr_mode_e
The addressing mode for the destination address used in zb_zdo_binding_table_record_s, zb_zdo_bind_req_param_s, zb_zdo_bind_req_head_s command. This field can take one of the non-reserved values from the list zb_bind_dst_addr_mode_e. Values 0x00, 0x02, 0x04-0xff are reserved.
- See also
- ZB Spec, subclause 2.4.3.2.2.
Enumerator |
---|
ZB_BIND_DST_ADDR_MODE_16_BIT_GROUP | 16-bit group address for DstAddress and DstEndp not present
|
ZB_BIND_DST_ADDR_MODE_64_BIT_EXTENDED | 64-bit extended address for DstAddress and DstEndp present
|
◆ zb_end_device_bind_req()
sends 2.4.3.2.1 End_Device_Bind_req command
- Parameters
-
param | - index of buffer with request |
cb | - user's function to call when got response from the remote. |
- Returns
- ZDP transaction sequence number or
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
◆ zb_zdo_bind_req()
Bind_req request.
- Parameters
-
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
Example:
{
ret = buf->u.hdr.status;
if (ret == RET_TABLE_FULL)
{
TRACE_MSG(TRACE_ERROR, "TABLE FULL %d", (FMT__D, ret));
}
}
{
ZB_MEMCPY(&ret, aps_body, sizeof(ret));
TRACE_MSG(TRACE_INFO1, "zb_bind_callback %hd", (FMT__H, ret));
{
}
}
See tp_zdo_bv-12 sample
◆ zb_zdo_mgmt_bind_req()
Sends Mgmt_Bind_req request.
- Parameters
-
param | reference to the buffer to put request data to. |
cb | callback to be called on operation finish. |
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
See zdo_binding sample
◆ zb_zdo_unbind_req()
Unbind_req request.
- Parameters
-
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
Example:
{
TRACE_MSG(TRACE_COMMON1, "unbind_device_1", (FMT__0));
bind_param->
cluster_id = TP_BUFFER_TEST_REQUEST_CLID;
TRACE_MSG(TRACE_COMMON1,
"dst addr %d", (FMT__D, bind_param->
req_dst_addr));
}
{
TRACE_MSG(TRACE_COMMON1,
"unbind_device1_cb resp status %hd", (FMT__H, bind_resp->
status));
{
TRACE_MSG(TRACE_COMMON1, "Error bind device 1. Test status failed", (FMT__0));
}
zb_free_buf(buf);
}
See tp_aps_bv-23-i, tp_zdo_bv-12 samples
◆ zdo_mgmt_bind_resp()
Sends 2.4.4.3.4 Mgmt_Bind_rsp.
- Parameters
-
param | - index of buffer with Mgmt_Bind request |
zb_ieee_addr_t src_addr
Definition: zboss_api_aps.h:251
@ ZB_ZDP_STATUS_SUCCESS
Definition: zboss_api_zdo.h:39
zb_uint16_t cluster_id
Definition: zboss_api_zdo.h:2060
Parameters for Bind_req API call.
Definition: zboss_api_zdo.h:2056
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:158
APSME binding structure.
Definition: zboss_api_aps.h:249
#define zb_buf_initial_alloc(buf, size)
Initial data space allocation in buffer.
Definition: zboss_api_buf.h:400
zb_int_t zb_ret_t
Return type for ZB functions returning execution status.
Definition: zb_errors.h:33
zb_uint8_t addr_mode
Definition: zboss_api_aps.h:255
zb_uint16_t req_dst_addr
Definition: zboss_api_zdo.h:2071
zb_ieee_addr_t src_address
Definition: zboss_api_zdo.h:2058
#define ZB_BUF_GET_PARAM(buf, type)
Definition: zboss_api_buf.h:468
zb_uint8_t dst_endpoint
Definition: zboss_api_aps.h:258
zb_uint8_t zb_zdo_unbind_req(zb_uint8_t param, zb_callback_t cb)
Unbind_req request.
zb_uint8_t zb_zdo_bind_req(zb_uint8_t param, zb_callback_t cb)
Bind_req request.
zb_uint8_t dst_endp
Definition: zboss_api_zdo.h:2065
zb_uint8_t src_endpoint
Definition: zboss_api_aps.h:252
#define zb_buf_begin(buf)
Definition: zboss_api_buf.h:331
zb_addr_u dst_addr
Definition: zboss_api_aps.h:257
zb_64bit_addr_t zb_ieee_addr_t
Long (64-bit) device address.
Definition: zb_types.h:515
zb_uint8_t status
Definition: zboss_api_zdo.h:2118
#define RET_OK
Error codes for non-void stack functions. In general, function can return OK, BLOCKED or some error....
Definition: zb_errors.h:73
zb_uint16_t clusterid
Definition: zboss_api_aps.h:253
zb_addr_u dst_address
Definition: zboss_api_zdo.h:2063
Response by Bind_req.
Definition: zboss_api_zdo.h:2115
zb_uint8_t dst_addr_mode
Definition: zboss_api_zdo.h:2062
@ ZB_APS_ADDR_MODE_64_ENDP_PRESENT
Definition: zboss_api_aps.h:103
zb_uint16_t zb_address_short_by_ieee(zb_ieee_addr_t ieee_address)
zb_uint8_t zb_bufid_t
Definition: zboss_api_buf.h:162
zb_uint8_t src_endp
Definition: zboss_api_zdo.h:2059