⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nwk_neighbor.c

📁 ucos在NEC平台下的移植
💻 C
字号:
//#pragma  section @@DATA neighbor at 0xEAFF
#include "includes.h"

extern NWK_NIB nnib;
extern NWK_DIRECT_JOIN_INFO   nwkDirectJoinInfo;
extern MAC_ASSOCIATE_INDICATION_INFO macAssociateIndicationInfo;
//#ifndef NWK_OPT_RFD
NEIGHBOR_RECORD neighborTable[NEIGHBOR_TABLE_ENTRIES];
MAP_ENTRY macAddressTable[NWK_MAX_CHILDREN_PER_PARENT ];

NEIGHBOR_TABLE_INFO     currentNeighborTableInfo;               // Info about the neighbor table and the node's children.
NEIGHBOR_RECORD        *pCurrentNeighborRecord;
NEIGHBOR_RECORD         currentNeighborRecord;                      // Node information.


//-------------------------------------------------------------------------------------------------------
// void neighborTableInit(void);
//
//  DESCRIPTION:
//     Init neighbor table. Called when Network is formed by PAN coordinator or when a Router successfully joins a network.
//     This also initializes the address table block.
//
//  PARAMETERS:
//      NO
//  RETURN VALUE:
//      NO
//-------------------------------------------------------------------------------------------------------
void neighborTableInit(void) {
	
	BYTE i;
	BYTE nullLongAddress[8];
	for(i=0;i<8;i++)
		{
             nullLongAddress[i]=0x00;
	       }
	
    
	for (i=0;i<NEIGHBOR_TABLE_ENTRIES;i++) 
		{
	 //姇晭簬N晥塛槑脴A棊

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -