C# Class ESP8266DebugPackage.SerialPortStream

Inheritance: Stream, IDisposable
显示文件 Open project: sysprogs/BSPTools Class Usage Examples

Public Methods

Method Description
Close ( ) : void
EscapeFunction ( CommFunction func ) : void
Flush ( ) : void
Purge ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SerialPortStream ( string portName, int baudRate, System flowControl ) : System
SetLength ( long value ) : void
SetTimeouts ( UInt32 readIntervalTimeout, UInt32 readTotalTimeoutMultiplier, UInt32 readTotalTimeoutConstant, UInt32 writeTotalTimeoutMultiplier, UInt32 writeTotalTimeoutConstant ) : void
Write ( byte buffer, int offset, int count ) : void

Private Methods

Method Description
ApplyAdvancedSettings ( int baudRate, System flowControl ) : void
CloseHandle ( IntPtr hObject ) : bool
CreateFile ( [ filename, [ access, [ share, IntPtr securityAttributes, [ creationDisposition, [ flagsAndAttributes, IntPtr templateFile ) : SafeFileHandle
DoWrite ( byte buffer, int offset, int count ) : int
EscapeCommFunction ( SafeFileHandle hFile, CommFunction dwFunc ) : bool
GetCommState ( SafeFileHandle hFile, DCB &lpDCB ) : bool
GetOverlappedResult ( SafeHandle hFile, [ lpOverlapped, int &lpNumberOfBytesTransferred, bool bWait ) : bool
PurgeComm ( SafeFileHandle hFile, uint dwFlags ) : bool
ReadFile ( SafeHandle hFile, IntPtr buf, int nNumberOfBytesToRead, int &lpNumberOfBytesRead, IntPtr lpOverlapped ) : bool
SetCommState ( SafeFileHandle hFile, DCB &lpDCB ) : bool
SetCommTimeouts ( SafeHandle hFile, COMMTIMEOUTS &lpCommTimeouts ) : bool
WriteFile ( SafeHandle hFile, IntPtr buf, int nNumberOfBytesToRead, int &lpNumberOfBytesRead, IntPtr lpOverlapped ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

EscapeFunction() public method

public EscapeFunction ( CommFunction func ) : void
func CommFunction
return void

Flush() public method

public Flush ( ) : void
return void

Purge() public method

public Purge ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
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, System flowControl ) : System
portName string
baudRate int
flowControl System
return System

SetLength() public method

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

SetTimeouts() public method

public SetTimeouts ( UInt32 readIntervalTimeout, UInt32 readTotalTimeoutMultiplier, UInt32 readTotalTimeoutConstant, UInt32 writeTotalTimeoutMultiplier, UInt32 writeTotalTimeoutConstant ) : void
readIntervalTimeout System.UInt32
readTotalTimeoutMultiplier System.UInt32
readTotalTimeoutConstant System.UInt32
writeTotalTimeoutMultiplier System.UInt32
writeTotalTimeoutConstant System.UInt32
return void

Write() public method

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