Represents a LIN (Local Interconnect Network) signal that defines data within a LIN frame.

interface LinSignal {
    initValue: number | number[];
    physValue?: string | number;
    physValueEnum?: string;
    punishedBy: string;
    signalName: string;
    signalSizeBits: number;
    singleType: "ByteArray" | "Scalar";
    subscribedBy: string[];
    update?: boolean;
    value?: number | number[];
}

Properties

initValue: number | number[]

The initial/default value of the signal. For scalar signals: a single number. For byte array signals: an array of numbers.

physValue?: string | number

The current physical value of the signal (if applicable).

physValueEnum?: string

The current physical value represented as an enumeration label (if applicable).

punishedBy: string

The name of the node that publishes this signal.

signalName: string

The name of the LIN signal.

signalSizeBits: number

The size of the signal in bits.

singleType: "ByteArray" | "Scalar"

The type of signal representation. 'ByteArray' for multi-byte array signals, 'Scalar' for single value signals.

subscribedBy: string[]

List of node names that subscribe to this signal.

update?: boolean

Indicates whether the signal value has been updated.

value?: number | number[]

The current raw value of the signal. For scalar signals: a single number. For byte array signals: an array of numbers.