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

Represents a CAN (Controller Area Network) message.

Type Parameters

  • T = any

    The type of the signal data.

Type declaration

  • 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.

  • Optionalsignals?: T

    The children signals of the CAN message. internal use

  • Optionalts?: number

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