
© 2007, QNX Software Systems GmbH & Co. KG. Functions arranged by category
This chapter includes descriptions of the USB functions in alphabetical order, along
with a listing of the functions arranged by category.
These functions are defined in the libusbdi library. Use the -l usbdi option to
link against this library.
Functions arranged by category
The USB functions may be grouped into these categories:
• Connection functions
• Memory-management functions
• I/O functions
• Pipe-management functions
• Configuration/interface functions
• Miscellaneous functions
Connection functions
usbd
_
connect() Connect a client driver to the USB stack.
usbd
_
disconnect() Disconnect a client driver from the USB stack.
usbd
_
attach() Attach to a USB device.
usbd
_
detach() Detach from a USB device.
Memory-management functions
usbd
_
alloc() Allocate memory area to use for data transfers.
usbd
_
free() Free memory allocated by usbd
_
alloc().
usbd
_
mphys() Get the physical address of memory allocated by usbd
_
alloc().
usbd
_
alloc
_
urb() Allocate a USB Request Block for subsequent URB-based
operations.
usbd
_
free
_
urb() Free the URB allocated by usbd
_
alloc
_
urb().
I/O functions
usbd
_
setup
_
bulk() Set up a URB for a bulk data transfer.
usbd
_
setup
_
interrupt()
Set up a URB for an interrupt transfer.
September 10, 2007 Chapter 4 • USB Library Reference 15
Comentários a estes Manuais