diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-08-13 18:10:52 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-08-13 18:10:52 +0000 |
commit | ac49f9f94c356dc44ea69f7a8dfe014bc91c5806 (patch) | |
tree | 1953abbbd5e16ff4c9b2baf72bc0aa54e4369b04 /lib/libusb/libusb20.3 | |
parent | 3a1d6fe80a72b4bf9ca183da48579c9edcab37a0 (diff) | |
download | FreeBSD-src-ac49f9f94c356dc44ea69f7a8dfe014bc91c5806.zip FreeBSD-src-ac49f9f94c356dc44ea69f7a8dfe014bc91c5806.tar.gz |
Add support for streams to LibUSB v2.0.
MFC after: 2 weeks
Diffstat (limited to 'lib/libusb/libusb20.3')
-rw-r--r-- | lib/libusb/libusb20.3 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libusb/libusb20.3 b/lib/libusb/libusb20.3 index c9bf902..af80c6c 100644 --- a/lib/libusb/libusb20.3 +++ b/lib/libusb/libusb20.3 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 14, 2010 +.Dd August 13, 2012 .Dt LIBUSB20 3 .Os .Sh NAME @@ -48,6 +48,7 @@ USB access library (libusb -lusb) .Fn libusb20_tr_close "struct libusb20_transfer *xfer" .Ft int .Fn libusb20_tr_open "struct libusb20_transfer *xfer" "uint32_t max_buf_size" "uint32_t max_frame_count" "uint8_t ep_no" +.Fn libusb20_tr_open_stream "struct libusb20_transfer *xfer" "uint32_t max_buf_size" "uint32_t max_frame_count" "uint8_t ep_no" "uint16_t stream_id" .Ft struct libusb20_transfer* .Fn libusb20_tr_get_pointer "struct libusb20_device *pdev" "uint16_t tr_index" .Ft uint16_t @@ -284,6 +285,16 @@ Non-zero return values indicate a LIBUSB20_ERROR value. . .Pp . +.Fn libusb20_tr_open_stream +is identical to +.Fn libusb20_tr_open +except that a stream ID can be specified for BULK endpoints having +such a feature. +.Fn libusb20_tr_open +can be used to open stream ID zero. +. +.Pp +. .Fn libusb20_tr_get_pointer will return a pointer to the allocated USB transfer according to the .Fa pdev |