bulk_transfer
Description:
[ Version ( since = "0.1.0" ) ]
public bool bulk_transfer (uint8 endpoint, uint8[] data, out size_t actual_length, uint timeout, Cancellable? cancellable = null) throws Error
public bool bulk_transfer (uint8 endpoint, uint8[] data, out size_t actual_length, uint timeout, Cancellable? cancellable = null) throws Error
Perform a USB bulk transfer.
Warning: this function is synchronous, and cannot be cancelled.
Parameters:
this |
a Device |
endpoint |
the address of a valid endpoint to communicate with |
data |
a suitably-sized data buffer for either input or output |
actual_length |
the actual number of bytes sent, or null |
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 |
length |
the length field for the setup packet. |
Returns:
true on success |