コード例 #1
0
ファイル: Program.cs プロジェクト: marzlia/CXPortal
 public static void Main()
 {
     hostAccess = new NetServer();
     pc         = new PulseCounter(currentOperatingMode);
     hostAccess.ProcessCommandEvent += new NetServer.ProcessCommandEventHandler(hostAccess_ProcessCommandEvent);
     Reset  = new OutputPort(USBizi.Pin.IO57, true);
     Preset = new OutputPort(USBizi.Pin.IO59, true);
     Configure();
     adaptiveSpeedMsgTimer = new Timer(new TimerCallback(AdaptiveSpeedTimerCallback), null, Timeout.Infinite, Timeout.Infinite);
     hostAccess.Start();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: BdGL3/CXPortal
 public static void Main()
 {
     hostAccess = new NetServer();
     pc = new PulseCounter(currentOperatingMode);
     hostAccess.ProcessCommandEvent += new NetServer.ProcessCommandEventHandler(hostAccess_ProcessCommandEvent);
     Reset = new OutputPort(USBizi.Pin.IO57, true);
     Preset = new OutputPort(USBizi.Pin.IO59, true);
     Configure();
     adaptiveSpeedMsgTimer = new Timer(new TimerCallback(AdaptiveSpeedTimerCallback), null, Timeout.Infinite, Timeout.Infinite);
     hostAccess.Start();          
 }