Platforms to show: All Mac Windows Linux Cross-Platform

LibUSBTransferMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class USB MBS USB Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The class for asynchronous USB transfer.

The user populates this class 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.

Please check LibUSB documentation and examples for asynchronous transfers.

Flags

Constant Value Description
kTransferFlagsAddZeroPacket 4 Terminate transfers that are a multiple of the endpoint's MaxPacketSize with an extra zero length packet. more
kTransferFlagsShortNotOK 1 Report short frames as errors.

Status Codes

Constant Value Description
kTransferStatusCancelled 3 Transfer was cancelled.
kTransferStatusCompleted 0 Transfer completed without error. Note that this does not indicate that the entire amount of requested data was transferred.
kTransferStatusError 1 Transfer failed
kTransferStatusNoDevice 5 Device was disconnected
kTransferStatusOverflow 6 Device sent more data than requested
kTransferStatusStall 4 For bulk/interrupt endpoints: halt condition detected (endpoint stalled). For control endpoints: control request not supported.
kTransferStatusTimeout 2 Transfer timed out.

Transfer Types

Constant Value Description
kTransferTypeBulk 2 Bulk endpoint
kTransferTypeBulkStream 4 Stream endpoint.
kTransferTypeControl 0 Control endpoint
kTransferTypeInterrupt 3 Interrupt endpoint
kTransferTypeISOChronous 1 Isochronous endpoint

This class has no sub classes.

Blog Entries


The items on this page are in the following plugins: MBS USB Plugin.


LibUSBISOPacketDescriptorMBS   -   LibUSBVersionMBS


The biggest plugin in space...