Data Structures | |
struct | zb_zdo_mgmt_nwk_update_req_hdr_s |
Header of parameters for Mgmt_NWK_Update_req. More... | |
struct | zb_zdo_mgmt_nwk_update_req_s |
Parameters for Mgmt_NWK_Update_req. More... | |
struct | zb_zdo_mgmt_nwk_update_notify_hdr_s |
Header parameters for mgmt_nwk_update_notify. More... | |
struct | zb_zdo_mgmt_nwk_update_notify_param_s |
Parameters for mgmt_nwk_update_notify. More... | |
struct | zb_zdo_mgmt_lqi_param_s |
Parameters for Mgmt_Lqi_req. More... | |
struct | zb_zdo_mgmt_lqi_req_s |
Request for Mgmt_Lqi_req. More... | |
struct | zb_zdo_mgmt_lqi_resp_s |
Response for Mgmt_Lqi_rsp. More... | |
struct | zb_zdo_neighbor_table_record_s |
NeighborTableList Record Format for Mgmt_Lqi_resp. More... | |
struct | zb_zdo_mgmt_rtg_param_s |
Parameters for Mgmt_Rtg_req. More... | |
struct | zb_zdo_mgmt_rtg_req_s |
Request for Mgmt_Rtg_req. More... | |
struct | zb_zdo_mgmt_rtg_resp_s |
Response for Mgmt_Rtg_rsp. More... | |
struct | zb_zdo_routing_table_record_s |
RoutingTableList Record Format for mgmt_rtg_resp. More... | |
struct | zb_zdo_mgmt_bind_param_s |
Parameters for Mgmt_Bind_req. More... | |
struct | zb_zdo_mgmt_bind_req_s |
Request for Mgmt_Bind_req. More... | |
struct | zb_zdo_mgmt_bind_resp_s |
Response for Mgmt_Bind_rsp. More... | |
struct | zb_zdo_binding_table_record_s |
BindingTableList Record Format for mgmt_bind_resp. See ZB spec, Table 2.131. More... | |
struct | zb_zdo_bind_req_param_s |
Parameters for Bind_req API call. More... | |
struct | zb_zdo_bind_req_head_s |
Bind_req request head send to the remote. More... | |
struct | zb_zdo_bind_req_tail_1_s |
Bind_req request tail 1st variant send to the remote. More... | |
struct | zb_zdo_bind_req_tail_2_s |
Bind_req request tail 2nd variant send to the remote. More... | |
struct | zb_zdo_bind_resp_s |
Response by BibdReq. More... | |
struct | zb_zdo_mgmt_leave_param_s |
Request for Mgmt_Leave_req. More... | |
struct | zb_zdo_mgmt_leave_req_s |
struct | zb_zdo_mgmt_leave_res_s |
Response for Mgmt_Leave_rsp. More... | |
struct | zb_zdo_end_device_bind_req_head_s |
End_Device_Bind_req command head. More... | |
struct | zb_zdo_end_device_bind_req_tail_s |
End_Device_Bind_req command head. More... | |
struct | zb_end_device_bind_req_param_s |
Parameters for End_Device_Bind_req. More... | |
struct | zb_zdo_end_device_bind_resp_s |
Response from End_Device_Bind_req. More... | |
struct | zb_zdo_mgmt_permit_joining_req_s |
Parameters for Mgmt_Permit_Joining_req. More... | |
struct | zb_zdo_mgmt_permit_joining_req_param_s |
Parameters for zb_zdo_mgmt_permit_joining_req. More... | |
struct | zb_zdo_mgmt_permit_joining_resp_s |
Response from zb_zdo_mgmt_permit_joining_req. More... | |
struct | zb_zdo_not_supported_resp_s |
Not Supported Response. More... | |
struct | zb_zdo_device_annce_s |
struct | zb_nlme_leave_indication_s |
Macros | |
#define | ZB_ZDO_RECORD_SET_DEVICE_TYPE(var, type) ( var &= ~3, var |= type ) |
#define | ZB_ZDO_RECORD_GET_DEVICE_TYPE(var) ( var & 3 ) |
#define | ZB_ZDO_RECORD_SET_RX_ON_WHEN_IDLE(var, type) ( var &= ~0xC, var |= (type << 2) ) |
#define | ZB_ZDO_RECORD_GET_RX_ON_WHEN_IDLE(var) ( (var & 0xC) >> 2 ) |
#define | ZB_ZDO_RECORD_SET_RELATIONSHIP(var, type) ( var &= ~0x70, var |= (type << 4) ) |
#define | ZB_ZDO_RECORD_GET_RELATIONSHIP(var) ( (var & 0x70) >> 4 ) |
#define | ZB_ZDO_RTG_SET_STATUS(var, type) ( var &= ~3, var |= type ) |
#define | ZB_ZDO_RTG_GET_STATUS(var) ( var & 7 ) |
#define | ZB_ZDO_RTG_SET_MEM_CONSTRAINED(var, type) ( var &= ~0x08, var |= (type << 3) ) |
#define | ZB_ZDO_RTG_GET_MEM_CONSTRAINED(var) ( (var & 0x08) >> 3 ) |
#define | ZB_ZDO_RTG_SET_MANY_TO_ONE(var, type) ( var &= ~0x10, var |= (type << 4) ) |
#define | ZB_ZDO_RTG_GET_MANY_TO_ONE(var) ( (var & 0x10) >> 4 ) |
#define | ZB_ZDO_RTG_SET_ROUTE_RECORD_REQUIRED(var, type) ( var &= ~0x20, var |= (type << 5) ) |
#define | ZB_ZDO_RTG_GET_ROUTE_RECORD_REQUIRED(var) ( (var & 0x20) >> 5 ) |
#define ZB_ZDO_RECORD_GET_DEVICE_TYPE | ( | var | ) | ( var & 3 ) |
Get device type of neighbor table record.
var | - neighbor table record type_flags |
#define ZB_ZDO_RECORD_GET_RELATIONSHIP | ( | var | ) | ( (var & 0x70) >> 4 ) |
Get relationship of neighbor table record.
var | - neighbor table record type_flags |
#define ZB_ZDO_RECORD_GET_RX_ON_WHEN_IDLE | ( | var | ) | ( (var & 0xC) >> 2 ) |
Get RxOnWhenIdle of neighbor table record.
var | - neighbor table record type_flags |
#define ZB_ZDO_RECORD_SET_DEVICE_TYPE | ( | var, | |
type | |||
) | ( var &= ~3, var |= type ) |
Set device type of neighbor table record to type 'type': bits 0 - 1, mask 0x3;
var | - neighbor table record type_flags |
type | - Zigbee device type value |
#define ZB_ZDO_RECORD_SET_RELATIONSHIP | ( | var, | |
type | |||
) | ( var &= ~0x70, var |= (type << 4) ) |
Set relationship attribute of neighbor table record to type 'type': bits 4 - 6, mask 0x70;
var | - neighbor table record type_flags |
type | - Zigbee relationship value |
#define ZB_ZDO_RECORD_SET_RX_ON_WHEN_IDLE | ( | var, | |
type | |||
) | ( var &= ~0xC, var |= (type << 2) ) |
Set RxOnWhenIdle attribute of neighbor table record to type 'type': bits 2 - 3, mask 0xC;
var | - neighbor table record type_flags |
type | - RxOnWhenIdle value |
typedef struct zb_end_device_bind_req_param_s zb_end_device_bind_req_param_t |
Parameters for End_Device_Bind_req.
typedef struct zb_nlme_leave_indication_s zb_nlme_leave_indication_t |
Arguments of the NLME-LEAVE.indication routine.
typedef struct zb_zdo_bind_req_head_s zb_zdo_bind_req_head_t |
Bind_req request head send to the remote.
typedef struct zb_zdo_bind_req_param_s zb_zdo_bind_req_param_t |
Parameters for Bind_req API call.
typedef struct zb_zdo_bind_req_tail_1_s zb_zdo_bind_req_tail_1_t |
Bind_req request tail 1st variant send to the remote.
typedef struct zb_zdo_bind_req_tail_2_s zb_zdo_bind_req_tail_2_t |
Bind_req request tail 2nd variant send to the remote.
typedef struct zb_zdo_device_annce_s zb_zdo_device_annce_t |
Parameters of Device_annce primitive.
To be put into buffer as data (means - after space alloc).
End_Device_Bind_req command head.
End_Device_Bind_req command head.
typedef struct zb_zdo_end_device_bind_resp_s zb_zdo_end_device_bind_resp_t |
Response from End_Device_Bind_req.
typedef struct zb_zdo_mgmt_bind_param_s zb_zdo_mgmt_bind_param_t |
Parameters for Mgmt_Bind_req.
typedef struct zb_zdo_mgmt_bind_req_s zb_zdo_mgmt_bind_req_t |
Request for Mgmt_Bind_req.
typedef struct zb_zdo_mgmt_bind_resp_s zb_zdo_mgmt_bind_resp_t |
Response for Mgmt_Bind_rsp.
typedef struct zb_zdo_mgmt_leave_param_s zb_zdo_mgmt_leave_param_t |
Request for Mgmt_Leave_req.
Problem in the specification: in 2.4.3.3.5 Mgmt_Leave_req only one DeviceAddress exists. But, in such case it is impossible to satisfy 2.4.3.3.5.1: "The Mgmt_Leave_req is generated from a Local Device requesting that a Remote Device leave the network or to request that another device leave the network." Also, in the PRO TC document, 14.2TP/NWK/BV-04 ZR-ZDO-APL RX Join/Leave is following note: "gZC sends Mgmt_Leave.request with DevAddr=all zero, DstAddr=ZR"
typedef struct zb_zdo_mgmt_leave_req_s zb_zdo_mgmt_leave_req_t |
Request for Mgmt_Leave_req.
typedef struct zb_zdo_mgmt_leave_res_s zb_zdo_mgmt_leave_res_t |
Response for Mgmt_Leave_rsp.
typedef struct zb_zdo_mgmt_lqi_param_s zb_zdo_mgmt_lqi_param_t |
Parameters for Mgmt_Lqi_req.
typedef struct zb_zdo_mgmt_lqi_req_s zb_zdo_mgmt_lqi_req_t |
Request for Mgmt_Lqi_req.
typedef struct zb_zdo_mgmt_lqi_resp_s zb_zdo_mgmt_lqi_resp_t |
Response for Mgmt_Lqi_rsp.
typedef struct zb_zdo_mgmt_permit_joining_req_s zb_zdo_mgmt_permit_joining_req_t |
Parameters for Mgmt_Permit_Joining_req.
typedef struct zb_zdo_mgmt_rtg_param_s zb_zdo_mgmt_rtg_param_t |
Parameters for Mgmt_Rtg_req.
typedef struct zb_zdo_mgmt_rtg_req_s zb_zdo_mgmt_rtg_req_t |
Request for Mgmt_Rtg_req.
typedef struct zb_zdo_mgmt_rtg_resp_s zb_zdo_mgmt_rtg_resp_t |
Response for Mgmt_Rtg_rsp.
zb_uint8_t zb_end_device_bind_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
sends 2.4.3.2.1 End_Device_Bind_req command
param | - index of buffer with request |
cb | - user's function to call when got response from the remote. |
void zb_zdo_add_group_req | ( | zb_uint8_t | param | ) |
ZDO interface for ADD-GROUP.request.
Note that zb_apsme_add_group_request does not call confirm callback.
param | - (in/out) buffer with parameters |
Example
See tp_pro_bv-46 sample
zb_uint8_t zb_zdo_bind_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Bind_req request.
param | - index of buffer with request. zb_apsme_binding_req_s |
cb | - user's function to call when got response from the remote. zb_zdo_bind_resp_s |
Example:
See tp_zdo_bv-12 sample
zb_bool_t zb_zdo_find_bind_src | ( | zb_uint8_t | src_end, |
zb_uint16_t | cluster_id | ||
) |
Checks existance of bind table entries with selected endpoint and cluster ID.
src_end | - source endpoint |
cluster_id | - source cluster ID |
void zb_zdo_get_group_membership_req | ( | zb_uint8_t | param | ) |
ZDO interface for ZCL Get Group Membership Command.
param | - (in/out) buffer with parameters |
See aps_group_management sample
zb_uint8_t zb_zdo_mgmt_bind_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Mgmt_Bind_req request.
param | reference to the buffer to put request data to. |
cb | callback to be called on operation finish. |
See zdo_binding sample
zb_uint8_t zb_zdo_mgmt_lqi_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends 2.4.3.3.2 Mgmt_Lqi_req.
param | - index of buffer with Lqi request parameters. zb_zdo_mgmt_lqi_param_s |
cb | - user's function to call when got response from the remote. |
Example:
See zdpo_lqi sample
zb_uint8_t zb_zdo_mgmt_nwk_update_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Performs Mgmt_NWK_Update_req request.
param | - index of buffer with call parameters. Parameters mut be put into buffer as parameters. zb_zdo_mgmt_nwk_update_req_s |
cb | - user's function to call when got response from the remote. zb_zdo_mgmt_nwk_update_notify_hdr_s |
Example:
See TP_PRO_BV-37 sample
zb_uint8_t zb_zdo_mgmt_permit_joining_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
sends 2.4.3.3.7 Mgmt_Permit_Joining_req
param | - index of buffer with request |
cb | - user's function to call when got response from the remote. |
See zdo_permit_joing sample
zb_uint8_t zb_zdo_mgmt_rtg_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Mgmt_Rtg_req request.
param | reference to the buffer to put request data to. |
cb | callback to be called on operation finish. |
See zdo_rtg sample
void zb_zdo_remove_all_groups_req | ( | zb_uint8_t | param | ) |
ZDO interface for REMOVE-ALL-GROUPS.request.
param | - (in/out) buffer with parameters |
See aps_group_management sample
void zb_zdo_remove_group_req | ( | zb_uint8_t | param | ) |
ZDO interface for REMOVE-GROUP.request.
param | - (in/out) buffer with parameters void group_remove_conf1(zb_uint8_t param)
{
zb_buf_t *buf = ZB_BUF_FROM_REF(param);
zb_apsme_remove_group_req_t *req = ZB_GET_BUF_PARAM(ZB_BUF_FROM_REF(param), zb_apsme_add_group_req_t);
zb_uint16_t grp_addr = req->group_address;
{
TRACE_MSG(TRACE_APS1, "[1] Remove from group %hd with endpoint %hd - confirm", (FMT__H_H, req->group_address, req->endpoint));
zb_buf_reuse(buf);
req = ZB_GET_BUF_PARAM(buf, zb_apsme_remove_group_req_t);
req->group_address = grp_addr;
req->endpoint = 0xEF;
ZDO_START_ROUTINE_WITH_CALLBACK(param, zb_zdo_remove_group_req, group_remove_conf2);
}
}
|
zb_uint8_t zb_zdo_unbind_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Unbind_req request.
param | - index of buffer with request. zb_zdo_bind_req_param_s |
cb | - user's function to call when got response from the remote. zb_zdo_bind_resp_s |
Example:
See tp_aps_bv-23-i, tp_zdo_bv-12 samples
void zdo_mgmt_bind_resp | ( | zb_uint8_t | param | ) |
Sends 2.4.4.3.4 Mgmt_Bind_rsp.
param | - index of buffer with Mgmt_Bind request |
zb_uint8_t zdo_mgmt_leave_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Mgmt_Leave_req.
param | - index of buffer with Lqi request parameters. zb_zdo_mgmt_leave_param_s |
cb | - user's function to call when got response from the remote. |
Example:
See nwk_leave sample