control_transfer_async
Description:
[ Version ( since = "0.1.0" ) ]
public async ssize_t control_transfer_async (DeviceDirection direction, DeviceRequestType request_type, DeviceRecipient recipient, uint8 request, uint16 value, uint16 idx, uint8[] data, uint timeout, Cancellable? cancellable) throws Error
public async ssize_t control_transfer_async (DeviceDirection direction, DeviceRequestType request_type, DeviceRecipient recipient, uint8 request, uint16 value, uint16 idx, uint8[] data, uint timeout, Cancellable? cancellable) throws Error
Do an async control transfer
Parameters:
this |
a Device |
data |
a suitably-sized data buffer for either input or output |
timeout |
timeout timeout (in milliseconds) that this function should wait before giving up due to no response being received. For an unlimited timeout, use 0. |
cancellable |
a Cancellable, or null |
callback |
the function to run on completion |
length |
the length field for the setup packet. |
user_data |
the data to pass to |