CanErrorCounters class final

Transmit and receive error counters (TEC/REC) reported by the controller.

final c = bus.currentState.errorCounters;
if (c != null && c.tx > 96) print('TX errors rising');
Annotations

Constructors

CanErrorCounters({required int tx, required int rx})
Creates counters.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rx → int
Receive error counter.
final
tx → int
Transmit error counter.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override