libusb20.3 (223495) | libusb20.3 (225659) |
---|---|
1.\" 2.\" Copyright (c) 2008 Hans Petter Selasky 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: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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.\" | 1.\" 2.\" Copyright (c) 2008 Hans Petter Selasky 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: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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: head/lib/libusb/libusb20.3 223495 2011-06-24 11:14:09Z hselasky $ | 27.\" $FreeBSD: head/lib/libusb/libusb20.3 225659 2011-09-19 08:52:06Z hselasky $ |
28.\" 29.Dd October 14, 2010 30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" --- 171 unchanged lines hidden (view full) --- 207.Ft uint16_t 208.Fn libusb20_me_get_2 "const struct libusb20_me_struct *me" "uint16_t off" 209.Ft uint16_t 210.Fn libusb20_me_encode "void *pdata" "uint16_t len" "const void *pdecoded" 211.Ft uint16_t 212.Fn libusb20_me_decode "const void *pdata" "uint16_t len" "void *pdecoded" 213.Ft "const uint8_t *" 214.Fn libusb20_desc_foreach "const struct libusb20_me_struct *me" "const uint8_t *pdesc" | 28.\" 29.Dd October 14, 2010 30.Dt LIBUSB20 3 31.Os 32.Sh NAME 33.Nm libusb20 34. 35.Nd "USB access library" --- 171 unchanged lines hidden (view full) --- 207.Ft uint16_t 208.Fn libusb20_me_get_2 "const struct libusb20_me_struct *me" "uint16_t off" 209.Ft uint16_t 210.Fn libusb20_me_encode "void *pdata" "uint16_t len" "const void *pdecoded" 211.Ft uint16_t 212.Fn libusb20_me_decode "const void *pdata" "uint16_t len" "void *pdecoded" 213.Ft "const uint8_t *" 214.Fn libusb20_desc_foreach "const struct libusb20_me_struct *me" "const uint8_t *pdesc" |
215.Ft "const char *" 216.Fn libusb20_strerror "int code" 217.Ft "const char *" 218.Fn libusb20_error_name "int code" |
|
215. 216. 217.Sh DESCRIPTION 218. 219The 220.Nm 221library implements functions to be able to easily access and control 222USB through the USB file system interface. --- 768 unchanged lines hidden (view full) --- 991This function will decode a binary structure into a so-called *DECODED 992structure. 993. 994The total decoded length is returned. 995. 996The buffer pointer cannot be NULL. 997. 998. | 219. 220. 221.Sh DESCRIPTION 222. 223The 224.Nm 225library implements functions to be able to easily access and control 226USB through the USB file system interface. --- 768 unchanged lines hidden (view full) --- 995This function will decode a binary structure into a so-called *DECODED 996structure. 997. 998The total decoded length is returned. 999. 1000The buffer pointer cannot be NULL. 1001. 1002. |
1003.Sh USB DEBUGGING 1004.Pp 1005.Ft const char * 1006.Fn libusb20_strerror "int code" 1007Get the ASCII representation of the error given by the 1008.Fa code 1009argument. 1010This function does not return NULL. 1011.Pp 1012.Ft const char * 1013.Fn libusb20_error_name "int code" 1014Get the ASCII representation of the error enum given by the 1015.Fa code 1016argument. 1017This function does not return NULL. 1018. |
|
999.Sh FILES 1000. 1001. 1002/dev/usb 1003.Sh SEE ALSO 1004.Xr usb 4 , 1005.Xr libusb 3 , | 1019.Sh FILES 1020. 1021. 1022/dev/usb 1023.Sh SEE ALSO 1024.Xr usb 4 , 1025.Xr libusb 3 , |
1006.Xr usbconfig 8 | 1026.Xr usbconfig 8 , 1027.Xr usbdump 8 |
1007. 1008. 1009.Sh HISTORY 1010. 1011. 1012Some parts of the 1013.Nm 1014API derives from the libusb project at sourceforge. | 1028. 1029. 1030.Sh HISTORY 1031. 1032. 1033Some parts of the 1034.Nm 1035API derives from the libusb project at sourceforge. |