C# Class ESP8266DebugPackage.SerialPortStream

Inheritance: Stream, IDisposable
Afficher le fichier Open project: sysprogs/BSPTools Class Usage Examples

Méthodes publiques

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

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

public Close ( ) : void
Résultat void

EscapeFunction() public méthode

public EscapeFunction ( CommFunction func ) : void
func CommFunction
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

Purge() public méthode

public Purge ( ) : void
Résultat void

Read() public méthode

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

SetLength() public méthode

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

SetTimeouts() public méthode

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