
usbd device descriptor() 2006, QNX Software Systems GmbH & Co. KG.
Get the device descriptor for a specific device
Synopsis:
#include <sys/usbdi.h>
usbd
device descriptor t
*usbd
device descriptor(
struct usbd
device *device,
struct usbd
desc node **node );
Description:
The usbd device descriptor() function lets you obtain the device
descriptor for a specific device (a handle from usbd
attach()).
The node parameter tells you where a descriptor was found to root
future requests from (e.g. configurations of the device).
The
usbd device descriptor t structure looks like this:
typedef struct usbd device descriptor {
uint8 bLength;
uint8 bDescriptorType;
uint16 bcdUSB;
uint8 bDeviceClass;
uint8 bDeviceSubClass;
uint8 bDeviceProtocol;
uint8 bMaxPacketSize0;
uint16 idVendor;
uint16 idProduct;
uint16 bcdDevice;
uint8 iManufacturer;
uint8 iProduct;
uint8 iSerialNumber;
uint8 bNumConfigurations;
} usbd
device descriptor t;
Returns:
A pointer to usbd device descriptor t on success, or NULL
on error.
44 Chapter 4 USB Library Reference November 2, 2006
Comentarios a estos manuales