openusb_get_max_xfer_size
openusb_get_max_xfer_size
-- Get the maximum data transfer size per request based on the bus
and type
openusb_get_max_xfer_size()
gets the maximum transfer size
that can be specified in openusb_request based on the which bus the target device is on
and the desired transfer type. The size value is returned in bytes
.
openusb_get_max_xfer_size()
returns OPENUSB_SUCCESS on success.
Otherwise, a openusb error is returned.
OPENUSB_SUCCESS - No errors.
OPENUSB_INVALID_HANDLE - Invalid openusb handle.
OPENUSB_UNKNOWN_DEVICE - Bus idbus
is not valid
OPENUSB_BADARG - type
is not valid or
bytes
is NULL.
OPENUSB_NOT_SUPPORTED - Operation is not supported.