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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 61
usbd endpoint descriptor() 2006, QNX Software Systems GmbH & Co. KG.
Get the endpoint descriptor for a specific endpoint setting
Synopsis:
#include <sys/usbdi.h>
usbd
endpoint descriptor t
*usbd
endpoint descriptor(
struct usbd
device *device,
uint8 config,
uint8 iface,
uint8 alt,
uint8 endpoint,
struct usbd
desc node **node );
Description:
The usbd endpoint descriptor() function lets you obtain the endpoint
descriptor for a specific endpoint on a configuration/interface.
device An opaque handle used to identify the USB device.
config Configuration identifier (
bConfigurationValue).
ifc Interface identifier (
bInterfaceNumber).
alt Alternate identifier (
bAlternateSetting).
endpoint Endpoint identifier (
bEndpointAddress).
node Indicates the descriptor’s location for rooting future
requests.
The
endpoint descriptor t structure looks like this:
typedef struct usbd endpoint descriptor {
uint8 bLength;
uint8 bDescriptorType;
uint8 bEndpointAddress;
uint8 bmAttributes;
uint16 wMaxPacketSize;
uint8 bInterval;
} usbd
endpoint descriptor t;
50 Chapter 4 USB Library Reference November 2, 2006
Zobrazit stránku 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 113 114

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

Žádné komentáře