C# Class System.IO.Ports.WinSerialStream

Inheritance: Stream, ISerialStream, IDisposable
Afficher le fichier Open project: runefs/Marvin

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Close ( ) : void
Résultat void

DiscardInBuffer() public méthode

public DiscardInBuffer ( ) : void
Résultat void

DiscardOutBuffer() public méthode

public DiscardOutBuffer ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetSignals() public méthode

public GetSignals ( ) : SerialSignal
Résultat SerialSignal

Read() public méthode

public Read ( [ buffer, int offset, int count ) : int
buffer [
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetAttributes() public méthode

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
Résultat void

SetBreakState() public méthode

public SetBreakState ( bool value ) : void
value bool
Résultat void

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

SetSignal() public méthode

public SetSignal ( SerialSignal signal, bool value ) : void
signal SerialSignal
value bool
Résultat void

WinSerialStream() public méthode

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
Résultat System

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void