UNPKG

obd-raw-data-parser

Version:

A lightweight TypeScript library for parsing OBD-II raw data into human readable format. Based on the excellent work of obd-utils by Nishkalkashyap.

17 lines (16 loc) 546 B
import { DTCObject } from "./dtc.js"; import { DecoderConfig, DTCStatus } from "./dtc.js"; export declare class DTCBaseDecoder { private readonly decoder; private readonly serviceMode; private readonly troubleCodeType; private readonly logPrefix; constructor(config: DecoderConfig); decodeDTCs(rawResponseBytes: number[][]): string[]; getRawDTCs(): DTCObject[]; parseDTCStatus(statusByte: number): DTCStatus; private getModeResponseByte; private validateServiceMode; private log; private setDTC; }