Belkin F8E211 Uživatelská příručka Strana 98

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 107
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 97
usbd
_
topology(), usbd
_
topology
_
ext() © 2007, QNX Software Systems GmbH & Co. KG.
Get the USB bus physical topology
Synopsis:
#include <sys/usbdi.h>
int usbd_topology( struct usbd_connection *connection,
usbd_bus_topology_t *tp )
int usbd_topology_ext( struct usbd_connection *connection,
_uint8 busno,
usbd_bus_topology_t *tp )
Arguments:
connection An opaque handle that identifies the USB stack, obtained by calling
usbd
_
connect().
bus (usbd
_
topology
_
ext() only) The index of the bus that you want the
topology for.
tp A pointer to a
usbd_bus_topology_t data structure that this
function fills in; see below.
Library:
libusbdi
Description:
You can use the usbd
_
topology() or usbd
_
topology
_
ext() function to get the USB bus
physical topology.
For more information on USB bus topology, see sections 4.1.1 and 5.2.3 in the USB
Specification v1.1.
If your system has more than one bus, you can call usbd
_
topology
_
ext() to get
information about a specific one. The usbd
_
topology() function gets information about
the first bus; calling it is the same as calling usbd
_
topology() with a bus argument of 0.
The
usbd_bus_topology_t structure is defined as follows:
typedef struct usbd_port_attachment {
_uint8 upstream
_
devno;
_uint8 upstream
_
port;
_uint8 upstream
_
port
_
speed;
_uint8 upstream
_
hc;
_uint8
_
reserved[4];
} usbd_port_attachment_t;
typedef struct usbd_bus_topology {
usbd_port_attachment_t ports[64];
} usbd_bus_topology_t;
84 Chapter 4 USB Library Reference September 10, 2007
Zobrazit stránku 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 106 107

Komentáře k této Příručce

Žádné komentáře