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