Endpoint Class
Package: GHIElectronics.Endpoint.Devices.UsbHost
Namespace: GHIElectronics.Endpoint.Devices.UsbHost.Descriptors
Endpoint descriptor.
class Endpoint : public BaseDescriptor {};
Constructors
Endpoint(byte[] buffer)
Endpoint(const std::vector<uint8_t>& buffer);
Constructs a new descriptor.
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | The buffer with which to populate the descriptor. |
Endpoint(byte[] buffer, int offset)
Endpoint(const std::vector<uint8_t>& buffer, int32_t offset);
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()
Endpoint();
Constructs a new descriptor.
Properties
Address
uint8_t Address() const;
void Address(uint8_t value);
The endpoint address.
Returns byte
Attributes
uint8_t Attributes() const;
void Attributes(uint8_t value);
The attributes of the endpoint.
Returns byte
AuxiliaryDescriptors
std::vector<Auxiliary> AuxiliaryDescriptors() const;
void AuxiliaryDescriptors(std::vector<Auxiliary> value);
Child auxiliary descriptors.
Returns Auxiliary[]
Interval
uint8_t Interval() const;
void Interval(uint8_t value);
The interval for data transfer pooling in frame counts.
Returns byte
MaximumPacketSize
uint16_t MaximumPacketSize() const;
void MaximumPacketSize(uint16_t value);
The maximum packet size this endpoint can transmit.
Returns ushort
Fields
FixedLength
static constexpr uint8_t FixedLength = 7;
The fixed length of this descriptor type in bytes.