@yinyinfurong_zmr/dbc-can
Version:
A general purpose CAN (Controller Area Network) toolbox with support for .dbc file parsing, CAN message decoding, and more
29 lines (28 loc) • 663 B
TypeScript
import { Message, Signal } from '../dbc/DbcTypes';
export type Frame = {
id: number;
dlc: number;
isExtended: boolean;
payload: Payload;
};
export type BoundMessage = {
boundData: {
message: Message;
frame: Frame;
};
boundSignals: Map<string, BoundSignal>;
id: number;
name: string;
setSignalValue: (signal: string, value: number) => {};
};
export type BoundSignal = {
boundData: {
signal: Signal;
payload: Payload;
};
value: number;
rawValue: number;
physValue: string;
setValue: (value: number) => {};
};
export type Payload = number[];