Skip to main content

BaseDescriptor Class

Package: GHIElectronics.Endpoint.Devices.UsbHost
Namespace: GHIElectronics.Endpoint.Devices.UsbHost.Descriptors

The base USB descriptor.

class BaseDescriptor {};

Constructors​

BaseDescriptor(DescriptorType type, byte length)​

BaseDescriptor(DescriptorType type, uint8_t length);

Creates a new base descriptor

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

Properties​

Length​

uint8_t Length() const;
void Length(uint8_t value);

Length of descriptor in bytes.

Returns byte

Type​

DescriptorType Type() const;
void Type(DescriptorType value);

The type of the descriptor.

Returns DescriptorType