C# Класс LibUsbDotNet.Main.UsbTransferQueue

Helper class for maintaining a user defined number of outstanding aync transfers on an endpoint.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BufferSize int
EndpointBase UsbEndpointBase
IsoPacketSize int
MaxOutstandingIO int
Timeout int

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

Метод Описание
Free ( ) : void

Cancels and frees all oustanding transfers.

Transfer ( Handle &handle ) : ErrorCode

Submits transfers until MaxOutstandingIO is reached then waits for the oldest transfer to complete.

UsbTransferQueue ( UsbEndpointBase endpointBase, int maxOutstandingIO, int bufferSize, int timeout, int isoPacketSize ) : System

Creates a new transfer queue instance.

this ( int index ) : byte[]

Gets the transfer data buffer at the specified index.

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

Метод Описание
IncWithRoll ( int &incField, int rollOverValue ) : void
free ( UsbTransferQueue transferParam ) : void
transfer ( UsbTransferQueue transferParam, Handle &handle ) : ErrorCode

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

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

Cancels and frees all oustanding transfers.
public Free ( ) : void
Результат void

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

Submits transfers until MaxOutstandingIO is reached then waits for the oldest transfer to complete.
public Transfer ( Handle &handle ) : ErrorCode
handle Handle The queue handle to the that completed.
Результат ErrorCode

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

Creates a new transfer queue instance.
public UsbTransferQueue ( UsbEndpointBase endpointBase, int maxOutstandingIO, int bufferSize, int timeout, int isoPacketSize ) : System
endpointBase UsbEndpointBase The endpoint to transfer data to/from.
maxOutstandingIO int The number of transfers to before waiting for a completion.
bufferSize int The size of each data buffer.
timeout int The maximum time to wait for each transfer.
isoPacketSize int For isochronous use only. The iso packet size. If 0, the endpoints max packet size is used.
Результат System

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

Gets the transfer data buffer at the specified index.
public this ( int index ) : byte[]
index int The index of the buffer to retrieve.
Результат byte[]

Описание свойств

BufferSize публичное свойство

Size (in bytes) of each data buffer in this transfer queue.
public int BufferSize
Результат int

EndpointBase публичное свойство

Endpoint for I/O operations.
public UsbEndpointBase,LibUsbDotNet.Main EndpointBase
Результат UsbEndpointBase

IsoPacketSize публичное свойство

For isochronous use only. The iso packet size.
public int IsoPacketSize
Результат int

MaxOutstandingIO публичное свойство

Maximum outstanding I/O operations before waiting for a completion. This is also the number of data buffers allocated for this transfer queue.
public int MaxOutstandingIO
Результат int

Timeout публичное свойство

Time (in milliseconds) to wait for a transfer to complete before returning ErrorCode.IoTimedOut.
public int Timeout
Результат int