Developing with ZBOSS
|
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_routing_table_record_s |
RoutingTableList Record Format for mgmt_rtg_resp. 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_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_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 ) |
Functions | |
zb_uint8_t | zb_zdo_mgmt_nwk_update_req (zb_uint8_t param, zb_callback_t cb) |
Performs Mgmt_NWK_Update_req request. More... | |
zb_uint8_t | zb_zdo_mgmt_lqi_req (zb_uint8_t param, zb_callback_t cb) |
Sends Mgmt_Lqi_req (see Zigbee spec 2.4.3.3.2) More... | |
zb_uint8_t | zdo_mgmt_leave_req (zb_uint8_t param, zb_callback_t cb) |
Sends Mgmt_Leave_req. More... | |
zb_uint8_t | zb_zdo_mgmt_permit_joining_req (zb_uint8_t param, zb_callback_t cb) |
sends Mgmt_Permit_Joining_req (See Zigbee spec 2.4.3.3.7) More... | |
#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_nlme_leave_indication_s zb_nlme_leave_indication_t |
Arguments of the NLME-LEAVE.indication routine.
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).
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.
zb_uint8_t zb_zdo_mgmt_lqi_req | ( | zb_uint8_t | param, |
zb_callback_t | cb | ||
) |
Sends Mgmt_Lqi_req (see Zigbee spec 2.4.3.3.2)
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 must 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 Mgmt_Permit_Joining_req (See Zigbee spec 2.4.3.3.7)
param | - Index of buffer with request |
cb | - user's function to call when got response from the remote. |
See onoff_server sample
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