VectorXlCanTransport class

Implemented types

Constructors

VectorXlCanTransport({required int accessMask, required int bitrate, String appName = 'mcp_io_can', int rxQueueSize = 8192, Duration pollInterval = const Duration(milliseconds: 1), String? libraryPath})

Properties

accessMask int
Channel access mask — bit-or of the per-channel bits returned by xlGetChannelMask.
final
appName String
Symbolic application / port name shown in Vector Hardware Configurator. Defaults to 'mcp_io_can'.
final
bitrate int
Bit-rate in bps (e.g. 500000 for 500 kbit/s classic CAN).
final
hashCode int
The hash code for this object.
no setterinherited
incoming Stream<CanFrame>
Stream of received frames. Broadcast so multiple subscribers can consume the same bus traffic.
no setteroverride
libraryPath String?
Override library path for CI / non-default install locations.
final
pollInterval Duration
Receive polling cadence.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
rxQueueSize int
Receive queue depth (entries) — rounded up to a multiple of 64 by the driver. Default 8192 covers 1Mbit-saturated bus for tens of milliseconds of jitter.
final

Methods

close() Future<void>
Close the transport.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
Open the transport (idempotent).
override
send(CanFrame frame) Future<void>
Transmit a frame. Completes when the frame is handed off to the bus.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited