CanSignal

class CanSignal

Information about a single controller area network (CAN) signal and the messages it receives and transmits.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A multiplier used to decode the CAN message.

Link copied to clipboard

Whether the byte ordering of a CAN message is big-endian.

Link copied to clipboard

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.

Link copied to clipboard
val length: Int

How many bytes of data are in the message.

Link copied to clipboard

The ID of the message.

Link copied to clipboard
val name: String?

The name of the signal.

Link copied to clipboard

The offset used to calculate the signal value. Combined with factor, the calculation is value = raw_value * factor + offset.

Link copied to clipboard

The value type of the signal. The default value is INTEGER.

Link copied to clipboard

Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).

Functions

Link copied to clipboard
inline fun copy(block: CanSignal.Builder.() -> Unit = {}): CanSignal
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String