Skip to main content

Interface Class

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

Interface descriptor.

public class Interface : BaseDescriptor

Constructors​

Interface(byte[] buffer)​

public Interface(byte[] buffer)

Constructs a new descriptor.

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

Interface(byte[] buffer, int offset)​

public Interface(byte[] buffer, int offset)

Constructs a new descriptor.

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

Interface()​

protected Interface()

Constructs a new descriptor.

Properties​

AlternateSetting​

public byte AlternateSetting { get; set; }

The value used to select alternate settings.

Returns byte

AuxiliaryDescriptors​

public Auxiliary[] AuxiliaryDescriptors { get; set; }

Child auxiliary descriptors.

Returns Auxiliary[]

ClassCode​

public byte ClassCode { get; set; }

The class code.

Returns byte

Endpoints​

public Endpoint[] Endpoints { get; set; }

Child endpoint descriptors.

Returns Endpoint[]

Index​

public byte Index { get; set; }

The interface string descriptor index.

Returns byte

Number​

public byte Number { get; set; }

The number of the interface.

Returns byte

NumberEndpoints​

public byte NumberEndpoints { get; set; }

The number of endpoints for this interface.

Returns byte

ProtocolCode​

public byte ProtocolCode { get; set; }

The protocal code.

Returns byte

SubclassCode​

public byte SubclassCode { get; set; }

The subclass code.

Returns byte

Fields​

FixedLength​

public const byte FixedLength = 9

The fixed length of this descriptor type in bytes.