Belkin F8E211 Guia do Utilizador Página 56

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 114
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 113 114

Comentários a estes Manuais

Sem comentários