
2006, QNX Software Systems GmbH & Co. KG. usbd connect()
Connect a client driver to the USB stack
Synopsis:
#include <sys/usbdi.h>
int usbd
connect( usbd connect parm t*parm,
struct usbd
connection **connection );
Description:
You use the usbd connect() function to connect to a USB device and
to provide insertion/removal callbacks (in the
usbd connect parm t data structure).
parm Connection parameters describing how to connect to
the USB stack and how you intend to operate with it.
connection An opaque handle returned on a successful
connection; it’s used to pass into other routines to
identify the connection.
Data structures
typedef struct usbd connect parm {
const char *path;
uint16 vusb;
uint16 vusbd;
uint32 flags;
int argc;
char **argv;
uint32 evtbufsz;
usbd
device ident t *ident;
usbd
funcs t *funcs;
uint16 connect wait
} usbd
connect parm t;
path Name of the stack (NULL means
/dev/io-usb/io-usb, the default name).
vusb and vusbd Versions of the USB stack (
USB VERSION) and
SDK (
USBD VERSION).
November 2, 2006 Chapter 4 USB Library Reference 35
Comentarios a estos manuales