rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Typedefs | Functions
board_id.h File Reference

Typedefs

typedef uint16_t board_id_t
 

Functions

board_id_t getBoardId ()
 

Typedef Documentation

◆ board_id_t

typedef uint16_t board_id_t

Definition at line 11 of file board_id.h.

Function Documentation

◆ getBoardId()

board_id_t getBoardId ( )

Definition at line 15 of file board_id.cpp.

15 {
16#if HW_PROTEUS
18 // a way to test harness patch cord
19 return STATIC_BOARD_ID_PROTEUS_CANAM;
20 }
22 // a way to test harness patch cord
23 return STATIC_BOARD_ID_PROTEUS_SLINGSHOT;
24 }
26 // a way to test harness patch cord
27 return STATIC_BOARD_ID_PROTEUS_M73;
28 }
30 // a way to test harness patch cord
31 return STATIC_BOARD_ID_PROTEUS_HARLEY;
32 }
34 // a way to test harness patch cord
35 return STATIC_BOARD_ID_PROTEUS_SBC;
36 }
38 // a way to test harness patch cord
39 return STATIC_BOARD_ID_PROTEUS_SUBARU_2011;
40 }
41#endif
42
43#if HW_HELLEN_8CHAN
45 // a way to test harness patch cord
46 return STATIC_BOARD_ID_PLATINUM_SBC;
47 }
49 // a way to test harness patch cord
50 return STATIC_BOARD_ID_PLATINUM_GM_GEN4;
51 }
53 // a way to test harness patch cord
54 return STATIC_BOARD_ID_8CHAN_E92;
55 }
56#endif
57
58#if HW_HELLEN_UAEFI121
60 // a way to test harness patch cord
61 return STATIC_BOARD_ID_UAEFU121_SBC;
62 }
63#endif
64
65#if HW_HELLEN_UAEFI
67 // a way to test harness patch cord
68 return STATIC_BOARD_ID_UAEFI_GM_GEN4;
69 }
70#endif
71
72#if HW_MICRO_RUSEFI
74 return STATIC_BOARD_ID_MRE_M111;
75 }
76#endif
77
78#if defined(HW_HELLEN_SKIP_BOARD_TYPE)
79 return (board_id_t)STATIC_BOARD_ID;
80#elif HW_HELLEN
82 if (hellenBoardId != -1)
84 #if STATIC_BOARD_ID
85 return (board_id_t)STATIC_BOARD_ID;
86 #else
87 return -2;
88 #endif
89#elif STATIC_BOARD_ID
90// should STATIC_BOARD_ID simply have priority over hellen board id? what's the use-case of HW_HELLEN with STATIC_BOARD_ID?
91 return (board_id_t)STATIC_BOARD_ID;
92#else
93 return 0;
94#endif
95}
uint16_t board_id_t
Definition board_id.h:11
EngineState engineState
Definition engine.h:344
static EngineAccessor engine
Definition engine.h:413
static constexpr engine_configuration_s * engineConfiguration
hellenBoardId("Detected Board ID", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1368, 1.0, 0.0, 3000.0, "id")

Referenced by sendQcBenchBoardStatus().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.