BOROSOFTWAREAll work →
scantool/scantool_850/ecu.h 25 lines
1#ifndef __SCANTOOL_850_ECU_H__
2#define __SCANTOOL_850_ECU_H__
3
4#include <stdint.h>
5
6struct ecu_info {
7 uint8_t addr;
8 const char *name;
9 const char *desc;
10 const char *dtc_prefix;
11};
12
13extern const struct ecu_info ecu_list[];
14
15/* find ECU info by address; NULL if not found */
16const struct ecu_info *ecu_info_by_addr(uint8_t addr);
17
18/** Look up an ECU by name; NULL if not found
19 */
20const struct ecu_info *ecu_info_by_name(const char *name);
21
22
23#endif // __SCANTOOL_850_ECU_H__
24
25