C# Class System.IO.Ports.SerialPortStream

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
SerialPortStream ( string portName, int baudRate, int dataBits, Parity parity, StopBits stopBits, bool dtrEnable, bool rtsEnable, Handshake handshake, int readTimeout, int writeTimeout, int readBufferSize, int writeBufferSize ) : System
SetAttributes ( int baud_rate, Parity parity, int data_bits, StopBits sb, Handshake hs ) : void
SetBreakState ( bool value ) : void
SetLength ( long value ) : void
SetSignal ( SerialSignal signal, bool value ) : void
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
IDisposable ( ) : void
ThrowIOException ( ) : void
breakprop ( int fd ) : int
close_serial ( int fd ) : int
discard_buffer ( int fd, bool inputBuffer ) : void
get_bytes_in_buffer ( int fd, int input ) : int
get_signals ( int fd, int &error ) : SerialSignal
open_serial ( string portName ) : int
poll_serial ( int fd, int &error, int timeout ) : bool
read_serial ( int fd, byte buffer, int offset, int count ) : int
set_attributes ( int fd, int baudRate, Parity parity, int dataBits, StopBits stopBits, Handshake handshake ) : bool
set_signal ( int fd, SerialSignal signal, bool value ) : int
strerror ( int errnum ) : IntPtr
write_serial ( int fd, byte buffer, int offset, int count, int timeout ) : int

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

SerialPortStream() public méthode

public SerialPortStream ( string portName, int baudRate, int dataBits, Parity parity, StopBits stopBits, bool dtrEnable, bool rtsEnable, Handshake handshake, int readTimeout, int writeTimeout, int readBufferSize, int writeBufferSize ) : System
portName string
baudRate int
dataBits int
parity Parity
stopBits StopBits
dtrEnable bool
rtsEnable bool
handshake Handshake
readTimeout int
writeTimeout int
readBufferSize int
writeBufferSize int
Résultat System

SetAttributes() public méthode

public SetAttributes ( int baud_rate, Parity parity, int data_bits, StopBits sb, Handshake hs ) : void
baud_rate int
parity Parity
data_bits int
sb 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

Write() public méthode

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