public static interface CanSignal.Builder extends SdkPojo, CopyableBuilder<CanSignal.Builder,CanSignal>
| Modifier and Type | Method and Description |
|---|---|
CanSignal.Builder |
factor(Double factor)
A multiplier used to decode the CAN message.
|
CanSignal.Builder |
isBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
|
CanSignal.Builder |
isSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
|
CanSignal.Builder |
length(Integer length)
How many bytes of data are in the message.
|
CanSignal.Builder |
messageId(Integer messageId)
The ID of the message.
|
CanSignal.Builder |
name(String name)
The name of the signal.
|
CanSignal.Builder |
offset(Double offset)
The offset used to calculate the signal value.
|
CanSignal.Builder |
startBit(Integer startBit)
Indicates the beginning of the CAN signal.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCanSignal.Builder messageId(Integer messageId)
The ID of the message.
messageId - The ID of the message.CanSignal.Builder isBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
isBigEndian - Whether the byte ordering of a CAN message is big-endian.CanSignal.Builder isSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
isSigned - Whether the message data is specified as a signed value.CanSignal.Builder startBit(Integer startBit)
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.
startBit - 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.
CanSignal.Builder offset(Double offset)
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset.
offset - The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset.CanSignal.Builder factor(Double factor)
A multiplier used to decode the CAN message.
factor - A multiplier used to decode the CAN message.CanSignal.Builder length(Integer length)
How many bytes of data are in the message.
length - How many bytes of data are in the message.CanSignal.Builder name(String name)
The name of the signal.
name - The name of the signal.Copyright © 2023. All rights reserved.