Belkin F8E211 Guía de usuario Pagina 83

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 82
2006, QNX Software Systems GmbH & Co. KG. usbd parse descriptors()
Parse device descriptors looking for a specific entry
Synopsis:
#include <sys/usbdi.h>
usbd
descriptors t *usbd parse descriptors(
struct usbd
device *device,
struct usbd
desc node *root,
uint8 type, int index,
struct usbd
desc node **node );
Description:
When called the first time, the usbd parse descriptors() function
loads all the descriptors from the USB device:
device
configuration
interface
endpoint
hub
string
The function uses usdb
descriptor() to get each raw USB descriptor.
The data is then endian-ized, made alignment-safe, and built into an
in-memory tree structure to facilitate future parsing requests.
Each node in this tree is a
struct usbd desc node. The root parameter
lets you say where in the tree to begin parsing (NULL is base). The
node parameter tells you where a descriptor was found to root future
requests from.
The tree looks like this:
(ROOT)
|
(DEVICE) - (HUB) - (LANGUAGE TABLE)
|
(CONFIG) - ..... (CONFIG)
November 2, 2006 Chapter 4 USB Library Reference 71
Vista de pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 113 114

Comentarios a estos manuales

Sin comentarios