コード例 #1
0
ファイル: Port.cs プロジェクト: kihwanoh/SiRFLive
 private void Init()
 {
     if (Environment.OSVersion.Platform != PlatformID.WinCE)
     {
         this.m_CommAPI = new WinCommAPI();
     }
     else
     {
         this.m_CommAPI = new CECommAPI();
     }
     this.closeEvent   = this.m_CommAPI.CreateEvent(true, false, this.closeEventName);
     this.rxFIFO       = new Queue(this.rxBufferSize);
     this.txBuffer     = new byte[this.txBufferSize];
     this.portSettings = new DetailedPortSettings();
 }
コード例 #2
0
ファイル: Port.cs プロジェクト: SHAREVIEW/obdgauge
        private void Init()
        {
            // create the API class based on the target
            if (System.Environment.OSVersion.Platform != PlatformID.WinCE)
            {
                m_CommAPI = new IO.Serial.WinCommAPI();
            }
            else
            {
                m_CommAPI = new IO.Serial.CECommAPI();
            }

            // create a system event for synchronizing Closing
            closeEvent = m_CommAPI.CreateEvent(true, false, closeEventName);

            rxFIFO       = new Queue(rxBufferSize);
            txBuffer     = new byte[txBufferSize];
            portSettings = new DetailedPortSettings();
        }
コード例 #3
0
ファイル: Port.cs プロジェクト: boblucas/Miller
        private void Init()
        {
            // create the API class based on the target
            if (System.Environment.OSVersion.Platform != PlatformID.WinCE)
                m_CommAPI=new IO.Serial.WinCommAPI();
            else
                m_CommAPI=new IO.Serial.CECommAPI();

            // create a system event for synchronizing Closing
            closeEvent = m_CommAPI.CreateEvent(true, false, closeEventName);

            rxFIFO = new Queue(rxBufferSize);
            txBuffer = new byte[txBufferSize];
            portSettings = new DetailedPortSettings();
        }
コード例 #4
0
ファイル: Port.cs プロジェクト: facchinm/SiRFLive
 private void Init()
 {
     if (Environment.OSVersion.Platform != PlatformID.WinCE)
     {
         this.m_CommAPI = new WinCommAPI();
     }
     else
     {
         this.m_CommAPI = new CECommAPI();
     }
     this.closeEvent = this.m_CommAPI.CreateEvent(true, false, this.closeEventName);
     this.rxFIFO = new Queue(this.rxBufferSize);
     this.txBuffer = new byte[this.txBufferSize];
     this.portSettings = new DetailedPortSettings();
 }