CanSignal
¶
Source code in docs_src/capo_iotfleetwise/types/can_signal.py
is_big_endian
instance-attribute
¶
is_big_endian: bool
Whether the byte ordering of a CAN message is big-endian.
is_signed
instance-attribute
¶
is_signed: bool
Determines whether the message is signed (true) or not (false). If it's signed, the message can represent both positive and negative numbers. The isSigned parameter only applies to the INTEGER raw signal type, and it doesn't affect the FLOATING_POINT raw signal type.
offset
instance-attribute
¶
offset: double
The offset used to calculate the signal value. Combined with factor, the calculation is value = raw_value * factor + offset.
signal_value_type
instance-attribute
¶
signal_value_type: NotRequired[SignalValueType]
The value type of the signal. The default value is INTEGER.
start_bit
instance-attribute
¶
start_bit: nonNegativeInteger
Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).
This value might be different from the value in a DBC file. For little endian signals, startBit is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as the startBit.