network.h

来自「motorola jw32 usb 源码」· C头文件 代码 · 共 108 行

H
108
字号
/*********************************************************************
 *
 *                  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:       BYTE 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:        BYTE 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:        BYTE 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 + =
减小字号Ctrl + -
显示快捷键?