Method
FwupdPluginUsbDeviceinterrupt_transfer
since: 2.0.0
Declaration [src]
gboolean
fu_usb_device_interrupt_transfer (
FuUsbDevice* self,
guint8 endpoint,
guint8* data,
gsize length,
gsize* actual_length,
guint timeout,
GCancellable* cancellable,
GError** error
)
Description [src]
Perform a USB interrupt transfer.
Warning: this function is synchronous, and cannot be cancelled.
Available since: 2.0.0
Parameters
endpoint-
Type:
guint8The address of a valid endpoint to communicate with.
data-
Type: An array of
guint8A suitably-sized data buffer for either input or output.
The length of the array is specified in the lengthargument.The data is owned by the caller of the method. length-
Type:
gsizeThe length field for the setup packet.
actual_length-
Type:
gsize*The actual number of bytes sent, or
NULL.The argument will be set by the function. The argument can be NULL. timeout-
Type:
guintTimeout (in milliseconds) that this function should wait — use 0 for unlimited.
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.