libusb.3 (3d32887382a046cf83933404b2b8fc3ba0584191) libusb.3 (78ed0e49ff5fb814c92b991f9a7293dc2603c247)
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
29.Dd April 12, 2012
29.Dd May 7, 2012
30.Dt LIBUSB 3
31.Os
32.Sh NAME
33.Nm libusb
34.Nd "USB access library"
35.Sh LIBRARY
36USB access library
37.Pq libusb, -lusb

--- 271 unchanged lines hidden (view full) ---

309does not exist and a
310LIBUSB_ERROR code on failure.
311.Pp
312.Ft void
313.Fn libusb_free_config_descriptor "libusb_config_descriptor *config"
314Free a configuration descriptor.
315.Pp
316.Ft int
30.Dt LIBUSB 3
31.Os
32.Sh NAME
33.Nm libusb
34.Nd "USB access library"
35.Sh LIBRARY
36USB access library
37.Pq libusb, -lusb

--- 271 unchanged lines hidden (view full) ---

309does not exist and a
310LIBUSB_ERROR code on failure.
311.Pp
312.Ft void
313.Fn libusb_free_config_descriptor "libusb_config_descriptor *config"
314Free a configuration descriptor.
315.Pp
316.Ft int
317.Fn libusb_get_string_descriptor "libusb_device_handle *devh" "uint8_t desc_idx" "uint16_t langid" "unsigned char *data" "int length"
318Retrieve a string descriptor in raw format.
319Returns the number of bytes actually transferred on success
320or a negative LIBUSB_ERROR code on failure.
321.Pp
322.Ft int
317.Fn libusb_get_string_descriptor_ascii "libusb_device_handle *devh" "uint8_t desc_idx" "unsigned char *data" "int length"
318Retrieve a string descriptor in C style ASCII.
319Returns the positive number of bytes in the resulting ASCII string
320on success and a LIBUSB_ERROR code on failure.
321.Pp
322.Ft int
323.Fn libusb_parse_ss_endpoint_comp "const void *buf" "int len" "libusb_ss_endpoint_companion_descriptor **ep_comp"
324This function parses the USB 3.0 endpoint companion descriptor in host endian format pointed to by

--- 226 unchanged lines hidden ---
323.Fn libusb_get_string_descriptor_ascii "libusb_device_handle *devh" "uint8_t desc_idx" "unsigned char *data" "int length"
324Retrieve a string descriptor in C style ASCII.
325Returns the positive number of bytes in the resulting ASCII string
326on success and a LIBUSB_ERROR code on failure.
327.Pp
328.Ft int
329.Fn libusb_parse_ss_endpoint_comp "const void *buf" "int len" "libusb_ss_endpoint_companion_descriptor **ep_comp"
330This function parses the USB 3.0 endpoint companion descriptor in host endian format pointed to by

--- 226 unchanged lines hidden ---