Skip to main content

BaseDescriptor Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbHost
Assembly: GHIElectronics.TinyCLR.Devices.UsbHost
Namespace: GHIElectronics.TinyCLR.Devices.UsbHost.Descriptors

The base USB descriptor.

public class BaseDescriptor

Constructors​

BaseDescriptor(DescriptorType type, byte length)​

protected BaseDescriptor(DescriptorType type, byte length)

Creates a new base descriptor

ParameterTypeDescription
typeDescriptorTypeThe type of the derived descriptor
lengthbyteThe length of the descriptor.

Properties​

Length​

public byte Length { get; set; }

Length of descriptor in bytes.

Type​

public DescriptorType Type { get; set; }

The type of the descriptor.