
usbd interface descriptor() 2006, 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 );
Description:
The usbd interface descriptor() function lets you obtain the interface
descriptor for a specific interface setting.
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).
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;
62 Chapter 4 USB Library Reference November 2, 2006
Comentários a estes Manuais