oscopec.nc

来自「多跳路由的温度采集程序」· NC 代码 · 共 41 行

NC
41
字号
includes userdata;configuration OscopeC{  provides interface StdControl  as OscopeControl;  provides interface StdControl  as MultiControl;  provides interface Oscope[uint8_t channel];}implementation{  components OscopeM , GenericComm as Comm //,LedsC            , CC2420RadioC           , LQIMultiHopRouter as multihopM           ;     OscopeControl = OscopeM.StdControl;  MultiControl = multihopM.StdControl;  Oscope = OscopeM; // OscopeM.MultiControl ->multihopM.StdControl;  OscopeM.ResetCounterMsg -> Comm.ReceiveMsg[AM_OSCOPERESETMSG];/////////////////////////////////////////////////////////////  // OscopeM.Leds -> LedsC.Leds;  OscopeM.CC2420Control -> CC2420RadioC.CC2420Control;  OscopeM.MacControl -> CC2420RadioC.MacControl;  OscopeM.RouteControl -> multihopM.RouteControl;  OscopeM.Send -> multihopM.Send[AM_OSCOPEMSG];  multihopM.ReceiveMsg[AM_OSCOPEMSG] -> Comm.ReceiveMsg[AM_OSCOPEMSG];      }

⌨️ 快捷键说明

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