Modules | |
NWK Informational Base | |
NWK address and address translation table | |
Data Structures | |
struct | zb_nwk_pib_cache_s |
PIB cache | |
typedef struct zb_nwk_pib_cache_s | zb_nwk_pib_cache_t |
PIB cache mirror | |
After that values modified in NWK or upper, must sync it with MAC using MLME-SET. | |
zb_nwk_pib_cache_t * | zb_nwk_get_pib_cache () |
zb_nib_t * | zb_nwk_get_nib () |
#define | ZB_PIB_CACHE() zb_nwk_get_pib_cache() |
#define | ZB_PIBCACHE_NETWORK_ADDRESS() ZB_PIB_CACHE()->mac_short_address |
#define | ZB_PIBCACHE_PAN_ID() ZB_PIB_CACHE()->mac_pan_id |
#define | ZB_PIBCACHE_EXTENDED_ADDRESS() ZB_PIB_CACHE()->mac_extended_address |
#define | ZB_PIBCACHE_RX_ON_WHEN_IDLE() ZB_PIB_CACHE()->mac_rx_on_when_idle |
#define | ZB_PIBCACHE_ASSOCIATION_PERMIT() ZB_PIB_CACHE()->mac_association_permit |
#define | ZB_PIBCACHE_CURRENT_CHANNEL() ZB_PIB_CACHE()->phy_current_channel |
#define | ZB_NIB() zb_nwk_get_nib() |
#define ZB_MAC_LQI_UNDEFINED 0 |
LQI undefined value
#define ZB_MAC_MAX_CHANNEL_NUMBER 26 |
Maximal number of the channels
#define ZB_MAC_RSSI_UNDEFINED 0x7f |
RSSI undefined value
#define ZB_MAC_START_CHANNEL_NUMBER 11 |
Number of the first channel
#define ZB_MAC_SUPPORTED_CHANNELS (ZB_MAC_MAX_CHANNEL_NUMBER - ZB_MAC_START_CHANNEL_NUMBER + 1) |
Total number of supported channels
#define ZB_NIB | ( | ) | zb_nwk_get_nib() |
Macro used to access NWK Information Base.
#define ZB_NWK_IS_ADDRESS_BROADCAST | ( | addr | ) | ( (addr) >= ZB_NWK_BROADCAST_RESERVED ) |
Check that address is broadcast.
addr | - 16-bit address |
#define ZB_PIB_CACHE | ( | ) | zb_nwk_get_pib_cache() |
Macro used to access PIB cache.
#define ZB_PIBCACHE_ASSOCIATION_PERMIT | ( | ) | ZB_PIB_CACHE()->mac_association_permit |
Cached value of AssociationPermit attribute
#define ZB_PIBCACHE_CURRENT_CHANNEL | ( | ) | ZB_PIB_CACHE()->phy_current_channel |
Cached value of CurrentChannel attribute
#define ZB_PIBCACHE_EXTENDED_ADDRESS | ( | ) | ZB_PIB_CACHE()->mac_extended_address |
Cached value of device extended address
#define ZB_PIBCACHE_NETWORK_ADDRESS | ( | ) | ZB_PIB_CACHE()->mac_short_address |
Cached value of device network address
#define ZB_PIBCACHE_PAN_ID | ( | ) | ZB_PIB_CACHE()->mac_pan_id |
Cached value of device PAN ID
#define ZB_PIBCACHE_RX_ON_WHEN_IDLE | ( | ) | ZB_PIB_CACHE()->mac_rx_on_when_idle |
Cached value of RxOnWhenIdle attribute
typedef enum zb_nwk_device_type_e zb_nwk_device_type_t |
Network device type
typedef struct zb_nwk_pib_cache_s zb_nwk_pib_cache_t |
Data structure used to cache frequently used PIB attributes.
Useful whe using alien MAC layer without direct access to PIB: blockable "get" interface to PIB is too complex and slow.
enum zb_nwk_device_type_e |
enum zb_nwk_leave_type_e |
zb_nib_t* zb_nwk_get_nib | ( | ) |
Function used to access NWK Information Base.
zb_nwk_pib_cache_t* zb_nwk_get_pib_cache | ( | ) |
Function used to access PIB cache.