3 writes to commTimeouts
System (3)
sys\system\io\ports\SerialStream.cs (3)
448
if (UnsafeNativeMethods.SetCommTimeouts(_handle, ref
commTimeouts
) == false)
556
if (UnsafeNativeMethods.SetCommTimeouts(_handle, ref
commTimeouts
) == false)
751
if (UnsafeNativeMethods.SetCommTimeouts(_handle, ref
commTimeouts
) == false)
31 references to commTimeouts
System (31)
sys\system\io\ports\SerialStream.cs (31)
416
int constant =
commTimeouts
.ReadTotalTimeoutConstant;
427
int oldReadConstant =
commTimeouts
.ReadTotalTimeoutConstant;
428
int oldReadInterval =
commTimeouts
.ReadIntervalTimeout;
429
int oldReadMultipler =
commTimeouts
.ReadTotalTimeoutMultiplier;
433
commTimeouts
.ReadTotalTimeoutConstant = 0;
434
commTimeouts
.ReadTotalTimeoutMultiplier = 0;
435
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
439
commTimeouts
.ReadTotalTimeoutConstant = infiniteTimeoutConst;
440
commTimeouts
.ReadTotalTimeoutMultiplier = NativeMethods.MAXDWORD;
441
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
443
commTimeouts
.ReadTotalTimeoutConstant = value;
444
commTimeouts
.ReadTotalTimeoutMultiplier = NativeMethods.MAXDWORD;
445
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
450
commTimeouts
.ReadTotalTimeoutConstant = oldReadConstant;
451
commTimeouts
.ReadTotalTimeoutMultiplier = oldReadMultipler;
452
commTimeouts
.ReadIntervalTimeout = oldReadInterval;
544
int timeout =
commTimeouts
.WriteTotalTimeoutConstant;
553
int oldWriteConstant =
commTimeouts
.WriteTotalTimeoutConstant;
554
commTimeouts
.WriteTotalTimeoutConstant = ((value == SerialPort.InfiniteTimeout) ? 0 : value);
558
commTimeouts
.WriteTotalTimeoutConstant = oldWriteConstant;
732
commTimeouts
.ReadTotalTimeoutConstant = 0;
733
commTimeouts
.ReadTotalTimeoutMultiplier = 0;
734
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
738
commTimeouts
.ReadTotalTimeoutConstant = infiniteTimeoutConst;
739
commTimeouts
.ReadTotalTimeoutMultiplier = NativeMethods.MAXDWORD;
740
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
742
commTimeouts
.ReadTotalTimeoutConstant = readTimeout;
743
commTimeouts
.ReadTotalTimeoutMultiplier = NativeMethods.MAXDWORD;
744
commTimeouts
.ReadIntervalTimeout = NativeMethods.MAXDWORD;
747
commTimeouts
.WriteTotalTimeoutMultiplier = 0;
748
commTimeouts
.WriteTotalTimeoutConstant = ((writeTimeout == SerialPort.InfiniteTimeout) ? 0 : writeTimeout);