LibUsbDotNet 2.2.8
MonoUsbTransfer Structure
Library ReferenceMonoLibUsb.TransferMonoUsbTransfer
LibUsbDotNet on SourceForge
Reads/writes a Libusb-1.0 transfer pointer. Transfer should be allocated with Alloc(Int32).
Declaration Syntax
C#Visual BasicVisual C++
public struct MonoUsbTransfer
Public Structure MonoUsbTransfer
public value class MonoUsbTransfer
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
MonoUsbTransfer(Int32)
Allocate a libusb transfer with a specified number of isochronous packet descriptors

ActualLength
Actual length of data that was transferred.

Alloc(Int32)
Allocate a libusb transfer with a specified number of isochronous packet descriptors

Cancel()()()()
Cancels this transfer.

Endpoint
Enpoint address.

FillBulk(MonoUsbDeviceHandle, Byte, IntPtr, Int32, Delegate, IntPtr, Int32)
Helper function to populate the required MonoUsbTransfer properties for a bulk transfer.

FillControl(MonoUsbDeviceHandle, MonoUsbControlSetupHandle, Delegate, IntPtr, Int32)
Helper function to populate the required MonoUsbTransfer properties for a control transfer.

FillInterrupt(MonoUsbDeviceHandle, Byte, IntPtr, Int32, Delegate, IntPtr, Int32)
Helper function to populate the required MonoUsbTransfer properties for an interrupt transfer.

FillIsochronous(MonoUsbDeviceHandle, Byte, IntPtr, Int32, Int32, Delegate, IntPtr, Int32)
Helper function to populate the required MonoUsbTransfer properties for an isochronous transfer.

Flags
A bitwise OR combination of MonoUsbTransferFlags.

Free()()()()
Frees this transfer.

GetIsoPacketBuffer(Int32)
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer.

GetIsoPacketBufferSimple(Int32)
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer, for transfers where each packet is of identical size.

IsInvalid
True if the transfer is allocated.

IsoPacket(Int32)
Gets a MonoUsbIsoPacket that represents the specified iso packet descriptor.

Length
Length of the data buffer.

NumIsoPackets
Number of isochronous packets.

PtrBuffer
Gets the buffer data pointer.

PtrCallbackFn
Callback function pointer.

PtrDeviceHandle
Raw device handle pointer.

PtrUserData
User context data to pass to the callback function.

SetIsoPacketLengths(Int32)
Convenience function to set the length of all packets in an isochronous transfer, based on the num_iso_packets field in the transfer structure.

Status
The status of the transfer.

Submit()()()()
Submits this transfer.

Timeout
Timeout for this transfer in millseconds.

Type
Type of the endpoint.

UniqueName()()()()
Gets a unqiue name for this transfer.

Remarks
The user populates this structure and then submits it in order to request a transfer. After the transfer has completed, the library populates the transfer with the results and passes it back to the user.
Note: The MonoUsbTransfer structure is roughly equivalent to the struct libusb_transfer.

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)