Developing with ZBOSS for Zigbee
|
Data Structures | |
struct | zb_nwk_nbr_iterator_cb_params_s |
struct | zb_nwk_nbr_iterator_entry_s |
Macros | |
#define | ZB_NWK_IS_ADDRESS_BROADCAST(addr) ( (addr) >= ZB_NWK_BROADCAST_RESERVED ) |
Check that address is broadcast. More... | |
#define | ZB_NWK_NBR_ITERATOR_INDEX_EOT 0xFFFFU /*! Index, indicating that the iterator reached boundaries of the neighbour table. */ |
Typedefs | |
typedef struct zb_nwk_nbr_iterator_cb_params_s | zb_nwk_nbr_iterator_params_t |
typedef struct zb_nwk_nbr_iterator_entry_s | zb_nwk_nbr_iterator_entry_t |
Functions | |
zb_uint16_t | zb_nwk_get_parent (void) |
zb_ret_t | zb_nwk_nbr_iterator_next (zb_uint8_t bufid, zb_callback_t cb) |
#define ZB_NWK_IS_ADDRESS_BROADCAST | ( | addr | ) | ( (addr) >= ZB_NWK_BROADCAST_RESERVED ) |
Check that address is broadcast.
addr | - 16-bit address |
zb_uint16_t zb_nwk_get_parent | ( | void | ) |
Get short address of the parent node.
zb_ret_t zb_nwk_nbr_iterator_next | ( | zb_uint8_t | bufid, |
zb_callback_t | cb | ||
) |
Read the next active entry from the NWK neighbour table. The index indicates the point, from which the entry will be searched in the neighbour table. This API returns neighbour table entry inisde the buffer payload, that are connected to the same PAN and their entries are not marked as stale or timed out. The index of the entry is passed as buffer parameters.
bufid | The ZBOSS buffer, containing arguments defined by zb_nwk_nbr_iterator_params_t structure, passed as buffer parameters. |
cb | Callback function, that will get the next neighbour table entry. |