BOROSOFTWAREAll work →
scantool/scantool_850/dtc.h 27 lines
1#include <stdint.h>
2
3#ifndef __SCANTOOL_850_DTC_H__
4#define __SCANTOOL_850_DTC_H__
5
6struct dtc_table_entry {
7 uint8_t raw_value;
8 int16_t dtc_suffix;
9 const char *desc;
10 const char *tips;
11};
12
13struct ecu_dtc_table_map_entry {
14 uint8_t ecu_addr;
15 // NULL terminated
16 const struct dtc_table_entry *dtc_table;
17};
18
19extern const struct ecu_dtc_table_map_entry ecu_dtc_map[];
20
21/** find DTC table by ECU address. NULL if not found */
22const struct dtc_table_entry *dtctable_by_addr(uint8_t addr);
23
24
25#endif // __SCANTOOL_850_DTC_H__
26
27