Minor mdoc fixes.
This commit is contained in:
parent
b3f46df007
commit
d284271a53
@ -43,7 +43,6 @@ The
|
||||
library contains interfaces for directly managing a usb device.
|
||||
The current implementation supports v1.0 of the libusb API.
|
||||
.Sh LIBRARY INITIALISATION / DEINITIALISATION
|
||||
.Pp
|
||||
.Ft int
|
||||
.Fn libusb_init libusb_context **ctx
|
||||
This function initialises libusb.
|
||||
@ -270,9 +269,7 @@ LIBUSB_ERROR_NO_DEVICE
|
||||
if the device has been disconnected, LIBUSB_ERROR_BUSY if the driver cannot be
|
||||
attached because the interface is claimed by a program or driver and a
|
||||
LIBUSB_ERROR code on failure.
|
||||
.Pp
|
||||
.Sh USB DESCRIPTORS
|
||||
.Pp
|
||||
.Ft int
|
||||
.Fn libusb_get_device_descriptor "libusb_device *dev" "libusb_device_descriptor *desc"
|
||||
Get the USB device descriptor for the device
|
||||
@ -349,9 +346,7 @@ libusb_free_bos_descriptor function.
|
||||
.Ft void
|
||||
.Fn libusb_free_bos_descriptor "libusb_bos_descriptor *bos"
|
||||
This function is NULL safe and frees a parsed BOS descriptor.
|
||||
.Pp
|
||||
.Sh USB ASYNCHRONOUS I/O
|
||||
.Pp
|
||||
.Ft struct libusb_transfer *
|
||||
.Fn libusb_alloc_transfer "int iso_packets"
|
||||
Allocate a transfer with the number of isochronous packet descriptors
|
||||
@ -374,9 +369,7 @@ LIBUSB_ERROR code on other failure.
|
||||
.Fn libusb_cancel_transfer "struct libusb_transfer *tr"
|
||||
This function asynchronously cancels a transfer.
|
||||
Returns 0 on success and a LIBUSB_ERROR code on failure.
|
||||
.Pp
|
||||
.Sh USB SYNCHRONOUS I/O
|
||||
.Pp
|
||||
.Ft int
|
||||
.Fn libusb_control_transfer "libusb_device_handle *devh" "uint8_t bmRequestType" "uint8_t bRequest" "uint16_t wValue" "uint16_t wIndex" "unsigned char *data" "uint16_t wLength" "unsigned int timeout"
|
||||
Perform a USB control transfer.
|
||||
@ -411,9 +404,7 @@ if the transfer timed out, LIBUSB_ERROR_PIPE if the control request was not
|
||||
supported, LIBUSB_ERROR_OVERFLOW if the device offered more data,
|
||||
LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and
|
||||
a LIBUSB_ERROR code on other failure.
|
||||
.Pp
|
||||
.Sh USB EVENTS
|
||||
.Pp
|
||||
.Ft int
|
||||
.Fn libusb_try_lock_events "libusb_context *ctx"
|
||||
Try to acquire the event handling lock.
|
||||
@ -429,7 +420,7 @@ This function is blocking.
|
||||
Release the event handling lock.
|
||||
This will wake up any thread blocked
|
||||
on
|
||||
.B libusb_wait_for_event() .
|
||||
.Fn libusb_wait_for_event .
|
||||
.Pp
|
||||
.Ft int
|
||||
.Fn libusb_event_handling_ok "libusb_context *ctx"
|
||||
@ -506,7 +497,6 @@ Retrive a list of file descriptors that should be polled by your main loop as
|
||||
libusb event sources.
|
||||
Returns a NULL-terminated list on success or NULL on failure.
|
||||
.Sh LIBUSB VERSION 0.1 COMPATIBILITY
|
||||
.Pp
|
||||
The library is also compliant with LibUSB version 0.1.12.
|
||||
.Pp
|
||||
.Fn usb_open
|
||||
|
Loading…
Reference in New Issue
Block a user