?? network.h.bak
字號:
/*********************************************************************
*
* MFT Network layer
*
*********************************************************************
* FileName: mftMAC.h
* Processor: c51
* Company: chengdu MFT, Inc.
*
* Software License Agreement
*
*
* Author Date Comment
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* jiangchao 5/09/05 Rel 0.1
********************************************************************/
#include "public.h"
extern BYTE bIsNWKDiscovered;
#define NWKIsDiscovered() (bIsNWKDiscovered)
/*********************************************************************
* Function: void NWKFormStart(void)
*
* PreCondition: NWKDiscovery is successfully completed.
*
* Input: None
*
* Output: None
*
* Side Effects: None
*
* Overview: Selects PANID and establishes network
*
* Note: Available to coordinators only.
********************************************************************/
extern void NWKFormStart(void);
/*********************************************************************
* Function: BOOL NWKInitIsComplete(void)
*
* PreCondition: None
*
* Input: TRUE if NWK Coordinator is complete
* FALSE, otherwise
*
* Output: None
*
* Side Effects: None
*
* Overview: Performs coordinaor initialization process.
*
* Note: Available for coorindator only.
********************************************************************/
extern BYTE NWKInitIsComplete(void);
/*********************************************************************
* Function: BOOL NWKIsDiscoveryComplete(void)
*
* PreCondition: NWKStartDiscovery() is called
*
* Input: None
*
* Output: TRUE, if complete
* FALSE otherwise
* Use GetZError() to check for error.
*
* Side Effects: None
*
* Overview: Performs network discovery process.
*
* Note: None
********************************************************************/
extern byte NWKIsDiscoveryComplete(void);
/*********************************************************************
* Function: void NWKInit(void)
*
* PreCondition: None
*
* Input: None
*
* Output: None
*
* Side Effects: None
*
* Overview: Starts network discovery process
*
* Note: Available for coorindator only.
********************************************************************/
extern void NWKInit(void);
/*********************************************************************
* Function: BOOL NWKFormIsComplete()
*
* PreCondition: NWKDiscovery is successfully completed.
*
* Output: for device if join network success ,return TRUE,for coordinator,
directly return TRUE.
*
* Side Effects: None
*
* Overview: Selects PANID and establishes network
*
* Note: Available to coordinators only.
********************************************************************/
extern BYTE NWKFormIsComplete();
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -