Belkin F8E211 Guía de usuario Pagina 56

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 55
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
Vista de pagina 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 113 114

Comentarios a estos manuales

Sin comentarios