MultiHopTtestC.nc
上传用户:joranyuan
上传日期:2022-06-23
资源大小:3306k
文件大小:2k
- includes MultiHopTtestMSG;
- configuration MultiHopTtestC {
- }
- implementation {
- components Main, MultiHopTtestM, GenericCommPromiscuous as Comm,
- TimerC, WMEWMAMultiHopRouter as multihopM,
- CC1000ControlM, CC1000RadioIntM, RandomLFSR;
- #ifdef DRAND_ENABLE
- components GenericComm as Comm2, DrandC;
- #endif
- Main.StdControl -> multihopM.StdControl;
- Main.StdControl -> TimerC;
- #ifdef DRAND_ENABLE
- Main.StdControl -> Comm2; // need this for drand
- #endif
- Main.StdControl -> MultiHopTtestM.StdControl;
- #ifdef DRAND_ENABLE
- MultiHopTtestM.SubControl -> DrandC.StdControl;
- #endif
- MultiHopTtestM.RouteTimer -> TimerC.Timer[unique("Timer")];
- MultiHopTtestM.StatTimer -> TimerC.Timer[unique("Timer")];
- MultiHopTtestM.SendTimer -> TimerC.Timer[unique("Timer")];
- MultiHopTtestM.RouteControl -> multihopM;
- MultiHopTtestM.Send -> multihopM.Send[AM_MULTIHOP];
- MultiHopTtestM.Intercept -> multihopM.Intercept[AM_MULTIHOP];
- multihopM.ReceiveMsg[AM_MULTIHOP] -> Comm.ReceiveMsg[AM_MULTIHOP];
- MultiHopTtestM.RFset -> CC1000ControlM;
- #ifdef DRAND_ENABLE
- MultiHopTtestM.Drand -> DrandC.Drand;
- MultiHopTtestM.SetDrand -> CC1000RadioIntM;
- #endif
- MultiHopTtestM.ResetPower -> CC1000RadioIntM.ResetPower;
- MultiHopTtestM.GetPower_tx -> CC1000RadioIntM.GetPower_tx;
- MultiHopTtestM.GetPower_rx -> CC1000RadioIntM.GetPower_rx;
- MultiHopTtestM.GetPower_sp -> CC1000RadioIntM.GetPower_sp;
- MultiHopTtestM.GetDataSent -> CC1000RadioIntM.GetDataSent;
- MultiHopTtestM.ResetDataSent -> CC1000RadioIntM.ResetDataSent;
- #ifndef BMAC_ENABLE
- MultiHopTtestM.SetDrand -> CC1000RadioIntM;
- #endif
- MultiHopTtestM.Random -> RandomLFSR;
- }