Belkin F8E211 Guida Utente Pagina 55

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 107
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 54
© 2007, QNX Software Systems GmbH & Co. KG. usbd
_
endpoint
_
descriptor()
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 );
Arguments:
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.
Library:
libusbdi
Description:
The usbd
_
endpoint
_
descriptor() function lets you obtain the endpoint descriptor for a
specific endpoint on a configuration/interface.
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;
Returns:
A pointer to usbd_endpoint_descriptor_t on success, or NULL on error.
September 10, 2007 Chapter 4 USB Library Reference 41
Vedere la pagina 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 106 107

Commenti su questo manuale

Nessun commento