C# Class System.IO.Ports.SerialPortStream

Inheritance: Stream, ISerialStream, IDisposable
显示文件 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
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method 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 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

SerialPortStream() public method

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
return System

SetAttributes() public method

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
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

Write() public method

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