A cross-platform user library to access USB devices
The generic USB transfer structure. More...
|Handle of the device that this transfer will be submitted to. |
|A bitwise OR combination of libusb_transfer_flags. More...|
|Address of the endpoint where this transfer will be sent. More...|
|Type of the endpoint from libusb_transfer_type. |
|Timeout for this transfer in millseconds. More...|
|The status of the transfer. More...|
|Length of the data buffer. |
|Actual length of data that was transferred. More...|
|Callback function. More...|
|User context data to pass to the callback function. More...|
|unsigned char *||buffer|
|Data buffer. |
|Number of isochronous packets. More...|
|struct libusb_iso_packet_descriptor||iso_packet_desc |
|Isochronous packet descriptors, for isochronous transfers only. More...|
The generic USB transfer structure.
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.
A bitwise OR combination of libusb_transfer_flags.
|unsigned char libusb_transfer::endpoint|
Address of the endpoint where this transfer will be sent.
|unsigned int libusb_transfer::timeout|
Timeout for this transfer in millseconds.
A value of 0 indicates no timeout.
|enum libusb_transfer_status libusb_transfer::status|
The status of the transfer.
Read-only, and only for use within transfer callback function.
If this is an isochronous transfer, this field may read COMPLETED even if there were errors in the frames. Use the status field in each packet to determine if errors occurred.
Actual length of data that was transferred.
Read-only, and only for use within transfer callback function. Not valid for isochronous endpoint transfers.
This will be invoked when the transfer completes, fails, or is cancelled.
User context data to pass to the callback function.
Number of isochronous packets.
Only used for I/O with isochronous endpoints.
|struct libusb_iso_packet_descriptor libusb_transfer::iso_packet_desc|
Isochronous packet descriptors, for isochronous transfers only.