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)​

def __init__(self, type: DescriptorType, length: int):

Creates a new base descriptor

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

Properties​

Length​

Length: int # @property / @setter

Length of descriptor in bytes.

Returns byte

Type​

Type: DescriptorType # @property / @setter

The type of the descriptor.

Returns DescriptorType