Skip to main content

Endpoint Class

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

Endpoint descriptor.

class Endpoint(BaseDescriptor): ...

Constructors​

Endpoint(byte[] buffer)​

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

Constructs a new descriptor.

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

Endpoint(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.

Endpoint()​

def __init__(self):

Constructs a new descriptor.

Properties​

Address​

Address: int # @property / @setter

The endpoint address.

Returns byte

Attributes​

Attributes: int # @property / @setter

The attributes of the endpoint.

Returns byte

AuxiliaryDescriptors​

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

Child auxiliary descriptors.

Returns Auxiliary[]

Interval​

Interval: int # @property / @setter

The interval for data transfer pooling in frame counts.

Returns byte

MaximumPacketSize​

MaximumPacketSize: int # @property / @setter

The maximum packet size this endpoint can transmit.

Returns ushort

Fields​

FixedLength​

FixedLength: int = 7

The fixed length of this descriptor type in bytes.