@Generated(value="software.amazon.awssdk:codegen") public final class CanSignal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CanSignal.Builder,CanSignal>
Information about a single controller area network (CAN) signal and the messages it receives and transmits.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CanSignal.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CanSignal.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Double |
factor()
A multiplier used to decode the CAN message.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isBigEndian()
Whether the byte ordering of a CAN message is big-endian.
|
Boolean |
isSigned()
Whether the message data is specified as a signed value.
|
Integer |
length()
How many bytes of data are in the message.
|
Integer |
messageId()
The ID of the message.
|
String |
name()
The name of the signal.
|
Double |
offset()
The offset used to calculate the signal value.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CanSignal.Builder> |
serializableBuilderClass() |
Integer |
startBit()
Indicates the beginning of the CAN signal.
|
CanSignal.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer messageId()
The ID of the message.
public final Boolean isBigEndian()
Whether the byte ordering of a CAN message is big-endian.
public final Boolean isSigned()
Whether the message data is specified as a signed value.
public final 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.
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.
public final Double offset()
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset.
value = raw_value * factor + offset.public final Double factor()
A multiplier used to decode the CAN message.
public final Integer length()
How many bytes of data are in the message.
public final String name()
The name of the signal.
public CanSignal.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CanSignal.Builder,CanSignal>public static CanSignal.Builder builder()
public static Class<? extends CanSignal.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.