CanMessage: {
    absTimeStr?: string;
    data: Buffer;
    database?: string;
    device?: string;
    dir: "IN" | "OUT";
    id: number;
    isSimulate?: boolean;
    msgType: CanMsgType;
    name?: string;
    originalTs?: number;
    signals?: T;
    ts?: number;
}

Represents a CAN (Controller Area Network) message.

Type Parameters

  • T = any

    The type of the signal data.

Type declaration

  • OptionalabsTimeStr?: string

    Absolute UTC time string for display (e.g. "2024-01-15 08:30:12.345"). Set by replay module when using original recording time.

  • data: Buffer

    The data payload of the CAN message.

  • Optionaldatabase?: string

    The database id of the CAN message.

  • Optionaldevice?: string

    The device associated with the CAN message.

  • dir: "IN" | "OUT"

    The direction of the CAN message, either 'IN' for incoming or 'OUT' for outgoing.

  • id: number

    The identifier of the CAN message.

  • OptionalisSimulate?: boolean

    Indicates whether the CAN message is simulated. This property is optional.

  • msgType: CanMsgType

    The type of the CAN message.

  • Optionalname?: string

    The name of the CAN message.

  • OptionaloriginalTs?: number

    Original timestamp in microseconds from log file (before tsOffset). Set by replay module when using original recording time.

  • Optionalsignals?: T

    The children signals of the CAN message. internal use

  • Optionalts?: number

    The timestamp of when the CAN message was sent/recv.