Belkin F8E211 Podręcznik Użytkownika Strona 66

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 107
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 106 107

Komentarze do niniejszej Instrukcji

Brak uwag