EndpointDescriptor constructor
EndpointDescriptor({
- required int address,
- required TransferType type,
- required Direction direction,
- required int maximumPacketSize,
- SynchronizationType? synchronization,
- UsageType? usage,
- int? pollingInterval,
- required ByteBuffer extraData,
Implementation
EndpointDescriptor({
/// Endpoint address.
required int address,
/// Transfer type.
required TransferType type,
/// Transfer direction.
required Direction direction,
/// Maximum packet size.
required int maximumPacketSize,
/// Transfer synchronization mode (isochronous only).
SynchronizationType? synchronization,
/// Endpoint usage hint.
UsageType? usage,
/// Polling interval (interrupt and isochronous only).
int? pollingInterval,
/// Extra descriptor data associated with this endpoint.
required ByteBuffer extraData,
}) : _wrapped = $js.EndpointDescriptor(
address: address,
type: type.toJS,
direction: direction.toJS,
maximumPacketSize: maximumPacketSize,
synchronization: synchronization?.toJS,
usage: usage?.toJS,
pollingInterval: pollingInterval,
extra_data: extraData.toJS,
);