17 references to StopBits
System (17)
sys\system\io\ports\SerialPort.cs (7)
45
private const
StopBits
defaultStopBits =
StopBits
.One;
69
private
StopBits
stopBits = defaultStopBits;
522
public
StopBits
StopBits
531
if (value <
StopBits
.One || value >
StopBits
.OnePointFive)
626
public SerialPort(string portName, int baudRate, Parity parity, int dataBits,
StopBits
stopBits)
sys\system\io\ports\SerialStream.cs (10)
496
internal
StopBits
StopBits
517
Debug.Assert(!(value <
StopBits
.One || value >
StopBits
.OnePointFive), "An invalid value was passed to StopBits");
520
if (value ==
StopBits
.One) nativeValue = (byte) NativeMethods.ONESTOPBIT;
521
else if (value ==
StopBits
.OnePointFive) nativeValue = (byte) NativeMethods.ONE5STOPBITS;
638
internal SerialStream(string portName, int baudRate, Parity parity, int dataBits,
StopBits
stopBits, int readTimeout, int writeTimeout, Handshake handshake,
1263
private void InitializeDCB(int baudRate, Parity parity, int dataBits,
StopBits
stopBits, bool discardNull)
1280
case
StopBits
.One:
1283
case
StopBits
.OnePointFive:
1286
case
StopBits
.Two: