openusb_get_max_xfer_sizeopenusb_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 LIBUSB_SUCCESS on success.
Otherwise, a openusb error is returned.
LIBUSB_SUCCESS - No errors.
LIBUSB_INVALID_HANDLE - Invalid openusb handle.
LIBUSB_UNKNOWN_DEVICE - Bus idbus is not valid
LIBUSB_BADARG - type is not valid or
bytes is NULL.
LIBUSB_NOT_SUPPORTED - Operation is not supported.