DrandC.nc.~1.5.~
上传用户:joranyuan
上传日期:2022-06-23
资源大小:3306k
文件大小:1k
- includes DrandMSG;
- configuration DrandC {
- provides{
- interface Drand;
- interface StdControl;
- }
- }
- implementation {
- components DrandM, GenericComm as Comm, SClockC, TimerC;
- #ifdef LDEBUG
- components LedsC;
- #endif
- Drand = DrandM;
- StdControl = DrandM;
- DrandM.roundTimer -> TimerC.Timer[unique("Timer")];
- DrandM.reXTimer -> TimerC.Timer[unique("Timer")];
- #ifdef LDEBUG
- DrandM.Leds -> LedsC;
- #endif
- DrandM.SendHelloMsg -> Comm.SendMsg[AM_HELLO];
- DrandM.ReceiveHelloMsg -> Comm.ReceiveMsg[AM_HELLO];
- DrandM.SendRequestMsg -> Comm.SendMsg[AM_REQUEST];
- DrandM.ReceiveRequestMsg -> Comm.ReceiveMsg[AM_REQUEST];
- DrandM.SendRejectMsg -> Comm.SendMsg[AM_REJECT];
- DrandM.ReceiveRejectMsg -> Comm.ReceiveMsg[AM_REJECT];
- DrandM.SendReleaseMsg -> Comm.SendMsg[AM_RELEASE];
- DrandM.ReceiveReleaseMsg -> Comm.ReceiveMsg[AM_RELEASE];
- DrandM.SendTwoHopMsg -> Comm.SendMsg[AM_TWOHOP];
- DrandM.ReceiveTwoHopMsg -> Comm.ReceiveMsg[AM_TWOHOP];
- DrandM.SendGrantMsg -> Comm.SendMsg[AM_GRANT];
- DrandM.ReceiveGrantMsg -> Comm.ReceiveMsg[AM_GRANT];
- DrandM.SendReportMsg -> Comm.SendMsg[AM_REPORT];
- DrandM.ReceiveReportMsg -> Comm.ReceiveMsg[AM_REPORT];
-
- DrandM.SendFrameMsg -> Comm.SendMsg[AM_FRAME];
- DrandM.ReceiveFrameMsg -> Comm.ReceiveMsg[AM_FRAME];
- DrandM.SClock -> SClockC;
- }