bulk_transfer_async
Description:
[ Version ( since = "0.1.0" ) ]
public async ssize_t bulk_transfer_async (uint8 endpoint, uint8[] data, uint timeout, Cancellable? cancellable) throws Error
public async ssize_t bulk_transfer_async (uint8 endpoint, uint8[] data, uint timeout, Cancellable? cancellable) throws Error
Do an async bulk transfer
Parameters:
this |
a Device instance. |
endpoint |
the address of a valid endpoint to communicate with |
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 |