Belkin F8E211 Guia do Utilizador Página 76

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 107
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 75
usbd
_
parse
_
descriptors() © 2007, QNX Software Systems GmbH & Co. KG.
(ROOT)
|
(DEVICE) - (HUB) - (LANGUAGE TABLE)
|
(CONFIG) - ..... (CONFIG)
|
(INTERFACE) - ..... (INTERFACE)
|
(ENDPOINT) - ..... (ENDPOINT)
Any vendor-specific or class-specific descriptors that are embedded into the standard
descriptor output are also inserted into this tree at the appropriate point.
Although a descriptor for endpoint 0 (control) isn’t present on the wire, one is
constructed and placed in the tree (to simplify enumeration within the class driver).
You use type for specifying the type of descriptor to find; index is the nth occurrence.
Note that type 0 will match any descriptor type; you can use it to retrieve any
embedded class or vendor-specific descriptors if you don’t know their type.
Here’s an example that will walk all endpoints for an interface:
for (eix = 0; (desc = usbd_parse_descriptors(device, ifc, USB_DESC_ENDPOINT,
eix, &ept)) != NULL; ++eix)
;
where ifc is the appropriate (INTERFACE) node (found by a previous call to
usbd
_
parse
_
descriptors() or usbd
_
interface
_
descriptor().
Returns:
A pointer to the descriptor on success, or NULL on error.
Classification:
QNX Neutrino, QNX 4
Safety
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes
See also:
usbd
_
args
_
lookup(), usbd
_
configuration
_
descriptor(), usbd
_
descriptor(),
usbd
_
device
_
lookup(), usbd
_
device
_
extra(), usbd
_
device
_
descriptor(),
usbd
_
endpoint
_
descriptor(), usbd
_
hcd
_
info(), usbd
_
hub
_
descriptor(),
usbd
_
interface
_
descriptor(), usbd
_
languages
_
descriptor(), usbd
_
string(),
usbd
_
urb
_
status()
62 Chapter 4 USB Library Reference September 10, 2007
Vista de página 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 106 107

Comentários a estes Manuais

Sem comentários