Microsoft Windows CE 3.0  

USB_INTERFACE

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This structure describes a specific interface with respect to a specific configuration. The same physical interface on a USB device therefore has one USB_INTERFACE structure for each of the USB device's possible configurations.

typedef struct { UCHAR
bLength, 
UCHAR
bDescriptorType, 
UCHAR
bInterfaceNumber, 
UCHAR
bAlternateSetting, 
UCHAR
bNumEndpoints, 
UCHAR
bInterfaceClass, 
UCHAR
bInterfaceSubClass, 
UCHAR
bInterfaceProtocol, 
UCHAR
iInterface
} USB_INTERFACE;

Members

bLength
The length of this structure, in bytes.
bDescriptorType
The constant value INTERFACE.
bInterfaceNumber
The interface's number. This value is a zero-based index into an array of interfaces supported by the relevant configuration.
bAlternateSetting
A value used to select an alternate setting for the interface identified in bInterfaceNumber.
bNumEndpoints
The number of endpoints used by this interface, excluding endpoint 0. If this value is 0, the interface only uses the default control pipe.
bInterfaceClass
An interface class code. Class codes are defined by the USB working group. The value 0xFF represents a vendor-specific class code.
bInterfaceSubClass
An interface subclass code. Subclass codes are defined by the USB working group. The meaning of bInterfaceSubClassdepends on the value of bInterfaceClass.
bInterfaceprotocol
An interface protocol code. Protocol codes are defined by the USB working group. The value 0xFF indicates a vendor-specific protocol code.
iInterface
The index of a string descriptor describing this interface.

Remarks

USB_INTERFACE structures are accessed by the USB system software or USB device drivers in response to requests for configuration information.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.10 and later usb100.h    


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.