Skip to main content

Interface Class

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

Interface descriptor.

class Interface(BaseDescriptor): ...

Constructors​

Interface(byte[] buffer)​

def __init__(self, buffer: list[int]):

Constructs a new descriptor.

ParameterTypeDescription
bufferbyte[]The buffer with which to populate the descriptor.

Interface(byte[] buffer, int offset)​

def __init__(self, buffer: list[int], offset: int):

Constructs a new descriptor.

ParameterTypeDescription
bufferbyte[]The buffer with which to populate the descriptor.
offsetintThe offset into the buffer at which to start.

Interface()​

def __init__(self):

Constructs a new descriptor.

Properties​

AlternateSetting​

AlternateSetting: int # @property / @setter

The value used to select alternate settings.

Returns byte

AuxiliaryDescriptors​

AuxiliaryDescriptors: list[Auxiliary] # @property / @setter

Child auxiliary descriptors.

Returns Auxiliary[]

ClassCode​

ClassCode: int # @property / @setter

The class code.

Returns byte

Endpoints​

Endpoints: list[Endpoint] # @property / @setter

Child endpoint descriptors.

Returns Endpoint[]

Index​

Index: int # @property / @setter

The interface string descriptor index.

Returns byte

Number​

Number: int # @property / @setter

The number of the interface.

Returns byte

NumberEndpoints​

NumberEndpoints: int # @property / @setter

The number of endpoints for this interface.

Returns byte

ProtocolCode​

ProtocolCode: int # @property / @setter

The protocal code.

Returns byte

SubclassCode​

SubclassCode: int # @property / @setter

The subclass code.

Returns byte

Fields​

FixedLength​

FixedLength: int = 9

The fixed length of this descriptor type in bytes.