
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
Comentarios a estos manuales