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

📄 phy.nc.svn-base

📁 802.15.4协议的实现
💻 SVN-BASE
字号:
/*
 * @author IPP HURRAY http://www.hurray.isep.ipp.pt/art-wise
 * @author Andre Cunha
 *
 */
includes phy_const;
includes phy_enumerations;
includes frame_format;

configuration Phy {
provides {
		  interface StdControl as Phy_control;
		  interface PD_DATA;
		  //PLME-SAP
		  interface PLME_ED;
		  interface PLME_CCA;
		  interface PLME_GET;
		  interface PLME_SET;
		  interface PLME_SET_TRX_STATE;
}


 }
implementation
{
  components Main,
  			 PhyM,
			 HPLCC2420C,
			 //TEMP VAR
			 LedsC;
			 //TEMP VAR
			 //TimerC;
			
			/*Temporarios*/
			//Main.StdControl -> TimerC;
			PhyM.Leds -> LedsC;
			  /*TIMER*/
			//PhyM.Timer -> TimerC.Timer[unique("Timer")];
			
  			/*StdControl*/
			Main.StdControl -> PhyM;
			Phy_control = PhyM;
			
			PhyM.HPL_Control->HPLCC2420C;
  
  			PD_DATA = PhyM;
  			//PLME-SAP
  			PLME_ED = PhyM;
  			PLME_CCA = PhyM;
			PLME_GET = PhyM;
			PLME_SET = PhyM;
			PLME_SET_TRX_STATE = PhyM;

			//HPLCC2420
			PhyM.HPLCC2420 -> HPLCC2420C.HPLCC2420;
			PhyM.HPLCC2420RAM -> HPLCC2420C.HPLCC2420RAM;
			PhyM.HPLCC2420FIFO -> HPLCC2420C.HPLCC2420FIFO;
}

⌨️ 快捷键说明

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