Skip to main content

ConfigurationDescriptor Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbClient
Assembly: GHIElectronics.TinyCLR.Devices.UsbClient
Namespace: GHIElectronics.TinyCLR.Devices.UsbClient

A USB configuration descriptor.

public class ConfigurationDescriptor : Descriptor

Constructors​

ConfigurationDescriptor(ushort MaxPower_mA, UsbInterface[] Interfaces)​

public ConfigurationDescriptor(ushort MaxPower_mA, UsbInterface[] Interfaces) : base(0)

Creates a new configuration descriptor.

Fields​

ATTRIB_Base​

public const byte ATTRIB_Base

The base configuration attribute.

ATTRIB_SelfPowered​

public const byte ATTRIB_SelfPowered

Attribute marking the device as self powered.

ATTRIB_RemoteWakeup​

public const byte ATTRIB_RemoteWakeup

Attribute marking the device as supporting remote wakeup.

interfaces​

public UsbInterface[] interfaces

The interfaces belonging to this configuration.

iConfiguration​

public byte iConfiguration

The string index of the configuration.

bmAttributes​

public byte bmAttributes

The configuration attributes.

bMaxPower​

public byte bMaxPower

The maximum power the configuration uses, in 2 mA units.