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(); }
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(); }
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(); }