UsbConfigurationDescriptor UsbConfigurationDescriptor UsbConfigurationDescriptor UsbConfigurationDescriptor UsbConfigurationDescriptor Class

Definition

Derives information from the first 9 bytes of a USB configuration descriptor. The information includes the power capabilities of the device when the configuration is active and the number of interfaces included in that configuration. For an explanation of a configuration descriptor, Section 9.6.3 Universal Serial Bus Specification. For information about descriptor fields, see:

  • Table 9.15 in the Universal Serial Bus 3.0 Specification
  • Table 9.10 in the Universal Serial Bus Specification (version 2.0)
public : sealed class UsbConfigurationDescriptor
struct winrt::Windows::Devices::Usb::UsbConfigurationDescriptor
public sealed class UsbConfigurationDescriptor
Public NotInheritable Class UsbConfigurationDescriptor
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

A USB device exposes its capabilities in the form of a USB configuration. A USB configuration is described in a configuration descriptor that the UsbConfigurationDescriptor class represents. For information about the descriptor, see USB configuration descriptors.

Properties

ConfigurationValue ConfigurationValue ConfigurationValue ConfigurationValue ConfigurationValue

Gets the bConfigurationValue field of a USB configuration descriptor. The value is the number that identifies the configuration.

MaxPowerMilliamps MaxPowerMilliamps MaxPowerMilliamps MaxPowerMilliamps MaxPowerMilliamps

Gets the bMaxPower field of a USB configuration descriptor. The value indicates the maximum power (in milliamp units) that the device can draw from the bus, when the device is bus-powered.

RemoteWakeup RemoteWakeup RemoteWakeup RemoteWakeup RemoteWakeup

Gets the D5 bit value of the bmAttributes field in the USB configuration descriptor. The value indicates whether the device can send a resume signal to wake up itself or the host system from a low power state.

SelfPowered SelfPowered SelfPowered SelfPowered SelfPowered

Gets the D6 bit of the bmAttributes field in the USB configuration. This value indicates whether the device is drawing power from a local source or the bus.

Methods

Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor)

Parses the specified USB descriptor and returns fields of a USB configuration descriptor.

TryParse(UsbDescriptor, UsbConfigurationDescriptor) TryParse(UsbDescriptor, UsbConfigurationDescriptor) TryParse(UsbDescriptor, UsbConfigurationDescriptor) TryParse(UsbDescriptor, UsbConfigurationDescriptor) TryParse(UsbDescriptor, UsbConfigurationDescriptor)

Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object.

See also