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
| Parameter | Type | Description |
|---|---|---|
type | DescriptorType | The type of the derived descriptor |
length | byte | The 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