📄 datasendexample.nc
字号:
/**
* @author IPP HURRAY http://www.hurray.isep.ipp.pt/art-wise
* @author Andre Cunha
*/
includes datasentexample;
includes phy_const;
includes mac_const;
includes mac_enumerations;
includes phy_enumerations;
includes frame_format;
includes mac_func;
includes PrintfUART;
includes nwl_func;
configuration DataSendExample {
}
implementation
{
components Main,
DataSendExampleM,
LedsC,
TimerC,
SimpleTime,
Mac as Mac_control;
/*StdControl*/
Main.StdControl -> DataSendExampleM;
DataSendExampleM.Mac_control ->Mac_control;
DataSendExampleM.Leds->LedsC;
DataSendExampleM.Timer ->TimerC.Timer[unique("Timer")];
DataSendExampleM.Timer_send ->TimerC.Timer[unique("Timer")];
//declaration of sap
DataSendExampleM.MLME_START -> Mac_control.MLME_START;
DataSendExampleM.MLME_ASSOCIATE->Mac_control.MLME_ASSOCIATE;
DataSendExampleM.MLME_DISASSOCIATE->Mac_control.MLME_DISASSOCIATE;
DataSendExampleM.MLME_SYNC -> Mac_control.MLME_SYNC;
DataSendExampleM.MLME_SYNC_LOSS -> Mac_control.MLME_SYNC_LOSS;
DataSendExampleM.MLME_RESET -> Mac_control.MLME_RESET;
DataSendExampleM.MLME_SCAN -> Mac_control.MLME_SCAN;
DataSendExampleM.MLME_BEACON_NOTIFY -> Mac_control.MLME_BEACON_NOTIFY;
DataSendExampleM.MLME_COMM_STATUS -> Mac_control.MLME_COMM_STATUS;
DataSendExampleM.MLME_GET -> Mac_control.MLME_GET;
DataSendExampleM.MLME_SET -> Mac_control.MLME_SET;
DataSendExampleM.MLME_GTS -> Mac_control.MLME_GTS;
DataSendExampleM.MLME_POLL -> Mac_control.MLME_POLL;
DataSendExampleM.MCPS_DATA ->Mac_control.MCPS_DATA;
DataSendExampleM.MCPS_PURGE -> Mac_control.MCPS_PURGE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -