Skip to main content

BaseDescriptor Class

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

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.