Endpoint Class
Namespace: GHIElectronics.TinyCLR.Devices.UsbHost.Descriptors · Assembly: GHIElectronics.TinyCLR.Devices.UsbHost
Endpoint descriptor.
public class Endpoint : BaseDescriptor
Constructors
Endpoint(byte[] buffer)
public Endpoint(byte[] buffer) : this(buffer, 0)
Constructs a new descriptor.
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | The buffer with which to populate the descriptor. |
Endpoint(byte[] buffer, int offset)
public Endpoint(byte[] buffer, int offset) : this()
Constructs a new descriptor.
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | The buffer with which to populate the descriptor. |
offset | int | The offset into the buffer at which to start. |
Endpoint()
protected Endpoint() : base(DescriptorType.Endpoint, Endpoint.LENGTH)
Constructs a new descriptor.
Properties
Address
public byte Address { get; set; }
The endpoint address.
Attributes
public byte Attributes { get; set; }
The attributes of the endpoint.
MaximumPacketSize
public ushort MaximumPacketSize { get; set; }
The maximum packet size this endpoint can transmit.
Interval
public byte Interval { get; set; }
The interval for data transfer pooling in frame counts.
AuxiliaryDescriptors
public Auxiliary[] AuxiliaryDescriptors { get; set; }
Child auxiliary descriptors.
Fields
LENGTH
public const byte LENGTH
The length of the descriptor in bytes.