phy.nc.svn-base

来自「802.15.4协议的实现」· SVN-BASE 代码 · 共 59 行

SVN-BASE
59
字号
/*
 * @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 + =
减小字号Ctrl + -
显示快捷键?