DBCSignal class
An object that stores necessary data to decode a CAN signal
Constructors
-
DBCSignal({required DBCSignalSignedness signalSignedness, required DBCSignalType signalType, required DBCSignalMode signalMode, required int multiplexGroup, required int start, required int lenght, required List<
int> mapping, required List<int> mappingIndexes, required double factor, required double offset, required double min, required double max, required String unit}) -
const
Properties
- factor → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lenght → int
-
final
-
mapping
→ List<
int> -
Specifies how the payload bits count towards a decoded value
final
-
mappingIndexes
→ List<
int> -
Specifies the used bits in the payload
final
- max → double
-
final
- min → double
-
final
- multiplexGroup → int
-
final
- offset → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signalMode → DBCSignalMode
-
final
- signalSignedness → DBCSignalSignedness
-
final
- signalType → DBCSignalType
-
final
- start → int
-
final
- unit → String
-
final
Methods
-
decode(
List< int> payload) → num? - The bit level representation of the payload is multiplied with the signals mapping to form a decoded value This value changes sign dependent on DBCSignalSignedness, and then is multiplied by the factor, and offseted my the offset If a value turns out to be out of range specified by min and max null is returned
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- factorRegex ↔ RegExp
-
getter/setter pair
- lenghtRegex ↔ RegExp
-
getter/setter pair
- maxRegex ↔ RegExp
-
getter/setter pair
- minRegex ↔ RegExp
-
getter/setter pair
- multiplexGroupRegex ↔ RegExp
-
getter/setter pair
- multiplexorRegex ↔ RegExp
-
getter/setter pair
- offsetRegex ↔ RegExp
-
getter/setter pair
- signednessRegex ↔ RegExp
-
getter/setter pair
- startbitRegex ↔ RegExp
-
getter/setter pair
- unitRegex ↔ RegExp
-
getter/setter pair
Static Methods
-
fromString(
String data, int lenghtOfMessage) → DBCSignal - When a DBC file is initially parsed each signals are constructed on a line-by-line basis