3 writes to _handle
System.IO.Ports (3)
System\IO\Ports\SerialStream.Unix.cs (3)
611_handle = tempHandle; 667_handle = null; 731_handle = null;
39 references to _handle
System.IO.Ports (39)
System\IO\Ports\SerialStream.cs (4)
37get { return (_handle != null); } 47get { return (_handle != null); } 52get { return (_handle != null); } 105if (_handle == null)
System\IO\Ports\SerialStream.Unix.cs (35)
101if (_handle == null) { 115if (_handle == null) { 134return Interop.Termios.TermiosGetSpeed(_handle); 142if (Interop.Termios.TermiosSetSpeed(_handle, value) < 0) 161Interop.Termios.TermiosSendBreak(_handle, 0); 169get { return Interop.Termios.TermiosGetAvailableBytes(_handle, false); } 174get { return Interop.Termios.TermiosGetAvailableBytes(_handle, true); } 181int status = Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalDcd); 195int status = Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalCts); 209int status = Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalDsr); 223int status = Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalDtr); 234if (Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalDtr, value ? 1 : 0) != 0) 243int status = Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalRts); 267if (Interop.Termios.TermiosGetSignal(_handle, Interop.Termios.Signals.SignalRts, value ? 1 : 0) != 0) 283if (Interop.Termios.TermiosReset(_handle, _baudRate, _dataBits, _stopBits, _parity, value) != 0) 300if (Interop.Termios.TermiosReset(_handle, _baudRate, value, _stopBits, _parity, _handshake) != 0) 318if (Interop.Termios.TermiosReset(_handle, _baudRate, _dataBits, _stopBits, value, _handshake) != 0) 335if (Interop.Termios.TermiosReset(_handle, _baudRate, _dataBits, value, _parity, _handshake) != 0) 371if (_handle == null) InternalResources.FileNotOpen(); 373Interop.Termios.TermiosDiscard(_handle, Interop.Termios.Queue.ReceiveQueue); 378if (_handle == null) InternalResources.FileNotOpen(); 380Interop.Termios.TermiosDiscard(_handle, Interop.Termios.Queue.SendQueue); 386if (_handle == null) InternalResources.FileNotOpen(); 392internal bool IsOpen => _handle != null; 401if (_handle == null) InternalResources.FileNotOpen(); 409Interop.Termios.TermiosDrain(_handle); 551_handle, 622if (Interop.Termios.TermiosReset(_handle, _baudRate, _dataBits, _stopBits, _parity, _handshake) != 0) 682Debug.Assert(_handle != null); 728if (_handle != null) 730_handle.Dispose(); 785int numBytes = Interop.Serial.Read(_handle, bufPtr, buff.Length); 818int numBytes = Interop.Serial.Write(_handle, bufPtr, buff.Length); 895Signals lastSignals = _pinChanged != null ? Interop.Termios.TermiosGetAllSignals(_handle) : Signals.Error; 997Signals current = Interop.Termios.TermiosGetAllSignals(_handle);