Skip to main content

Interface Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbHost
Assembly: GHIElectronics.TinyCLR.Devices.UsbHost
Namespace: GHIElectronics.TinyCLR.Devices.UsbHost.Descriptors

Interface descriptor.

public class Interface : BaseDescriptor

Constructors​

Interface(byte[] buffer)​

public Interface(byte[] buffer) : this(buffer, 0)

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) : this()

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() : base(DescriptorType.Interface, Interface.LENGTH)

Constructs a new descriptor.

Properties​

Number​

public byte Number { get; set; }

The number of the interface.

AlternateSetting​

public byte AlternateSetting { get; set; }

The value used to select alternate settings.

NumberEndpoints​

public byte NumberEndpoints { get; set; }

The number of endpoints for this interface.

ClassCode​

public byte ClassCode { get; set; }

The class code.

SubclassCode​

public byte SubclassCode { get; set; }

The subclass code.

ProtocolCode​

public byte ProtocolCode { get; set; }

The protocal code.

Index​

public byte Index { get; set; }

The interface string descriptor index.

AuxiliaryDescriptors​

public Auxiliary[] AuxiliaryDescriptors { get; set; }

Child auxiliary descriptors.

Endpoints​

public Endpoint[] Endpoints { get; set; }

Child endpoint descriptors.

Fields​

LENGTH​

public const byte LENGTH

The length of the descriptor in bytes.