macc.nc

来自「IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码」· NC 代码 · 共 57 行

NC
57
字号
/**	 */#include "ZBTYPES.h"#include "ZBCONSTANT.h"#include "ZBCONFIG.h"#include "ZBMAC.h"configuration MacC {  provides interface SplitControl;  provides interface MldeSap;  provides interface MlmeSap;}implementation {	components MacP;	SplitControl = MacP;	MldeSap = MacP;	MlmeSap = MacP;  	components MainC;	MainC.SoftwareInit -> MacP;  	components AlarmMultiplexC as Alarm;	MacP.MacTimer -> Alarm;	MainC.SoftwareInit -> Alarm;    	components MemC;	MacP.Mem -> MemC;	components new ZbCacheC(mac_send_cache_t, 4) as SendCacheC;  	components new ZbCacheC(mac_receive_cache_t, 4) as ReceiveCacheC;			MacP.ReceiveCache -> ReceiveCacheC;	MacP.SendCache -> SendCacheC;	   	components PhyC;		MacP.PhyControl -> PhyC;	MacP.PdSap -> PhyC;	MacP.PlmeSap -> PhyC;  	components LedsC;	MacP.Leds -> LedsC;    }

⌨️ 快捷键说明

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