From f6b78c32dc9eddf17473d899afedfce320703608 Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 28 Feb 2011 17:23:15 +0000 Subject: - Add support for software pre-scaling of ISOCHRONOUS transfers. MFC after: 14 days Approved by: thompsa (mentor) --- lib/libusb/libusb20.3 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/libusb/libusb20.3') diff --git a/lib/libusb/libusb20.3 b/lib/libusb/libusb20.3 index a6dc890..93dfe18 100644 --- a/lib/libusb/libusb20.3 +++ b/lib/libusb/libusb20.3 @@ -261,6 +261,16 @@ The actual buffer size can be greater than and is returned by .Fn libusb20_tr_get_max_total_length . . +If +.Fa max_frame_count +is OR'ed with LIBUSB20_MAX_FRAME_PRE_SCALE the remaining part of the +argument is converted from milliseconds into the actual number of +frames rounded up, when this function returns. +This flag is only valid for ISOCHRONOUS transfers and has no effect +for other transfer types. +The actual number of frames setup is found by calling +.Fn libusb20_tr_get_max_frames . +. This function returns zero upon success. . Non-zero return values indicate a LIBUSB20_ERROR value. -- cgit v1.1