C# Класс HidSharp.HidStream

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

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

Метод Описание
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
GetFeature ( byte buffer ) : void

Sends a Get Feature setup request.

GetFeature ( byte buffer, int offset, int count ) : void

Sends a Get Feature setup request.

Read ( ) : byte[]

Reads HID Input Reports.

Read ( byte buffer ) : int

Reads HID Input Reports.

Seek ( long offset, SeekOrigin origin ) : long
SetFeature ( byte buffer ) : void

Sends a Set Feature setup request.

SetFeature ( byte buffer, int offset, int count ) : void

Sends a Set Feature setup request.

SetLength ( long value ) : void
Write ( byte buffer ) : void

Writes an HID Output Report to the device.

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

Метод Описание
CommonRead ( byte buffer, int offset, int count, Queue queue ) : int
CommonWrite ( byte buffer, int offset, int count, Queue queue, bool feature, int maxOutputReportLength ) : void
GetTimeout ( int startTime, int timeout ) : int
HandleAcquire ( ) : bool
HandleAcquireIfOpenOrFail ( ) : void
HandleClose ( ) : bool
HandleFree ( ) : void
HandleInitAndOpen ( ) : void
HandleRelease ( ) : void
HidStream ( ) : System

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

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

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Результат IAsyncResult

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

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Результат IAsyncResult

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

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int

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

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Результат void

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

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

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

Sends a Get Feature setup request.
public GetFeature ( byte buffer ) : void
buffer byte The buffer to fill. Place the Report ID in the first byte.
Результат void

GetFeature() публичный абстрактный Метод

Sends a Get Feature setup request.
public abstract GetFeature ( byte buffer, int offset, int count ) : void
buffer byte The buffer to fill. Place the Report ID in the byte at index .
offset int The index in the buffer to begin filling with data.
count int The number of bytes in the feature request.
Результат void

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

Reads HID Input Reports.
public Read ( ) : byte[]
Результат byte[]

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

Reads HID Input Reports.
public Read ( byte buffer ) : int
buffer byte The buffer to place the reports into.
Результат int

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

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

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

Sends a Set Feature setup request.
public SetFeature ( byte buffer ) : void
buffer byte The buffer of data to send. Place the Report ID in the first byte.
Результат void

SetFeature() публичный абстрактный Метод

Sends a Set Feature setup request.
public abstract SetFeature ( byte buffer, int offset, int count ) : void
buffer byte The buffer of data to send. Place the Report ID in the byte at index .
offset int The index in the buffer to start the write from.
count int The number of bytes in the feature request.
Результат void

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

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

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

Writes an HID Output Report to the device.
public Write ( byte buffer ) : void
buffer byte The buffer containing the report. Place the Report ID in the first byte.
Результат void