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

  • 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 65
usbd
_
interface
_
descriptor() © 2007, QNX Software Systems GmbH & Co. KG.
Get the interface descriptor for a specific interface setting
Synopsis:
#include <sys/usbdi.h>
usbd_interface_descriptor_t
*usbd_interface_descriptor(
struct usbd_device *device,
_uint8 cfg,
_uint8 ifc,
_uint8 alt,
struct usbd_desc_node **node );
Arguments:
device An opaque handle used to identify the USB device.
cfg The device’s configuration identifier (
bConfigurationValue).
ifc Interface identifier (
bInterfaceNumber).
alt Alternate identifier (
bAlternateSetting).
node Indicates the descriptor’s location for rooting future requests (e.g.
endpoints of this interface).
Library:
libusbdi
Description:
The usbd
_
interface
_
descriptor() function lets you obtain the interface descriptor for a
specific interface setting.
The
usbd_interface_descriptor_t structure looks like this:
typedef struct usbd_interface_descriptor {
_uint8 bLength;
_uint8 bDescriptorType;
_uint8 bInterfaceNumber;
_uint8 bAlternateSetting;
_uint8 bNumEndpoints;
_uint8 bInterfaceClass;
_uint8 bInterfaceSubClass;
_uint8 bInterfaceProtocol;
_uint8 iInterface;
} usbd_interface_descriptor_t;
52 Chapter 4 USB Library Reference September 10, 2007
Zobrazit stránku 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 106 107

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

Žádné komentáře