C# Класс ESP8266DebugPackage.SerialPortStream

Наследование: Stream, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

EscapeFunction() публичный Метод

public EscapeFunction ( CommFunction func ) : void
func CommFunction
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

Purge() публичный Метод

public Purge ( ) : void
Результат void

Read() публичный Метод

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

Seek() публичный Метод

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SerialPortStream() публичный Метод

public SerialPortStream ( string portName, int baudRate, System flowControl ) : System
portName string
baudRate int
flowControl System
Результат System

SetLength() публичный Метод

public SetLength ( long value ) : void
value long
Результат void

SetTimeouts() публичный Метод

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
Результат void

Write() публичный Метод

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void