Belkin F8E211 Guia do Utilizador Página 62

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 107
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 61
usbd
_
hcd
_
ext
_
info(), usbd
_
hcd
_
info() © 2007, QNX Software Systems GmbH & Co. KG.
Get information on the USB host controller and DDK library
Synopsis:
#include <sys/usbdi.h>
int usbd_hcd_ext_info( struct usbd_connection *connection,
_uint32 cindex,
usbd_hcd_info_t *info );
int usbd_hcd_info( struct usbd_connection *connection,
usbd_hcd_info_t *info );
Arguments:
connection The handle for the connection to the USB stack, obtained by calling
usbd
_
connect().
cindex (usbd
_
hcd
_
ext
_
info() only) The index of the host controller.
info A pointer to a
usbd_hcd_info_t data structure that this function fills
in.
Library:
libusbdi
Description:
You can use the usbd
_
hcd
_
ext
_
info() or usbd
_
hcd
_
info() function to obtain
information from the USB host controller and DDK library.
If your system has more than one USB chip, you can call usbd
_
hcd
_
ext
_
info() to get
information about a specific one. The usbd
_
hcd
_
info() function gets information
about the first USB chip; calling it is the same as calling usbd
_
hcd
_
ext
_
info() with a
cindex argument of 0.
The
usbd_hcd_info_t structure is defined as follows:
typedef struct usbd_hcd_info {
_uint16 vusb;
_uint16 vusbd;
char controller[8];
_uint32 capabilities;
_uint8 ndev;
_uint8 cindex;
_uint16 vhcd;
_uint32 max
_
td
_
io;
_uint8 reserved[12];
} usbd_hcd_info_t;
It contains at least the following:
vusb The version number of the USB stack.
48 Chapter 4 USB Library Reference September 10, 2007
Vista de página 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 106 107

Comentários a estes Manuais

Sem comentários