
2006, QNX Software Systems GmbH & Co. KG. usbd connect()
event A future extension for various other event notifications
(e.g. bandwidth problems).
USBDI NFUNCS
A constant that goes into nentries.
By passing NULL as the usbd funcs, you’re saying that you’re not
interested in receiving dynamic insertion/removal notifications, which
means that you won’t be a fully operational class driver. No
asynchronous I/O will be allowed, no event thread, etc. This approach
is taken, for example, by the
usb display utility.
☞
Returns:
EOK Success.
EPROGRAMISMATCH
Versionitis.
ENOMEM No memory for internal connect structures.
ESRCH USB server not running.
EACCESS Permission denied to USB server.
EAGAIN Can’t create async/callback thread.
Examples:
A class driver (in its main(), probably) for a 3COM Ethernet card
might connect like this:
usbd device ident t interest = {
USB
VENDOR 3COM,
USB
PRODUCT 3COM 3C19250,
USBD
CONNECT WILDCARD,
USBD
CONNECT WILDCARD,
USBD
CONNECT WILDCARD,
};
usbd
funcs t funcs = {
November 2, 2006 Chapter 4 USB Library Reference 37
Comentarios a estos manuales