C# Class System.IO.Ports.WinSerialStream

Inheritance: Stream, ISerialStream, IDisposable
Mostrar archivo Open project: runefs/Marvin

Public Methods

Method Description
Close ( ) : void
DiscardInBuffer ( ) : void
DiscardOutBuffer ( ) : void
Flush ( ) : void
GetSignals ( ) : SerialSignal
Read ( [ buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetAttributes ( int baud_rate, Parity parity, int data_bits, StopBits bits, Handshake hs ) : void
SetBreakState ( bool value ) : void
SetLength ( long value ) : void
SetSignal ( SerialSignal signal, bool value ) : void
WinSerialStream ( string port_name, int baud_rate, int data_bits, Parity parity, StopBits sb, bool dtr_enable, bool rts_enable, Handshake hs, int read_timeout, int write_timeout, int read_buffer_size, int write_buffer_size ) : System
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckDisposed ( ) : void
ClearCommError ( int handle, uint &errors, CommStat &stat ) : bool
CloseHandle ( int handle ) : bool
CreateFile ( string port_name, uint desired_access, uint share_mode, uint security_attrs, uint creation, uint flags, uint template ) : int
EscapeCommFunction ( int handle, uint flags ) : bool
GetCommModemStatus ( int handle, uint &flags ) : bool
GetCommState ( int handle, [ dcb ) : bool
GetOverlappedResult ( int handle, IntPtr overlapped, int &bytes_transfered, bool wait ) : bool
IDisposable ( ) : void
PurgeComm ( int handle, uint flags ) : bool
ReadFile ( int handle, byte buffer, int bytes_to_read, int &bytes_read, IntPtr overlapped ) : bool
ReportIOError ( string optional_arg ) : void
SetCommState ( int handle, DCB dcb ) : bool
SetCommTimeouts ( int handle, Timeouts timeouts ) : bool
SetupComm ( int handle, int read_buffer_size, int write_buffer_size ) : bool
WriteFile ( int handle, byte buffer, int bytes_to_write, int &bytes_written, IntPtr overlapped ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

DiscardInBuffer() public method

public DiscardInBuffer ( ) : void
return void

DiscardOutBuffer() public method

public DiscardOutBuffer ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

GetSignals() public method

public GetSignals ( ) : SerialSignal
return SerialSignal

Read() public method

public Read ( [ buffer, int offset, int count ) : int
buffer [
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetAttributes() public method

public SetAttributes ( int baud_rate, Parity parity, int data_bits, StopBits bits, Handshake hs ) : void
baud_rate int
parity Parity
data_bits int
bits StopBits
hs Handshake
return void

SetBreakState() public method

public SetBreakState ( bool value ) : void
value bool
return void

SetLength() public method

public SetLength ( long value ) : void
value long
return void

SetSignal() public method

public SetSignal ( SerialSignal signal, bool value ) : void
signal SerialSignal
value bool
return void

WinSerialStream() public method

public WinSerialStream ( string port_name, int baud_rate, int data_bits, Parity parity, StopBits sb, bool dtr_enable, bool rts_enable, Handshake hs, int read_timeout, int write_timeout, int read_buffer_size, int write_buffer_size ) : System
port_name string
baud_rate int
data_bits int
parity Parity
sb StopBits
dtr_enable bool
rts_enable bool
hs Handshake
read_timeout int
write_timeout int
read_buffer_size int
write_buffer_size int
return System

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void