nRF5 SDK for Thread and Zigbee v3.2.0
Data Structures | Macros | Typedefs | Enumerations | Functions
ZDO base constants and definitions

Data Structures

struct  zb_zdo_callback_info_s
 
struct  zb_zdo_default_resp_s
 

Macros

#define ZB_ZDO_INVALID_TSN   0xFF
 

Typedefs

typedef enum zb_zdp_status_e zb_zdp_status_t
 
typedef struct
zb_zdo_callback_info_s 
zb_zdo_callback_info_t
 
typedef struct
zb_zdo_default_resp_s 
zb_zdo_default_resp_t
 

Enumerations

enum  zb_zdp_status_e {
  ZB_ZDP_STATUS_SUCCESS = 0x00, ZB_ZDP_STATUS_INV_REQUESTTYPE = 0x80, ZB_ZDP_STATUS_DEVICE_NOT_FOUND = 0x81, ZB_ZDP_STATUS_INVALID_EP = 0x82,
  ZB_ZDP_STATUS_NOT_ACTIVE = 0x83, ZB_ZDP_STATUS_NOT_SUPPORTED = 0x84, ZB_ZDP_STATUS_TIMEOUT = 0x85, ZB_ZDP_STATUS_NO_MATCH = 0x86,
  ZB_ZDP_STATUS_NO_ENTRY = 0x88, ZB_ZDP_STATUS_NO_DESCRIPTOR = 0x89, ZB_ZDP_STATUS_INSUFFICIENT_SPACE = 0x8a, ZB_ZDP_STATUS_NOT_PERMITTED = 0x8b,
  ZB_ZDP_STATUS_TABLE_FULL = 0x8c, ZB_ZDP_STATUS_NOT_AUTHORIZED = 0x8d, ZB_ZDP_STATUS_TIMEOUT_BY_STACK = 0xff
}
 

Functions

zb_void_t zb_zdo_get_diag_data (zb_uint16_t short_address, zb_uint8_t *lqi, zb_int8_t *rssi)
 

Detailed Description

Typedef Documentation

ZDP status values (2.4.5 ZDP Enumeration Description)

Enumeration Type Documentation

ZDP status values (2.4.5 ZDP Enumeration Description)

Enumerator
ZB_ZDP_STATUS_SUCCESS 

The requested operation or transmission was completed successfully.

ZB_ZDP_STATUS_INV_REQUESTTYPE 

The supplied request type was invalid.

ZB_ZDP_STATUS_DEVICE_NOT_FOUND 

The requested device did not exist on a device following a child descriptor request to a parent.

ZB_ZDP_STATUS_INVALID_EP 

The supplied endpoint was equal to 0x00 or between 0xf1 and 0xff.

ZB_ZDP_STATUS_NOT_ACTIVE 

The requested endpoint is not described by a simple descriptor.

ZB_ZDP_STATUS_NOT_SUPPORTED 

The requested optional feature is not supported on the target device.

ZB_ZDP_STATUS_TIMEOUT 

A timeout has occurred with the requested operation.

ZB_ZDP_STATUS_NO_MATCH 

The end device bind request was unsuccessful due to a failure to match any suitable clusters.

ZB_ZDP_STATUS_NO_ENTRY 

The unbind request was unsuccessful due to the coordinator or source device not having an entry in its binding table to unbind.

ZB_ZDP_STATUS_NO_DESCRIPTOR 

A child descriptor was not available following a discovery request to a parent.

ZB_ZDP_STATUS_INSUFFICIENT_SPACE 

The device does not have storage space to support the requested operation.

ZB_ZDP_STATUS_NOT_PERMITTED 

The device is not in the proper state to support the requested operation.

ZB_ZDP_STATUS_TABLE_FULL 

The device does not have table space to support the operation.

ZB_ZDP_STATUS_NOT_AUTHORIZED 

The permissions configuration table on the target indicates that the request is not authorized from this device.

ZB_ZDP_STATUS_TIMEOUT_BY_STACK 

Custom internal statuses.

Function Documentation

zb_void_t zb_zdo_get_diag_data ( zb_uint16_t  short_address,
zb_uint8_t lqi,
zb_int8_t rssi 
)

Obtains last known LQI and RSSI values from device with specified short address

Parameters
short_address- address of device
lqi[in] - pointer to zb_uint8_t variable to store lqi value
rssi[in] - pointer to zb_uint8_t variable to store rssi value

Example:

zb_uint8_t lqi, rssi;
zb_zdo_get_diag_data(0x0000, &lqi, &rssi);

Documentation feedback | Developer Zone | Subscribe | Updated