libusb.3 (8833b15f6382203d094cd6eb69068709b467079d) | libusb.3 (748205a3703147c4587ea21e78bfdb84037df076) |
---|---|
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 February 25, 2012 | 29.Dd April 12, 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 --- 75 unchanged lines hidden (view full) --- 113See the LIBUSB_SPEED_XXX enums for more information. 114LIBUSB_SPEED_UNKNOWN is returned in case of unknown wire speed. 115.Pp 116.Ft int 117.Fn libusb_get_max_packet_size "libusb_device *dev" "unsigned char endpoint" 118Returns the wMaxPacketSize value on success, LIBUSB_ERROR_NOT_FOUND if the 119endpoint does not exist and LIBUSB_ERROR_OTHERS on other failure. 120.Pp | 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 --- 75 unchanged lines hidden (view full) --- 113See the LIBUSB_SPEED_XXX enums for more information. 114LIBUSB_SPEED_UNKNOWN is returned in case of unknown wire speed. 115.Pp 116.Ft int 117.Fn libusb_get_max_packet_size "libusb_device *dev" "unsigned char endpoint" 118Returns the wMaxPacketSize value on success, LIBUSB_ERROR_NOT_FOUND if the 119endpoint does not exist and LIBUSB_ERROR_OTHERS on other failure. 120.Pp |
121.Ft int 122.Fn libusb_get_max_iso_packet_size "libusb_device *dev" "unsigned char endpoint" 123Returns the packet size multiplied by the packet multiplier on success, 124LIBUSB_ERROR_NOT_FOUND if the endpoint does not exist and 125LIBUSB_ERROR_OTHERS on other failure. 126.Pp |
|
121.Ft libusb_device * 122.Fn libusb_ref_device "libusb_device *dev" 123Increment the reference counter of the device 124.Fa dev. 125.Pp 126.Ft void 127.Fn libusb_unref_device "libusb_device *dev" 128Decrement the reference counter of the device --- 416 unchanged lines hidden --- | 127.Ft libusb_device * 128.Fn libusb_ref_device "libusb_device *dev" 129Increment the reference counter of the device 130.Fa dev. 131.Pp 132.Ft void 133.Fn libusb_unref_device "libusb_device *dev" 134Decrement the reference counter of the device --- 416 unchanged lines hidden --- |