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

📄 associationexample.nc

📁 Zigbee的nesc源码
💻 NC
字号:
/**
 * @author IPP HURRAY http://www.hurray.isep.ipp.pt/art-wise
 * @author Andre Cunha
 */
includes phy_const;
includes mac_const;
includes mac_enumerations;
includes phy_enumerations;
includes frame_format;
includes mac_func;
includes PrintfUART;
includes nwl_func;
includes associationexample;

 
configuration AssociationExample {

 }
implementation
{
  components Main,
			 AssociationExampleM,
			 LedsC,
			 TimerC,
			 SimpleTime,
			 Mac as Mac_control;
  			 
  /*StdControl*/
  Main.StdControl -> AssociationExampleM;
  
  	//Main.StdControl ->SimpleTime;
	//AssociationExampleM.Time ->SimpleTime;
  
  AssociationExampleM.Mac_control ->Mac_control;
  
  AssociationExampleM.Leds->LedsC;
  
  AssociationExampleM.Timer ->TimerC.Timer[unique("Timer")];
  
  AssociationExampleM.Send_Data_Timer->TimerC.Timer[unique("Timer")];
  
  //declaration of sap
  AssociationExampleM.MLME_START -> Mac_control.MLME_START;
  
  AssociationExampleM.MLME_ASSOCIATE->Mac_control.MLME_ASSOCIATE;
  AssociationExampleM.MLME_DISASSOCIATE->Mac_control.MLME_DISASSOCIATE;
  
  AssociationExampleM.MLME_SYNC -> Mac_control.MLME_SYNC;
  AssociationExampleM.MLME_SYNC_LOSS -> Mac_control.MLME_SYNC_LOSS;
  AssociationExampleM.MLME_RESET -> Mac_control.MLME_RESET;
  
  AssociationExampleM.MLME_SCAN -> Mac_control.MLME_SCAN;
  
  AssociationExampleM.MLME_BEACON_NOTIFY -> Mac_control.MLME_BEACON_NOTIFY;
  
  AssociationExampleM.MLME_COMM_STATUS -> Mac_control.MLME_COMM_STATUS;
  
  AssociationExampleM.MLME_GET -> Mac_control.MLME_GET;
  AssociationExampleM.MLME_SET -> Mac_control.MLME_SET;
  
  AssociationExampleM.MLME_GTS  -> Mac_control.MLME_GTS;
  
  AssociationExampleM.MCPS_DATA ->Mac_control.MCPS_DATA;
  AssociationExampleM.MCPS_PURGE -> Mac_control.MCPS_PURGE;

  
}

⌨️ 快捷键说明

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