C# 클래스 LibUsbDotNet.Main.UsbTransferQueue

Helper class for maintaining a user defined number of outstanding aync transfers on an endpoint.
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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