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

Functions

board_id_t getBoardId ()
 

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_MICRO_RUSEFI
67 return STATIC_BOARD_ID_MRE_M111;
68 }
69#endif
70
71#if defined(HW_HELLEN_SKIP_BOARD_TYPE)
72 return (board_id_t)STATIC_BOARD_ID;
73#elif HW_HELLEN
75 if (hellenBoardId != -1)
77 #if STATIC_BOARD_ID
78 return (board_id_t)STATIC_BOARD_ID;
79 #else
80 return -2;
81 #endif
82#elif STATIC_BOARD_ID
83// should STATIC_BOARD_ID simply have priority over hellen board id? what's the use-case of HW_HELLEN with STATIC_BOARD_ID?
84 return (board_id_t)STATIC_BOARD_ID;
85#else
86 return 0;
87#endif
88}
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.