📄 gtsmanagementexample.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 gtsmanagementexample;
configuration GTSManagementExample {
}
implementation
{
components Main,
GTSManagementExampleM,
LedsC,
TimerC,
SimpleTime,
Mac as Mac_control;
/*StdControl*/
Main.StdControl -> GTSManagementExampleM;
GTSManagementExampleM.Mac_control ->Mac_control;
GTSManagementExampleM.Leds->LedsC;
GTSManagementExampleM.Timer ->TimerC.Timer[unique("Timer")];
GTSManagementExampleM.Application_GTS_Traffic_Period_Timer->TimerC.Timer[unique("Timer")];
//declaration of sap
GTSManagementExampleM.MLME_START -> Mac_control.MLME_START;
GTSManagementExampleM.MLME_ASSOCIATE->Mac_control.MLME_ASSOCIATE;
GTSManagementExampleM.MLME_DISASSOCIATE->Mac_control.MLME_DISASSOCIATE;
GTSManagementExampleM.MLME_SYNC -> Mac_control.MLME_SYNC;
GTSManagementExampleM.MLME_SYNC_LOSS -> Mac_control.MLME_SYNC_LOSS;
GTSManagementExampleM.MLME_RESET -> Mac_control.MLME_RESET;
GTSManagementExampleM.MLME_SCAN -> Mac_control.MLME_SCAN;
GTSManagementExampleM.MLME_BEACON_NOTIFY -> Mac_control.MLME_BEACON_NOTIFY;
GTSManagementExampleM.MLME_COMM_STATUS -> Mac_control.MLME_COMM_STATUS;
GTSManagementExampleM.MLME_GET -> Mac_control.MLME_GET;
GTSManagementExampleM.MLME_SET -> Mac_control.MLME_SET;
GTSManagementExampleM.MLME_GTS -> Mac_control.MLME_GTS;
GTSManagementExampleM.MCPS_DATA ->Mac_control.MCPS_DATA;
GTSManagementExampleM.MCPS_PURGE -> Mac_control.MCPS_PURGE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -