Method
GUsbDevicecontrol_transfer_async
since: 0.1.0
Declaration
void
g_usb_device_control_transfer_async (
GUsbDevice* self,
GUsbDeviceDirection direction,
GUsbDeviceRequestType request_type,
GUsbDeviceRecipient recipient,
guint8 request,
guint16 value,
guint16 idx,
guint8* data,
gsize length,
guint timeout,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Parameters
direction-
Type:
GUsbDeviceDirectionNo description available.
request_type-
Type:
GUsbDeviceRequestTypeNo description available.
recipient-
Type:
GUsbDeviceRecipientNo description available.
request-
Type:
guint8No description available.
value-
Type:
guint16No description available.
idx-
Type:
guint16No description available.
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 function. length-
Type:
gsizeThe length field for the setup packet.
timeout-
Type:
guintTimeout timeout (in milliseconds) that this function should wait before giving up due to no response being received. For an unlimited timeout, use 0.
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackThe function to run on completion.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the function.