control_transfer
Description:
[ Version ( since = "0.1.0" ) ]
public bool control_transfer (DeviceDirection direction, DeviceRequestType request_type, DeviceRecipient recipient, uint8 request, uint16 value, uint16 idx, uint8[] data, out size_t actual_length, uint timeout, Cancellable? cancellable = null) throws Error
public bool control_transfer (DeviceDirection direction, DeviceRequestType request_type, DeviceRecipient recipient, uint8 request, uint16 value, uint16 idx, uint8[] data, out size_t actual_length, uint timeout, Cancellable? cancellable = null) throws Error
Perform a USB control transfer.
Warning: this function is synchronous, and cannot be cancelled.
Parameters:
this |
a Device |
request_type |
the request type field for the setup packet |
request |
the request field for the setup packet |
value |
the value field for the setup packet |
idx |
the index field for the setup packet |
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 |