C# 클래스 LibUsbDotNet.LudnMonoLibUsb.Internal.MonoUsbTransferContext

상속: LibUsbDotNet.Main.UsbTransfer, IDisposable
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
Fill ( IntPtr buffer, int offset, int count, int timeout ) : void

Fills the transfer with the data to UsbTransfer.Submit.

Fill ( IntPtr buffer, int offset, int count, int timeout, int isoPacketSize ) : void

Fills the transfer with the data to UsbTransfer.Submit an isochronous transfer.

MonoUsbTransferContext ( UsbEndpointBase endpointBase ) : System
Submit ( ) : ErrorCode

Submits the transfer.

This functions submits the USB transfer and return immediately.

Wait ( int &transferredCount, bool cancel ) : ErrorCode

Wait for the transfer to complete, timeout, or get cancelled.

비공개 메소드들

메소드 설명
TransferCallback ( MonoUsbTransfer pTransfer ) : void
allocTransfer ( UsbEndpointBase endpointBase, bool ownsTransfer, int isoPacketSize, int count ) : void
freeTransfer ( ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Fill() 공개 메소드

Fills the transfer with the data to UsbTransfer.Submit.
public Fill ( IntPtr buffer, int offset, int count, int timeout ) : void
buffer System.IntPtr The buffer.
offset int The offset on the buffer where the transfer should read/write.
count int The number of bytes to transfer.
timeout int Time (milliseconds) to wait before the transfer times out.
리턴 void

Fill() 공개 메소드

Fills the transfer with the data to UsbTransfer.Submit an isochronous transfer.
public Fill ( IntPtr buffer, int offset, int count, int timeout, int isoPacketSize ) : void
buffer System.IntPtr The buffer.
offset int The offset on the buffer where the transfer should read/write.
count int The number of bytes to transfer.
timeout int Time (milliseconds) to wait before the transfer times out.
isoPacketSize int Size of each isochronous packet.
리턴 void

MonoUsbTransferContext() 공개 메소드

public MonoUsbTransferContext ( UsbEndpointBase endpointBase ) : System
endpointBase LibUsbDotNet.Main.UsbEndpointBase
리턴 System

Submit() 공개 메소드

Submits the transfer.
This functions submits the USB transfer and return immediately.
public Submit ( ) : ErrorCode
리턴 ErrorCode

Wait() 공개 메소드

Wait for the transfer to complete, timeout, or get cancelled.
public Wait ( int &transferredCount, bool cancel ) : ErrorCode
transferredCount int The number of bytes transferred on .
cancel bool Not used for libusb-1.0. Transfers are always cancelled on timeout or error.
리턴 ErrorCode