Data Structures for Drivers usbcfgdescr(9S)
NAME
usbcfgdescr - USB configuration descriptor
SYNOPSIS
#include
INTERFACE LEVEL
Solaris DI specific (Solaris DI)
DESCRIPTION
The usbcfgdescrt configuration descriptor defines attri-
butes of a configuration. A configuration contains one or
more interfaces. A configuration descriptor acts as a header
for the group of other descriptors describing the subcom-
ponents (for example, interfaces and endpoints) of a confi-
guration. Please refer to Section 9.6.3 of the USB 2.0
specification. The USB 2.0 specification is available at
www.usb.org.
One or more configuration descriptors are retrieved from a
USB device during device enumeration. They can be accessed
via usbgetdevdata(9F).
A configuration descriptor has the following fields:
uint8t bLength Size of this descriptor
in bytes.
uint8t bDescriptorType Set to USBDESCRTYPECFG.
uint16t wTotalLength Total length of data returned
including this and all other
descriptors in this configuration.
uint8t bNumInterfaces Number of interfaces in this
configuration.
uint8t bConfigurationValue ID of this configuration
(1-based).
uint8t iConfiguration Index of optional configuration
string. Valid if > 0.
uint8t bmAttributes Configuration characteristics
(See below).
uint8t bMaxPower Maximum power consumption, in
2mA units.
SunOS 5.11 Last change: 5 Jan 2004 1
Data Structures for Drivers usbcfgdescr(9S)
Configuration descriptors define the following bmAttributes:
USBCFGATRSELFPWR - Set if config not using bus power.
USBCFGATREMOTEWAKEUP - Set if config supports rem wakeup.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture PCI-based systems
Interface stability Committed
Availability SUNWusbu
SEE ALSO
attributes(5), usbgetaltif(9F), usbgetcfg(9F),
usbgetdevdata(9F), usbgetstringdescr(9F),
usbparsedata(9F), usbctrlrequest(9S), usbdevdescr(9S),
usbdevqlfdescr(9S), usbepdescr(9S), usbifdescr(9S),
usbotherspeedcfgdescr(9S), usbstringdescr(9S)
SunOS 5.11 Last change: 5 Jan 2004 2
|