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

Detailed Description

Main engine configuration data structure.

Date
Oct 30, 2013
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file engine_configuration.h.

Typedefs

typedef void(* configuration_callback_t) (engine_configuration_s *)
 

Functions

void setCrankOperationMode ()
 
void setCamOperationMode ()
 
void prepareVoidConfiguration (engine_configuration_s *activeConfiguration)
 
void setTargetRpmCurve (float rpm)
 
void setFuelTablesLoadBin (float minValue, float maxValue)
 
void setWholeIatCorrTimingTable (float value)
 
void setWholeTimingTable (angle_t value)
 
void setConstantDwell (floatms_t dwellMs)
 Sets the same dwell time across the whole getRpm() range set dwell X.
 
void setDefaultBasePins ()
 
void setDefaultSdCardParameters ()
 
void onBurnRequest ()
 
void incrementGlobalConfigurationVersion (const char *msg="undef")
 
void commonFrankensoAnalogInputs ()
 
void emptyCallbackWithConfiguration (engine_configuration_s *engine)
 
void loadConfiguration ()
 
void resetConfigurationExt (configuration_callback_t boardCallback, engine_type_e engineType)
 
void resetConfigurationExt (engine_type_e engineType)
 
void rememberCurrentConfiguration ()
 
void setBoardDefaultConfiguration ()
 Board-specific configuration defaults.
 
void setBoardConfigOverrides ()
 
void onBoardStandBy ()
 
Gpio getCommsLedPin ()
 
Gpio getWarningLedPin ()
 
Gpio getRunningLedPin ()
 
int hackHellenBoardId (int detectedId)
 
void applyEngineType (engine_type_e engineType)
 
int getBoardMetaOutputsCount ()
 
int getBoardMetaLowSideOutputsCount ()
 
GpiogetBoardMetaOutputs ()
 
int getBoardMetaDcOutputsCount ()
 

Variables

persistent_config_container_s persistentState
 
static constexpr engine_configuration_sengineConfiguration = &persistentState.persistentConfiguration.engineConfiguration
 
static constexpr persistent_config_sconfig = &persistentState.persistentConfiguration
 
engine_configuration_sactiveConfiguration
 
bool isActiveConfigurationVoid
 

Typedef Documentation

◆ configuration_callback_t

typedef void(* configuration_callback_t) (engine_configuration_s *)

Definition at line 53 of file engine_configuration.h.

Function Documentation

◆ applyEngineType()

void applyEngineType ( engine_type_e  engineType)

And override them with engine-specific defaults

Definition at line 61 of file engine_type_impl.cpp.

61 {
62 /**
63 * And override them with engine-specific defaults
64 */
65 switch (engineType) {
85 // all basic settings are already set in prepareVoidConfiguration(), no need to set anything here
86 // nothing to do - we do it all in setBoardDefaultConfiguration
87 break;
88#if EFI_UNIT_TEST || EFI_SIMULATOR
90 #if EFI_UNIT_TEST
92 #endif
93 break;
95 #if EFI_UNIT_TEST
97 #endif
98 break;
101 break;
104 break;
105#endif // EFI_UNIT_TEST
106
107#if EFI_TCU || EFI_SIMULATOR
109 #if EFI_TCU
111 #endif // EFI_TCU
112 break;
113#endif //EFI_TCU
114
115#if defined(HW_SUBARU_2011) || defined(HW_HELLEN_8CHAN) || HW_PROTEUS
118 break;
119#endif
120
121#if HW_MICRO_RUSEFI || HW_PROTEUS
124 break;
125#endif
126
127#if HW_MICRO_RUSEFI
130 break;
133 break;
136 break;
141 break;
143 mreBCM();
144 break;
145#endif // HW_MICRO_RUSEFI
147 setHondaObd1();
148 break;
151 break;
152
153#if HW_PROTEUS || HW_HELLEN_4CHAN || HW_HELLEN_8CHAN || HW_HELLEN_4K_GDI
156 break;
158 setHyundaiPb();
159 break;
160#endif
161
162#if HW_PROTEUS || HW_HELLEN_HONDA
164 setHondaK();
165 break;
166#endif
167
168#if HW_HELLEN
171 break;
174 break;
177 break;
180 break;
183 break;
186 break;
187#endif
188
189#if HW_PROTEUS || HW_HELLEN
191 setHarley();
192 break;
193#endif
194
195#if HW_PROTEUS || HW_HELLEN
199 break;
202 setSlingshot();
203 break;
204#endif
205
207 setGmLcv();
208 break;
210 setGmLnf();
211 break;
213 setGmLtg();
214 break;
216 setGmSbcGen5();
217 break;
218
219#if defined(HW_HELLEN_UAEFI) || defined(HW_HELLEN_UAEFI121) || defined(HW_HELLEN_SUPER_UAEFI) || defined(HW_HELLEN_8CHAN) || HW_PROTEUS || EFI_SIMULATOR
221 setGmLs4();
222 break;
223#endif
224
225#if HW_PROTEUS || EFI_SIMULATOR
228 break;
231 break;
234 break;
238 break;
241 break;
244 break;
247 break;
250 break;
252 setGmSbc();
253 break;
254#if defined(HARDWARE_CI) || EFI_SIMULATOR
256 #if defined(HARDWARE_CI)
258 #endif
259 break;
260#endif // HARDWARE_CI
261#endif // HW_PROTEUS
262
263#if defined(HW_HELLEN_MERCEDES) || EFI_SIMULATOR
266 break;
269 break;
272 break;
273#endif
274
275#ifdef HW_HELLEN_NISSAN
278 break;
281 break;
282#endif
283
284#ifdef HW_HELLEN_HYUNDAI
287 break;
290 break;
291#endif
292
293#if defined(HW_HELLEN_8CHAN) || defined(HW_HELLEN_UAEFI121) || defined(HW_HELLEN_UAEFI)
295 setGmSbc();
296 break;
297#endif
298
299#if defined(HW_HELLEN_121_VAG) || defined(HW_HELLEN_UAEFI) || defined(HW_HELLEN_UAEFI121) || EFI_SIMULATOR
301 setVag_5_cyl();
302 break;
303#endif
304
305#if defined(HW_HELLEN_121_VAG) || EFI_SIMULATOR
308 break;
311 break;
314 break;
315#endif
316
317#ifdef HW_HELLEN
320 break;
323 break;
324#endif // HW_HELLEN
325#if defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743) || defined(HW_FRANKENSO) || HW_PROTEUS || EFI_SIMULATOR
326 // used in HW CI
328 setVwAba();
329 break;
332 break;
333#endif // HW_FRANKENSO || HW_PROTEUS
334
337 break;
338
339#if defined(HW_FRANKENSO) || EFI_SIMULATOR || defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743) || defined(SUPPORT_GY6)
342 break;
343#endif
344
345#if defined(HW_FRANKENSO) || EFI_SIMULATOR || defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743)
348 break;
350#if EFI_PROD_CODE
352#endif
353 break;
356 break;
359 break;
362 break;
365 break;
368 break;
371 break;
374 break;
377 break;
379#if EFI_PROD_CODE && HAL_USE_EEPROM
381#endif
382 break;
385 break;
388 break;
390 setHonda600();
391 break;
394 break;
397 break;
400 break;
403 break;
405 setSachs();
406 break;
409 break;
412 break;
414 setRotary();
415 break;
416#endif // HW_FRANKENSO
418 bmwM52();
419 break;
420#if defined(HW_SUBARU_EG33) || EFI_SIMULATOR
423 break;
424#endif //HW_SUBARU_EG33
425 default:
426 if (custom_board_applyUnknownType.has_value()) {
428 } else {
429 firmwareError(ObdCode::CUSTOM_UNEXPECTED_ENGINE_TYPE, "Unexpected engine type: %d", (int)engineType);
430 }
431 }
432
434}
void setGy6139qmbDefaultEngineConfiguration()
void bmwM52()
Definition bmw_m52.cpp:4
void setBMW_M73_TwoCoilUnitTest()
Definition bmw_m73.cpp:122
void setEngineBMW_M73_Proteus()
Definition bmw_m73.cpp:167
void setEngineBMW_M73_microRusEfi()
std::optional< setup_custom_board_engine_type_type > custom_board_AfterTuneDefaults
Definition hardware.cpp:81
static bool call_board_override(std::optional< FuncType > board_override, Args &&... args)
std::optional< setup_custom_board_engine_type_type > custom_board_applyUnknownType
Definition hardware.cpp:82
void setMaverickX3()
Definition canam.cpp:14
void setEtbTestConfiguration()
void mreBCM()
void mreSecondaryCan()
void fuelBenchMode()
void setFrankensoConfiguration()
void setL9779TestConfiguration()
void setRotary()
void testEngine6451()
void setTest33816EngineConfiguration()
void setEepromTestConfiguration()
void setDiscovery33810Test()
void proteusStimQc()
void proteusLuaDemo()
void proteusDcWastegateTest()
void setDodgeNeonNGCEngineConfiguration()
void setDodgeNeon1995EngineConfiguration()
void setDodgeRam1996()
Definition dodge_ram.cpp:15
@ HELLEN_128_MERCEDES_8_CYL
@ ET_TEST_WITH_BOSCH_QUICK_START
@ TEST_DC_WASTEGATE_DISCOVERY
@ HELLEN_128_MERCEDES_6_CYL
@ HELLEN_154_HYUNDAI_COUPE_BK2
@ HELLEN_121_NISSAN_ALMERA_N16
@ HELLEN_128_MERCEDES_4_CYL
@ HELLEN_154_HYUNDAI_COUPE_BK1
void firmwareError(ObdCode code, const char *fmt,...)
void setFordInline6()
Default values for persistent properties.
void setFordAspireEngineConfiguration()
void setFordEcoboost()
void setFordEscortGt()
void setGmLs4()
Definition gm_ls_4.cpp:15
void setGmLtg()
Definition gm_sbc.cpp:225
void setGmSbcGen5()
Definition gm_sbc.cpp:240
void setGmLnf()
Definition gm_sbc.cpp:204
void setGmLcv()
Definition gm_sbc.cpp:197
void setGmSbc()
Definition gm_sbc.cpp:69
void setHarley()
Definition harley.cpp:16
void setHondaCivicBcm()
Definition honda.cpp:5
void setHonda600()
Definition honda_600.cpp:15
void setProteusHondaOBD2A()
void setHondaK()
void setHondaObd1()
Definition honda_obd1.cpp:9
void setHyundaiPb()
Definition hyundai.cpp:39
void setGenesisCoupeBK1()
Definition hyundai.cpp:431
void setGenesisCoupeBK2()
Definition hyundai.cpp:440
void setMercedesM111EngineConfiguration()
Definition m111.cpp:21
void setMazdaMiataNA94()
void setMazdaMiataNA6()
void setMiataNA6_MAP_Frankenso()
void setMazdaMiata96()
void setMiataNB2_Proteus_TCU()
void setMazdaMiataNB2()
void setMazdaMiataNB2_36()
void setMazdaMiataNB1()
void setHellenMercedes128_4_cyl()
Definition mercedes.cpp:14
void setHellenMercedes128_6_cyl()
Definition mercedes.cpp:29
void setHellenMercedes128_8_cyl()
Definition mercedes.cpp:36
void setMitsubishi3A92()
void setProteusNissanVQ()
Definition nissan_vq.cpp:73
void setHellen121nissanQR()
Definition nissan_vq.cpp:16
void setHellen121nissanVQ()
Definition nissan_vq.cpp:59
@ CUSTOM_UNEXPECTED_ENGINE_TYPE
void setSachs()
Definition sachs.cpp:16
void setSlingshot()
Definition slingshot.cpp:11
void setSubaruEG33Defaults()
Definition subaru.cpp:51
void setSubaru2011()
Definition subaru.cpp:101
void setSubaruEJ18_MRE()
Definition subaru.cpp:23
void configureTcu4R70W()
Definition tc_4.cpp:133
void setProteusAnalogPwmTest()
void setTestCamEngineConfiguration()
void setTestVVTEngineConfiguration()
void setTestEngineIssue366both()
void setTestCrankEngineConfiguration()
void setTestEngineIssue366rise()
void setTestEngineBoschQuickStart()
void setTestDcWastegateConfiguration()
void setTestEngineWithBoschQuickStartCam()
void setToyota1NZFE()
void setToyota_2jz_vics()
Definition toyota_jz.cpp:59
void setHellen121Vag_8_cyl()
Definition vw.cpp:81
void setHellen121Vag_vr6_cyl()
Definition vw.cpp:67
void setVag_5_cyl()
Definition vw.cpp:60
void setVwAba()
Definition vw.cpp:18
void setHellen121Vag_v6_cyl()
Definition vw.cpp:72
void setProteusVwPassatB6()
Definition vw_b6.cpp:134
void setMreVwPassatB6()
Definition vw_b6.cpp:188

Referenced by resetConfigurationExt().

Here is the caller graph for this function:

◆ commonFrankensoAnalogInputs()

void commonFrankensoAnalogInputs ( )

VBatt

Definition at line 720 of file engine_configuration.cpp.

720 {
721 /**
722 * VBatt
723 */
725}
static constexpr engine_configuration_s * engineConfiguration

Referenced by setDodgeNeonNGCEngineConfiguration(), and setFrankensoConfiguration().

Here is the caller graph for this function:

◆ emptyCallbackWithConfiguration()

void emptyCallbackWithConfiguration ( engine_configuration_s engine)

Definition at line 692 of file engine_configuration.cpp.

692 {
693 UNUSED(p_engineConfiguration);
694}
UNUSED(samplingTimeSeconds)

Referenced by resetConfigurationExt().

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

◆ getBoardMetaDcOutputsCount()

int getBoardMetaDcOutputsCount ( )

Definition at line 211 of file board_configuration.cpp.

211 {
212 return 1;
213}

Referenced by sendOutBoardMeta().

Here is the caller graph for this function:

◆ getBoardMetaLowSideOutputsCount()

int getBoardMetaLowSideOutputsCount ( )

Definition at line 276 of file board_configuration.cpp.

276 {
277 return getBoardMetaOutputsCount() - 4;
278}
int getBoardMetaOutputsCount()

Referenced by sendOutBoardMeta().

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

◆ getBoardMetaOutputs()

Gpio * getBoardMetaOutputs ( )

Definition at line 170 of file board_configuration.cpp.

170 {
171 return OUTPUTS;
172}
static Gpio OUTPUTS[]

Referenced by initQcBenchControls(), and setPin().

Here is the caller graph for this function:

◆ getBoardMetaOutputsCount()

int getBoardMetaOutputsCount ( )

Definition at line 166 of file board_configuration.cpp.

166 {
167 return efi::size(OUTPUTS);
168}

Referenced by getBoardMetaLowSideOutputsCount(), sendOutBoardMeta(), and setPin().

Here is the caller graph for this function:

◆ getCommsLedPin()

Gpio getCommsLedPin ( )

Definition at line 3 of file board_configuration.cpp.

3 {
4 return Gpio::D15; /* LED4 - green */
5}

Referenced by initStatusLeds().

Here is the caller graph for this function:

◆ getRunningLedPin()

Gpio getRunningLedPin ( )

Definition at line 7 of file board_configuration.cpp.

7 {
8 return Gpio::D14; /* LED3 - yellow */
9}

Referenced by initWarningRunningPins().

Here is the caller graph for this function:

◆ getWarningLedPin()

Gpio getWarningLedPin ( )

Definition at line 11 of file board_configuration.cpp.

11 {
12 // this board has no warning led
13 return Gpio::Unassigned;
14}
@ Unassigned

Referenced by initWarningRunningPins().

Here is the caller graph for this function:

◆ hackHellenBoardId()

int hackHellenBoardId ( int  detectedId)

Definition at line 55 of file board_configuration.cpp.

55 {
56 if (detectedId == BOARD_ID_VAG121_D) {
57 // wow something bad has happened to that batch of boards?!
58 return BOARD_ID_154HYUNDAI_C;
59 }
60 return detectedId;
61}

Referenced by detectHellenBoardType().

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

◆ incrementGlobalConfigurationVersion()

void incrementGlobalConfigurationVersion ( const char msg)

this is the top-level method which should be called in case of any changes to engine configuration online tuning of most values in the maps does not count as configuration change, but 'Burn' command does

this method is NOT currently invoked on ECU start - actual user input has to happen! See 'preCalculate' or 'startHardware' which are invoked BOTH on start and configuration change

Definition at line 140 of file engine_configuration.cpp.

140 {
142 assertStackVoid("increment", ObdCode::STACK_USAGE_MISC, EXPECTED_REMAINING_STACK);
144 criticalError("too early to invoke incrementGlobalConfigurationVersion %s", msg);
145 }
147#if EFI_DETAILED_LOGGING
148 efiPrintf("set globalConfigurationVersion=%d", globalConfigurationVersion);
149#endif /* EFI_DETAILED_LOGGING */
150
152
154
156
157#if EFI_ELECTRONIC_THROTTLE_BODY
159#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
160
161#if EFI_ENGINE_CONTROL && EFI_PROD_CODE
163#endif
164
165#if EFI_SHAFT_POSITION_INPUT
167#endif /* EFI_SHAFT_POSITION_INPUT */
168#if EFI_EMULATE_POSITION_SENSORS && ! EFI_UNIT_TEST
170#endif /* EFI_EMULATE_POSITION_SENSORS */
171
172 engine->engineModules.apply_all([](auto & m) {
173 m.onConfigurationChange(&activeConfiguration);
174 });
176}
void onConfigurationChangeBenchTest()
void preCalculate()
Definition engine.cpp:334
int globalConfigurationVersion
Definition engine.h:315
type_list< Mockable< InjectorModelPrimary >, Mockable< InjectorModelSecondary >,#if EFI_IDLE_CONTROL Mockable< IdleController >,#endif TriggerScheduler,#if EFI_HPFP &&EFI_ENGINE_CONTROL Mockable< HpfpController >,#endif #if EFI_ENGINE_CONTROL Mockable< ThrottleModel >,#endif #if EFI_ALTERNATOR_CONTROL AlternatorController,#endif MainRelayController, Mockable< IgnitionController >, Mockable< AcController >, PrimeController, DfcoController,#if EFI_HD_ACR HarleyAcr,#endif Mockable< WallFuelController >, KnockController, SensorChecker,#if EFI_ENGINE_CONTROL Mockable< LimpManager >,#endif #if EFI_VVT_PID VvtController1, VvtController2, VvtController3, VvtController4,#endif #if EFI_BOOST_CONTROL BoostController,#endif TpsAccelEnrichment,#if EFI_LAUNCH_CONTROL NitrousController,#endif #if EFI_LTFT_CONTROL LongTermFuelTrim,#endif ShortTermFuelTrim,#include "modules_list_generated.h" EngineModule > engineModules
Definition engine.h:194
void onConfigurationChangeElectronicThrottleCallback(engine_configuration_s *previousConfiguration)
static EngineAccessor engine
Definition engine.h:413
static bool hasRememberedConfiguration
void rememberCurrentConfiguration()
std::optional< setup_custom_board_config_type > custom_board_OnConfigurationChange
engine_configuration_s & activeConfiguration
void applyNewHardwareSettings()
Definition hardware.cpp:314
@ STACK_USAGE_MISC
void onTransitionEvent(TransitionEvent event)
void onConfigurationChangeTriggerCallback()
void onConfigurationChangeRpmEmulatorCallback(engine_configuration_s *previousConfiguration)

Referenced by configureRusefiLuaHooks(), disableTriggerStimulator(), enableExternalTriggerStimulator(), enableOrDisable(), enableTriggerStimulator(), onBurnRequest(), setAnalogInputPin(), setBit(), setByte(), setCrankingInjectionMode(), setCrankingTimingAngle(), setEngineType(), setFloat(), setGlobalTriggerAngleOffset(), setIdleSolenoidFrequency(), setIgnitionMode(), setIgnitionPin(), setIndividualPin(), setInjectionMode(), setInt(), setLogicInputPin(), setShort(), setTriggerInputPin(), setTriggerSimulatorPin(), and setTriggerType().

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

◆ loadConfiguration()

void loadConfiguration ( )

Definition at line 634 of file engine_configuration.cpp.

634 {
635
636#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
637 // Clear the active configuration so that registered output pins (etc) detect the change on startup and init properly
639#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
640
641 /* If board have any storage */
642#if EFI_CONFIGURATION_STORAGE
643 if (IGNORE_FLASH_CONFIGURATION) {
644 engineConfiguration->engineType = DEFAULT_ENGINE_TYPE;
647 } else {
648 // this call reads configuration from flash memory or sets default configuration
649 // if flash state does not look right.
651 }
652#else
653 // This board doesn't load configuration, initialize the default
654 engineConfiguration->engineType = DEFAULT_ENGINE_TYPE;
656#endif /* EFI_CONFIGURATION_STORAGE */
657
658 // Force any board configuration options that humans shouldn't be able to change
660}
std::optional< setup_custom_board_overrides_type > custom_board_ConfigOverrides
void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e engineType)
void prepareVoidConfiguration(engine_configuration_s *p_engineConfiguration)
void readFromFlash()
void writeToFlashNow()

Referenced by runRusEfi().

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

◆ onBoardStandBy()

void onBoardStandBy ( )

Definition at line 44 of file board_configuration.cpp.

44 {
45 efiPrintf("K: onBoardStandBy");
47}
void hellenBoardStandBy()

Referenced by configureRusefiLuaUtilHooks().

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

◆ onBurnRequest()

void onBurnRequest ( )

Definition at line 114 of file engine_configuration.cpp.

114 {
116 wipeStrings();
117
119}
void incrementGlobalConfigurationVersion(const char *msg)
static void wipeStrings()

Referenced by requestBurn().

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

◆ prepareVoidConfiguration()

void prepareVoidConfiguration ( engine_configuration_s activeConfiguration)

Definition at line 228 of file engine_configuration.cpp.

228 {
229 criticalAssertVoid(p_engineConfiguration != nullptr, "ec NULL");
230 efi::clear(p_engineConfiguration);
231
232 p_engineConfiguration->clutchDownPinMode = PI_PULLUP;
233 p_engineConfiguration->clutchUpPinMode = PI_PULLUP;
234 p_engineConfiguration->brakePedalPinMode = PI_PULLUP;
235}

Referenced by loadConfiguration(), and setDefaultEngineConfiguration().

Here is the caller graph for this function:

◆ rememberCurrentConfiguration()

void rememberCurrentConfiguration ( )

Definition at line 92 of file engine_configuration.cpp.

92 {
93#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
95#else
97#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
99}
bool isActiveConfigurationVoid

Referenced by incrementGlobalConfigurationVersion(), and initEfiWithConfig().

Here is the caller graph for this function:

◆ resetConfigurationExt() [1/2]

void resetConfigurationExt ( configuration_callback_t  boardCallback,
engine_type_e  engineType 
)

boardCallback is invoked after configuration reset but before specific engineType configuration

Let's apply global defaults first

custom board engine defaults. Yes, this overlaps with (older) engine_type_e approach.

Definition at line 662 of file engine_configuration.cpp.

662 {
663 enginePins.reset(); // that's mostly important for functional tests
664 /**
665 * Let's apply global defaults first
666 */
668
669 /**
670 * custom board engine defaults. Yes, this overlaps with (older) engine_type_e approach.
671 */
673
674 // set initial pin groups
676
677 if (boardCallback != nullptr) {
678 boardCallback(engineConfiguration);
679 }
680
681#if EFI_PROD_CODE
682 // call board-specific configuration setup, if needed (for custom boards only)
685#endif // EFI_PROD_CODE
686
687 engineConfiguration->engineType = engineType;
688 applyEngineType(engineType);
690}
std::optional< setup_custom_board_overrides_type > custom_board_BeforeTuneDefaults
Definition hardware.cpp:79
void reset()
Definition efi_gpio.cpp:275
EnginePins enginePins
Definition efi_gpio.cpp:24
static void setDefaultEngineConfiguration()
Global default engine configuration This method sets the global engine configuration defaults....
void setDefaultBasePins()
std::optional< setup_custom_board_overrides_type > custom_board_DefaultConfiguration
void applyNonPersistentConfiguration()
void applyEngineType(engine_type_e engineType)

Referenced by doResetConfiguration(), loadConfiguration(), readFromFlash(), resetConfigurationExt(), and setEngineType().

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

◆ resetConfigurationExt() [2/2]

void resetConfigurationExt ( engine_type_e  engineType)

Definition at line 696 of file engine_configuration.cpp.

696 {
698}
void emptyCallbackWithConfiguration(engine_configuration_s *p_engineConfiguration)
Here is the call graph for this function:

◆ setBoardConfigOverrides()

void setBoardConfigOverrides ( )

Definition at line 16 of file board_configuration.cpp.

16 {
17}

◆ setBoardDefaultConfiguration()

void setBoardDefaultConfiguration ( )

Board-specific configuration defaults.

Definition at line 17 of file board_configuration.cpp.

17 {
18}

◆ setCamOperationMode()

void setCamOperationMode ( )

Definition at line 711 of file engine_configuration.cpp.

Referenced by setFordInline6(), setSubaruEG33Defaults(), and setTestCamEngineConfiguration().

Here is the caller graph for this function:

◆ setConstantDwell()

void setConstantDwell ( floatms_t  dwellMs)

Sets the same dwell time across the whole getRpm() range set dwell X.

Definition at line 182 of file engine_configuration.cpp.

182 {
183 for (int i = 0; i < DWELL_CURVE_SIZE; i++) {
184 config->sparkDwellRpmBins[i] = 1000 * i;
185 }
187}
static constexpr persistent_config_s * config
scaled_channel< uint16_t, 100, 1 > sparkDwellValues[DWELL_CURVE_SIZE]
void setArrayValues(TValue(&array)[TSize], float value)

Referenced by setDefaultIgnition(), setFordInline6(), setTestCamEngineConfiguration(), and setValue().

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

◆ setCrankOperationMode()

void setCrankOperationMode ( )

◆ setDefaultBasePins()

void setDefaultBasePins ( )

Definition at line 237 of file engine_configuration.cpp.

237 {
238#if EFI_PROD_CODE
239 // call overrided board-specific serial configuration setup, if needed (for custom boards only)
240 // needed also by bootloader code
242#endif /* EFI_PROD_CODE */
243
244 // set UART pads configuration based on the board
245// needed also by bootloader code
246#ifdef TS_SECONDARY_UxART_PORT
249#endif // TS_SECONDARY_UxART_PORT
250
253}
void setPinConfigurationOverrides()

Referenced by resetConfigurationExt().

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

◆ setDefaultSdCardParameters()

void setDefaultSdCardParameters ( )

Definition at line 257 of file engine_configuration.cpp.

Referenced by f407_discovery_DefaultConfiguration().

Here is the caller graph for this function:

◆ setFuelTablesLoadBin()

void setFuelTablesLoadBin ( float  minValue,
float  maxValue 
)

Definition at line 189 of file engine_configuration.cpp.

189 {
190 setLinearCurve(config->injPhaseLoadBins, minValue, maxValue, 1);
191 setLinearCurve(config->veLoadBins, minValue, maxValue, 1);
192 setLinearCurve(config->lambdaLoadBins, minValue, maxValue, 1);
193}
void setLinearCurve(TValue(&array)[TSize], float from, float to, float precision=0.01f)

Referenced by setDefaultFuel(), setDodgeNeonNGCEngineConfiguration(), and setVwAba().

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

◆ setTargetRpmCurve()

void setTargetRpmCurve ( float  rpm)

see also setDefaultIdleSpeedTarget()

Definition at line 277 of file engine_configuration.cpp.

277 {
278 setLinearCurve(config->cltIdleRpmBins, CLT_CURVE_RANGE_FROM, 140, 10);
279 setLinearCurve(config->cltIdleRpm, rpm, rpm, 10);
280}
scaled_channel< int16_t, 1, 1 > cltIdleRpmBins[CLT_CURVE_SIZE]
scaled_channel< uint8_t, 1, 20 > cltIdleRpm[CLT_CURVE_SIZE]

Referenced by setGy6139qmbDefaultEngineConfiguration(), and setTargetIdleRpm().

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

◆ setWholeIatCorrTimingTable()

void setWholeIatCorrTimingTable ( float  value)

Definition at line 195 of file engine_configuration.cpp.

195 {
197}
scaled_channel< int16_t, 10, 1 > ignitionIatCorrTable[IAT_IGN_CORR_LOAD_COUNT][IAT_IGN_CORR_COUNT]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)

Referenced by setTestCamEngineConfiguration().

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

◆ setWholeTimingTable()

void setWholeTimingTable ( angle_t  value)

See also crankingTimingAngle

Definition at line 202 of file engine_configuration.cpp.

202 {
204}
scaled_channel< int16_t, 10, 1 > ignitionTable[IGN_LOAD_COUNT][IGN_RPM_COUNT]

Referenced by setDodgeNeon1995EngineConfiguration(), setVwAba(), and testEngine6451().

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

Variable Documentation

◆ activeConfiguration

engine_configuration_s& activeConfiguration
extern

◆ config

persistent_config_s * config = &persistentState.persistentConfiguration
staticconstexpr

Definition at line 82 of file engine_configuration.h.

Referenced by __early_sdram_init(), _pal_lld_init(), ACMP_GetDefaultConfig(), ACMP_GetDefaultDiscreteModeConfig(), ACMP_Init(), ACMP_SetChannelConfig(), ACMP_SetDACConfig(), ACMP_SetDiscreteModeConfig(), ACMP_SetFilterConfig(), ACMP_SetRoundRobinConfig(), ADC12_GetDefaultConfig(), ADC12_Init(), ADC12_SetChannelConfig(), ADC12_SetHardwareCompareConfig(), addMafPoint(), alphax_2chan_defaultConfiguration(), alphax_4chan_defaultConfiguration(), alphax_4kgdi_defaultConfiguration(), alphax_8chan_defaultConfiguration(), applyIACposition(), buildTimingMap(), HpfpQuantity::calcFuelPercent(), HpfpQuantity::calcPI(), cannedboostRpmBins(), cannedcltCrankingCorr(), cannedcltIdleCorrBins(), cannedcltIdleRpm(), canneddwellVoltageCorrValues(), cannedidleAdvance(), cannedignitionLoadBins(), cannedignitionRpmBins(), cannedignitionTable(), cannedpedalToTpsRpmBins(), cannedsparkDwellValues(), cannedveLoadBins(), cannedveRpmBins(), LongTermIdleTrim::checkIfShouldSave(), CLOCK_GetCurSysClkConfig(), CLOCK_InitFirc(), CLOCK_InitSirc(), CLOCK_InitSysOsc(), CLOCK_InitSysPll(), CLOCK_SetHsrunModeSysClkConfig(), CLOCK_SetRunModeSysClkConfig(), CLOCK_SetVlprModeSysClkConfig(), commonGenesisCoupe(), commonPassatB6(), WallFuelController::computeBeta(), WallFuelController::computeTau(), configureRusefiLuaHooks(), configureTcu4R70W(), FuelLevelFunc::convert(), couplecannedignitionTable(), couplecannedveTable(), customBoardOnConfigurationChange(), defaultsOrFixOnBurn(), EDMA_GetDefaultConfig(), EDMA_Init(), EDMA_PrepareTransfer(), EDMA_SetChannelPreemptionConfig(), EDMA_SetMinorOffsetConfig(), EDMA_SetTransferConfig(), EDMA_SubmitTransfer(), EDMA_TcdSetMinorOffsetConfig(), EDMA_TcdSetTransferConfig(), ThrottleModel::effectiveArea(), f407_discovery_DefaultConfiguration(), flexnvm_convert_start_address(), FLEXNVM_DflashErase(), FLEXNVM_DflashGetProtection(), FLEXNVM_DflashProgram(), FLEXNVM_DflashProgramSection(), FLEXNVM_DflashSetProtection(), FLEXNVM_DflashVerifyErase(), FLEXNVM_DflashVerifyProgram(), FLEXNVM_EepromGetProtection(), FLEXNVM_EepromSetProtection(), FLEXNVM_EepromWrite(), FLEXNVM_EraseAll(), FLEXNVM_EraseAllUnsecure(), FLEXNVM_GetProperty(), FLEXNVM_GetSecurityState(), FLEXNVM_Init(), FLEXNVM_ProgramPartition(), FLEXNVM_ReadResource(), FLEXNVM_SecurityBypass(), FLEXNVM_SetFlexramFunction(), FLEXNVM_VerifyEraseAll(), FTFx_API_Init(), FTFx_API_UpdateFlexnvmPartitionStatus(), ftfx_check_mem_range(), ftfx_check_resource_range(), FTFx_CMD_Erase(), FTFx_CMD_EraseAll(), FTFx_CMD_EraseAllExecuteOnlySegments(), FTFx_CMD_EraseAllUnsecure(), FTFx_CMD_Program(), FTFx_CMD_ProgramOnce(), FTFx_CMD_ProgramPartition(), FTFx_CMD_ProgramSection(), FTFx_CMD_ReadOnce(), FTFx_CMD_ReadResource(), FTFx_CMD_SecurityBypass(), FTFx_CMD_SetFlexramFunction(), FTFx_CMD_SwapControl(), FTFx_CMD_VerifyErase(), FTFx_CMD_VerifyEraseAll(), FTFx_CMD_VerifyEraseAllExecuteOnlySegments(), FTFx_CMD_VerifyProgram(), ftfx_command_sequence(), ftfx_init_ifr(), FTFx_REG_GetSecurityState(), fuelBenchMode(), getAdvanceCorrections(), getBaroCorrection(), IdleController::getClosedLoop(), getCltFuelCorrection(), getCltTimingCorrection(), getCommsLedPin(), getConfigValueByHash(), getCrankingAdvance(), getCrankingFuel3(), IdleController::getCrankingOpenLoop(), IdleController::getCrankingTaperFraction(), getCurveValue(), getCylinderFuelTrim(), getFuelALSCorrection(), getIatFuelCorrection(), IdleController::getIdlePosition(), InjectorModelWithConfig::getInjectionDuration(), getInjectionOffset(), IgnitionState::getInterpolatedIgnitionAngle(), IgnitionState::getInterpolatedIgnitionTrim(), KnockController::getKnockThreshold(), LongTermIdleTrim::getLtitFactor(), LambdaMonitor::getMaxAllowedLambda(), KnockController::getMaximumRetard(), BoostController::getOpenLoop(), EtbController::getOpenLoop(), IdleController::getOpenLoop(), getPostCrankingFuelCorrection(), SpeedDensityAirmass::getPredictiveMap(), GearControllerBase::getRangeStateArray(), getRunningAdvance(), IdleController::getRunningOpenLoop(), AlternatorController::getSetpoint(), BoostController::getSetpoint(), IgnitionState::getSparkDwell(), ShiftTorqueReductionController::getSparkSkipRatio(), getStage2InjectionFraction(), FuelComputer::getTargetLambda(), IdleController::getTargetRpm(), ShiftTorqueReductionController::getTorqueReductionIgnitionRetard(), TpsAccelEnrichment::getTpsEnrichment(), IgnitionState::getTrailingSparkAngle(), AirmassVeModelBase::getVe(), gpio_init(), LongTermIdleTrim::hasValidData(), hellen_honda_k_boardDefaultConfiguration(), DynoView::init(), initBoostCtrl(), initCanGpioMsiobox(), initElectronicThrottle(), initFuelMap(), initScriptImpl(), initSpeedDensity(), initVvtActuators(), TransmissionControllerBase::isShiftCompleted(), isTouchingVe(), kinetis_boardConfigOverrides(), kLineThread(), LtftState::load(), LongTermIdleTrim::loadLtitFromConfig(), LPUART_GetDefaultConfig(), LPUART_Init(), m73engine(), miataNA_setCltIdleCorrBins(), miataNA_setCltIdleRpmBins(), miataNA_setIacCoastingBins(), miataNA_setIgnitionTable(), miataNAcommonEngineSettings(), mreSecondaryCan(), HpfpController::onFastCallback(), DynoView::onRpm(), pbcannedignitionTable(), pbcannedinjectionPhase(), pbcannedlambdaTable(), pbcannedveTable(), pbcannedvvtTable1(), pbcannedvvtTable2(), PORT_SetDigitalFilterConfig(), PORT_SetMultipleInterruptPinsConfig(), PORT_SetMultiplePinsConfig(), PORT_SetPinConfig(), PORT_SetPinInterruptConfig(), Engine::preCalculate(), proteusDcWastegateTest(), proteusLuaDemo(), HpfpQuantity::pumpAngleFuel(), recalculateAuxValveTiming(), Gm4l6xTransmissionController::set32State(), setBosch0280218037(), setBoschHDEV_5_injectors(), setBoschVNH2SP30Curve(), setCommonMazdaNB(), Engine::setConfig(), setConfigValueByName(), setConstantDwell(), setCrankingFuel(), setCrankingIACExtra(), setDefaultAlternatorParameters(), setDefaultBaseEngine(), setDefaultBoostParameters(), setDefaultCltTimingCorrection(), setDefaultCranking(), setDefaultEngineConfiguration(), setDefaultEngineNoiseTable(), setDefaultEtbBiasCurve(), setDefaultEtbParameters(), setDefaultFuel(), setDefaultIatTimingCorrection(), setDefaultIdleOpenLoopParameters(), setDefaultIdleSpeedTarget(), setDefaultIgnition(), setDefaultLambdaTable(), setDefaultScriptParameters(), setDefaultTrailingSparkTable(), setDefaultVETable(), setDefaultWallWetting(), setDefaultWarmupFuelEnrichment(), setDodgeNeonNGCEngineConfiguration(), setDynoDefaults(), setFuelTablesLoadBin(), setGdiDefaults(), setGDIFueling(), setGmGdi(), setGmLs4(), setHarley(), setHitachiEtbBiasBins(), setHondaCivicBcm(), setHondaK(), setHpfpLobeProfileAngle(), setHyundaiPb(), setMafDecodingBins(), setMAFTransferFunction(), setManualIdleValvePosition(), setMapVeTable(), setMazdaMiata96(), setMazdaMiataEngineNB2Defaults(), setMazdaMiataNbTpsTps(), setMercedesM111EngineConfiguration(), setMiataNB2_Proteus_TCU(), setNissanVqEngineConfig(), Generic4TransmissionController::setPcState(), setPrometheusDefaults(), setProteusVwPassatB6(), setScriptCurve1Value(), setScriptCurve2Value(), setSingleCoilDwell(), setSubaruEG33Defaults(), setTargetRpmCurve(), Generic4TransmissionController::setTccState(), setTestDcWastegateConfiguration(), setTimingRpmBin(), setValue(), setVwAba(), setWholeIatCorrTimingTable(), setWholeTimingMap(), setWholeTimingTable(), AutomaticGearController::shift(), SMC_SetPowerModeLls(), SMC_SetPowerModeVlls(), testEngine6451(), AutomaticGearController::update(), LongTermIdleTrim::update(), SimpleTransmissionController::update(), LimpManager::updateRevLimit(), LimpManager::updateState(), ShiftTorqueReductionController::updateTimeConditionSatisfied(), validateConfigOnStartUpOrBurn(), and validateGdi().

◆ engineConfiguration

engine_configuration_s * engineConfiguration = &persistentState.persistentConfiguration.engineConfiguration
staticconstexpr

Definition at line 81 of file engine_configuration.h.

Referenced by adcTriggerTurnOnInputPin(), addEngineSnifferOutputPinEvent(), FuelSchedule::addFuelEvents(), adjustCrankPhase(), alphax_2chan_ConfigOverrides(), alphax_2chan_defaultConfiguration(), alphax_4chan_defaultConfiguration(), alphax_4kgdi_boardConfigOverrides(), alphax_4kgdi_defaultConfiguration(), alphax_8chan_defaultConfiguration(), alphax_8chan_reva_boardDefaultConfiguration(), alphax_gold_boardDefaultConfiguration(), alphax_gold_OnConfigurationChange(), alphax_silver_boardConfigOverrides(), alphax_silver_revA_boardConfigOverrides(), AlternatorController::AlternatorController(), analogGetVrefDiagnostic(), TriggerCentral::applyCamGapOverride(), applyIACposition(), applyMapMinBufferLength(), applyPidSettings(), TriggerCentral::applyShapesConfiguration(), TriggerCentral::applyTriggerGapOverride(), assertTimeIsLinear(), AtlasBoardConfigOverrides(), bmwM52(), buildTimingMap(), calcFastAdcIndexes(), HpfpQuantity::calcFuelPercent(), HpfpQuantity::calcPI(), LaunchControlBase::calculateRPMLaunchCondition(), LaunchControlBase::calculateSparkSkipRatio(), canDashboardAim(), canDashboardHaltech(), canInfo(), cannedprimeBins(), cannedprimeValues(), cdmIonInit(), LongTermIdleTrim::checkIfShouldSave(), EtbController::checkJam(), NitrousController::checkLuaGauge(), EtbController::checkStatus(), NitrousController::checkTriggerPinState(), common2jz(), commonFrankensoAnalogInputs(), commonGenesisCoupe(), commonPassatB6(), WallFuelController::computeBeta(), WallFuelController::computeTau(), configureAccelerometerPins(), configureHellenCanTerminator(), configureInputs(), configureMapFunction(), configureRusefiLuaHooks(), configureRusefiLuaUtilHooks(), configureTcu4R70W(), InputShaftSpeedConverter::convert(), TurbochargerSpeedConverter::convert(), VehicleSpeedConverter::convert(), FuelLevelFunc::convert(), InjectorModelBase::correctInjectionPolynomial(), customBoardOnConfigurationChange(), DfcoController::cutFuel(), cypressBoardDefaultConfiguration(), CanTsListener::decodeFrame(), TriggerCentral::decodeMapCam(), decodeTpsSentValue(), TriggerDecoderBase::decodeTriggerEvent(), defaultsOrFixOnBurn(), deinitAuxSensors(), deinitFluidPressure(), deinitMap(), deinitThermistors(), deinitVbatt(), GearDetector::determineGearFromRatio(), IdleController::determinePhase(), FanControl1::disableAtSpeed(), FanControl2::disableAtSpeed(), FanControl1::disableWhenStopped(), FanControl2::disableWhenStopped(), disengageStarterIfNeeded(), EtbImpl< TBase >::doAutocal(), doInitElectronicThrottle(), doPeriodicSlowCallback(), doResetConfiguration(), doRunFuelInjBench(), doRunSparkBench(), doStartCranking(), enableHellenSpi1(), enableHellenSpi2(), enableHellenSpi3(), enableOrDisable(), FanControl1::enableWithAc(), FanControl2::enableWithAc(), endSimultaneousInjectionOnlyTogglePins(), TriggerCentral::engineMovedRecently(), errorHandlerInit(), executeTSCommand(), executorStatistics(), extiTriggerTurnOnInputPin(), f407_discovery_boardInitHardware(), f407_discovery_DefaultConfiguration(), Biquad::filter(), FuelLevelFunc::filterFuelValue(), filterMapValue(), findBaudIndex(), HpfpLobe::findNextLobe(), TriggerStimulatorHelper::findTriggerSyncPoint(), fireSparkAndPrepareNextSchedule(), flexExtiCallback(), fuelBenchMode(), getAcrState(), AcController::getAcState(), getAdcChannelForTrigger(), IgnitionState::getAdvance(), AemXSeriesWideband::getAemCanId(), getAfr(), SpeedDensityAirmass::getAirflow(), AlphaNAirmass::getAirmass(), MafAirmass::getAirmassImpl(), SpeedDensityBase::getAirmassImpl(), getAirmassModel(), getAnalogInputDividerCoefficient(), getAnalogInputDividerCoefficient(), OneCylinder::getAngleOffset(), getAuxDigital(), InjectorModelWithConfig::getBaseFlowRate(), getBaseFuelMass(), getBit(), getBoardId(), getBoardMetaDcOutputsCount(), getBoardMetaLowSideOutputsCount(), getBoardMetaOutputs(), getBoardMetaOutputsCount(), getBrakePedalState(), getByte(), AlternatorController::getClosedLoop(), IdleController::getClosedLoop(), EtbController::getClosedLoopAutotune(), BoostController::getClosedLoopImpl(), getClutchDownState(), getClutchUpState(), getConfigValueByHash(), ShortTermFuelTrim::getCorrection(), ShortTermFuelTrim::getCorrectionState(), getCrankingAdvance(), getCrankingFuel3(), getCurrentIgnitionMode(), getCurrentInjectionMode(), getCurveIndexByName(), getCylinderKnockBank(), getCylinderNumberAtIndex(), getDacValue(), GearDetector::getDriveshaftRpm(), FanControl1::getFanOffTemp(), FanControl2::getFanOffTemp(), FanControl1::getFanOnTemp(), FanControl2::getFanOnTemp(), getFiringOrderLength(), getFiringOrderTable(), getFloat(), LaunchControlBase::getFuelCoefficient(), NitrousController::getFuelCoefficient(), VvlController::getFuelCoefficient(), InjectorModelWithConfig::getFuelDifferentialPressure(), FuelLevelFunc::getFuelLevelAlpha(), InjectorModelPrimary::getFuelReferencePressure(), InjectorModelSecondary::getFuelReferencePressure(), IdleController::getIdlePid(), IdleController::getIdlePosition(), IdleController::getIdleTimingAdjustment(), getIgnitionPinForIndex(), getInjectionAngleCorrection(), InjectorModelWithConfig::getInjectionDuration(), getInjectionMass(), getInjectionModeDurationMultiplier(), InjectorModelPrimary::getInjectorCompensationMode(), InjectorModelSecondary::getInjectorCompensationMode(), getInjectorDutyCycle(), getInjectorDutyCycleStage2(), getInt(), ShortTermFuelTrim::getLearningState(), LimpManager::getLimitingFuelCorrection(), LimpManager::getLimitingTimingRetard(), getLoad(), NitrousController::getLuaGauge(), SpeedDensityAirmass::getMap(), getMapCfg(), getMcuTemperature(), getMcuVrefVoltage(), getMisoPin(), getMosiPin(), getMultiSparkCount(), InjectorModelPrimary::getNonlinearMode(), getNumberOfInjections(), getNumberOfSparks(), AlternatorController::getOpenLoop(), BoostController::getOpenLoop(), IdleController::getOpenLoop(), RpmCalculator::getOperationMode(), getPerCylinderFiringOrderOffset(), getPidForDcFunction(), PrimeController::getPrimeDuration(), AemXSeriesWideband::getReCanId(), GearDetector::getRpmInGear(), getRunningAdvance(), IdleController::getRunningOpenLoop(), getSckPin(), AlternatorController::getSetpoint(), BoostController::getSetpoint(), EtbController::getSetpointEtb(), getSettingIndexByName(), getShort(), InjectorModelPrimary::getSmallPulseBreakPoint(), InjectorModelPrimary::getSmallPulseFlowRate(), IgnitionState::getSparkDwell(), IgnitionState::getSparkHardwareLatencyCorrection(), ShiftTorqueReductionController::getSparkSkipRatio(), getStage2InjectionFraction(), getStandardAirCharge(), DfcoController::getState(), FuelComputer::getStoichiometricRatio(), getTableIndexByName(), FuelComputer::getTargetLambdaLoadAxis(), IdleController::getTargetRpm(), IFuelComputer::getTChargeCoefficient(), LambdaMonitor::getTimeout(), VvlController::getTimingModifier(), DfcoController::getTimingRetard(), TpsAccelEnrichment::getTpsEnrichment(), PrimaryTriggerConfiguration::getType(), VvtTriggerConfiguration::getType(), getValue(), AirmassVeModelBase::getVe(), getWidebandBus(), getWorkingPageAddr(), gmRailSensor(), hackEngineConfigurationPointer(), handleCanFrame(), TriggerEmulatorHelper::handleEmulatorCallback(), handleHonda(), handleShaftSignal(), TriggerCentral::handleShaftSignal(), handleVvtCamSignal(), harleyEngine(), hasAcToggle(), hasAfrSensor(), hellen112_17_boardConfigOverrides(), hellen112_17_boardDefaultConfiguration(), hellen121_nissan_boardConfigOverrides(), hellen121_nissan_boardDefaultConfiguration(), hellen121_vag_boardDefaultConfiguration(), hellen128_boardConfigOverrides(), hellen128_boardDefaultConfiguration(), hellen154_hyundai_boardConfigOverrides(), hellen154_hyundai_boardDefaultConfiguration(), hellen154hyundai_f7_boardConfigOverrides(), hellen154hyundai_f7_boardDefaultConfiguration(), hellen81_boardDefaultConfiguration(), hellen88_boardConfigOverrides(), hellen88_boardDefaultConfiguration(), hellen_gm_e67_boardDefaultConfiguration(), hellen_honda_k_boardConfigOverrides(), hellen_honda_k_boardDefaultConfiguration(), hellen_MiataNA6_boardDefaultConfiguration(), hellen_MiataNA96_boardConfigOverrides(), hellen_MiataNA96_boardDefaultConfiguration(), hellen_MiataNB1_boardDefaultConfiguration(), hellen_MiataNB2_boardConfigOverrides(), hellen_MiataNB2_boardDefaultConfiguration(), hellenWbo(), hpfpValveBench(), hwHandleVvtCamSignal(), IdleController::init(), MapAveragingModule::init(), TachometerModule::init(), RegisteredOutputPin::init(), ButtonShiftController::init(), GenericGearController::init(), SimpleTransmissionController::init(), Generic4TransmissionController::init(), Gm4l6xTransmissionController::init(), VvtController::init(), EtbController::init(), initAccelerometer(), initAlternatorCtrl(), initAuxDigital(), initAuxSensors(), initAuxSpeedSensors(), initAuxValves(), initBaro(), initBoostCtrl(), initCan(), initCanGpioMsiobox(), initCanSensors(), initCanVssSupport(), initDac(), initDcMotor(), initDcMotor(), initEgt(), initElectronicThrottle(), initFlexSensor(), initFluidPressure(), initFuelLevel(), initGearController(), GearDetector::initGearDetector(), initGpPwm(), initGps(), initHardware(), DualHBridgeStepper::initialize(), initializeIgnitionActions(), initializeMmcBlockDevice(), TriggerWaveform::initializeTriggerWaveform(), initIgnitionAdvanceControl(), initInputShaftSpeedSensor(), initKLine(), initLambda(), initMaf(), initMap(), initMapDecoder(), initMiscOutputPins(), initOldAnalogInputs(), initPotentiometers(), initRangeSensors(), initRealHardwareEngineController(), initSensors(), initSmartGpio(), initSoftwareKnock(), initSpeedometer(), initSpiModules(), initStartStopButton(), initStft(), initThermistors(), initTps(), GearControllerBase::initTransmissionController(), initTriggerScope(), initTurbochargerSpeedSensor(), initVbatt(), initVehicleSpeedSensor(), initVrThresholdPwm(), initWave(), AntilagSystemBase::isALSMaxCLTCondition(), AntilagSystemBase::isALSMaxRPMCondition(), AntilagSystemBase::isALSMaxThrottleIntentCondition(), AntilagSystemBase::isALSMinCLTCondition(), AntilagSystemBase::isALSMinRPMCondition(), isBoostControlSolenoidMode(), IdleController::isCoastingAdvance(), LambdaMonitorBase::isCurrentlyGood(), isDigitalTps1(), WaveChart::isFull(), isGdiEngine(), isGpsEnabled(), IdleController::isIdlingOrTaper(), isIgnVoltage(), AntilagSystemBase::isInsideALSSwitchCondition(), AntilagSystemBase::isInsideALSTimerCondition(), LaunchControlBase::isInsideSpeedCondition(), LaunchControlBase::isInsideSwitchCondition(), LaunchControlBase::isInsideTpsCondition(), LaunchControlBase::isLaunchFuelRpmRetardCondition(), LaunchControlBase::isLaunchRpmRetardCondition(), LaunchControlBase::isLaunchSparkRpmRetardCondition(), isLockedFromUser(), TriggerCentral::isMapCamSync(), isMilEnabled(), RegisteredOutputPin::isPinConfigurationChanged(), isPrimeInjectionPulseSkipped(), isSdCardEnabled(), isShiftTorqueBelowTemperatureThreshold(), WaveChart::isStartedTooLongAgo(), isTuningVeNow(), LongTermIdleTrim::isValidConditionsForLearning(), PrimaryTriggerConfiguration::isVerboseTriggerSynchDetails(), VvtTriggerConfiguration::isVerboseTriggerSynchDetails(), WarningCodeState::isWarningNow(), WarningCodeState::isWarningNow(), kinetis_boardConfigOverrides(), kLineThread(), LtftState::load(), loadConfiguration(), logVvtFront(), lookupOperationMode(), lua_getAirmassResolveMode(), lua_getAuxDigital(), lua_setDebug(), lua_setTickRate(), lua_vin(), luaHeapAlloc(), m73engine(), m74_9_boardConfigOverrides(), m74_9_boardDefaultConfiguration(), mc33810defaults(), miataNAcommonEngineSettings(), microrusefi_boardConfigOverrides(), microrusefi_boardDefaultConfiguration(), mlgLogger(), mreBCM(), mreSecondaryCan(), noFiringUntilVvtSync(), BoostController::observePlant(), TpsAccelEnrichment::onConfigurationChange(), MapAveragingModule::onConfigurationChange(), onConfigurationChangeBenchTest(), onConfigurationChangeRpmEmulatorCallback(), onConfigurationChangeTriggerCallback(), onEcuStartDoSomethingTriggerInputPins(), TpsAccelEnrichment::onEngineCycleTps(), MapAveragingModule::onEnginePhase(), onFastAdcComplete(), HpfpController::onFastCallback(), AlternatorController::onFastCallback(), BoostController::onFastCallback(), VvtController::onFastCallback(), KnockControllerBase::onFastCallback(), MapAveragingModule::onFastCallback(), TachometerModule::onFastCallback(), PrimeController::onIgnitionStateChanged(), KnockControllerBase::onKnockSenseCompleted(), TpsAccelEnrichment::onNewValue(), AcController::onSlowCallback(), HarleyAcr::onSlowCallback(), NitrousController::onSlowCallback(), FuelPumpController::onSlowCallback(), VvlController::onSlowCallback(), Engine::onSparkFireKnockSense(), onStartKnockSampling(), onTriggerEventSparkLogic(), Engine::OnTriggerSynchronization(), InjectionEvent::onTriggerTooth(), FuelSchedule::onTriggerTooth(), packEngineMode(), EngineState::periodicFastCallback(), Engine::periodicSlowCallback(), CanWrite::PeriodicTask(), pickEtbOrStepper(), HpfpController::pinTurnOn(), pokeAuxDigital(), StepperMotorBase::postCurrentPosition(), Engine::preCalculate(), prepareCylinderIgnitionSchedule(), prepareIgnitionSchedule(), prepareLogFileName(), prepareOutputSignals(), printConfiguration(), printEngineSnifferPinMappings(), printGpsInfo(), printMAPInfo(), printMmcPinout(), printOverallStatus(), printSentInfo(), printSpiState(), printStatus(), printUid(), processCanRxImu(), processCanRxMessage(), processCanRxSecondVss(), processCanRxVss(), processCanRxVssImpl(), processHyundai(), processLastKnockEvent(), processNissanSecondVss(), prometheus_boardDefaultConfiguration(), proteus_boardConfigOverrides(), proteus_boardDefaultConfiguration(), proteusDcWastegateTest(), proteusLuaDemo(), proteusStimQc(), qcSetEtbState(), readFromFlash(), recalculateAuxValveTiming(), AemXSeriesWideband::refreshSmoothedLambda(), WarningCodeState::refreshTs(), rememberCurrentConfiguration(), resetConfigurationExt(), LambdaMonitorBase::restoreConditionsMet(), rpmShaftPositionCallback(), s105_boardConfigOverrides(), s105_boardDefaultConfiguration(), HpfpController::scheduleNextCycle(), sdLogger(), sdLoggerStart(), sdLoggerStop(), sdStatistics(), sendCanVerbose(), CanStreamerState::sendDataTimeout(), sendQcBenchBoardStatus(), sendWidebandInfo(), AemXSeriesWideband::sensorType(), sentPressureDecode(), sentTpsDecode(), set201xHyundai(), set4CylGmEcotec3(), setAccelerometerSpi(), setAdcChannelOverrides(), setAlgorithm(), setAlternatorPin(), setAnalogInputPin(), setBasicNotECUmode(), setBit(), setBMW_M73_TwoCoilUnitTest(), setBodyControlUnit(), setBoschHDEV_5_injectors(), setBoschVAGETB(), setByte(), setCamOperationMode(), setCanFrankensoDefaults(), setCanType(), setCanVss(), setChartSize(), setCommonMazdaNB(), setConfigValueByName(), setCrankingInjectionMode(), setCrankingRpm(), setCrankingTimingAngle(), setCrankOperationMode(), setCustomMap(), setDebugMode(), setDefaultAlternatorParameters(), setDefaultBaseEngine(), setDefaultBasePins(), setDefaultBoostOpenLoopParameters(), setDefaultBoostParameters(), setDefaultCanSettings(), BoostController::setDefaultConfiguration(), FanController::setDefaultConfiguration(), setDefaultCranking(), setDefaultEngineConfiguration(), setDefaultEngineNoiseTable(), setDefaultEtbParameters(), setDefaultFrankensoStepperIdleParameters(), setDefaultFuel(), setDefaultFuelCutParameters(), setDefaultGppwmParameters(), setDefaultHellenAtPullUps(), setDefaultHPFP(), setDefaultIdleParameters(), setDefaultIgnition(), setDefaultLambdaProtection(), setDefaultLtftSettings(), setDefaultMultisparkParameters(), setDefaultPriming(), setDefaultSdCardParameters(), setDefaultSensorInputs(), setDefaultStftSettings(), setDefaultVrThresholds(), setDefaultWallWetting(), setDefaultWboSettings(), setDiscovery33810Test(), setDodgeNeon1995EngineConfiguration(), setDodgeNeonNGCEngineConfiguration(), setDodgeRam1996(), setEepromTestConfiguration(), setEgoSensor(), setEngineBMW_M73_microRusEfi(), setEngineBMW_M73_Proteus(), setEngineType(), setEtbPID(), setEtbTestConfiguration(), setFiringOrder(), setFlatInjectorLag(), setFloat(), setFordAspireEngineConfiguration(), setFordEcoboost(), setFordEscortGt(), setFordInline6(), setFrankensoConfiguration(), setGDIFueling(), setGdiWallWetting(), setGenesisCoupeBK1(), setGenesisCoupeBK2(), setGlobalTriggerAngleOffset(), setGmEcotec3(), setGmGdi(), setGmLcv(), setGmLnf(), setGmLs4(), setGmLtg(), setGmSbc(), setGmSbcGen5(), setGy6139qmbDefaultEngineConfiguration(), setHarley(), setHellen121nissanAltimaN16(), setHellen121nissanQR(), setHellen121nissanVQ(), setHellen121Vag_8_cyl(), setHellen121Vag_v6_cyl(), setHellen121Vag_vr6_cyl(), setHellen128ETBConfig(), setHellen64Can(), setHellen64SdCardSpi(), setHellenAnalogDividers(), setHellenCan(), setHellenCan2(), setHellenMercedes128_4_cyl(), setHellenMercedes128_6_cyl(), setHellenMercedes128_8_cyl(), setHellenMMbaro(), setHellenSdCardSpi1Hardware(), setHellenSdCardSpi2(), setHellenSdCardSpi3(), setHellenSdCardSpi3NoCS(), setHellenVbatt(), setHitachiEtbCalibration(), setHonda600(), setHondaCivicBcm(), setHondaK(), setHondaObd1(), setHyundaiPb(), setIdlePin(), setIdleSolenoidFrequency(), setIgnitionMode(), setIgnitionPin(), setIgnitionPins(), StepperMotorBase::setInitialPosition(), setInjectionMode(), setInjectorPins(), setInline4(), setInt(), setL9779TestConfiguration(), setLeftRightBanksNeedBetterName(), setLogicInputPin(), setMaverickX3(), setMazdaMiata96(), setMazdaMiataEngineNB2Defaults(), setMazdaMiataNA6(), setMazdaMiataNA94(), setMazdaMiataNB1(), setMazdaMiataNB2(), setMazdaMiataNB2_36(), setMazdaMiataNbInjectorLag(), setMegaUaefiBoardConfigOverrides(), setMercedesM111EngineConfiguration(), setMiataNA6_MAP_Frankenso(), setMiataNB2_Proteus_TCU(), setMitsubishi3A92(), setMreVwPassatB6(), setNissanVqEngineConfig(), BoostController::setOutput(), EtbController::setOutput(), setPinConfigurationOverrides(), setPPSCalibration(), setPPSInputs(), setPrometheusDefaults(), setProteusAnalogPwmTest(), setProteusEtbIO(), setProteusHitachiEtbDefaults(), setProteusNissanVQ(), setProteusVwPassatB6(), setRotary(), setRpmHardLimit(), RpmCalculator::setRpmValue(), setSachs(), setSerialConfigurationOverrides(), setShort(), setSlingshot(), setSpiMode(), RpmCalculator::setSpinningUp(), setStepperHw(), setSubaru2011(), setSubaruEG33Defaults(), setSubaruEJ18_MRE(), setTest33816EngineConfiguration(), setTestCamEngineConfiguration(), setTestCrankEngineConfiguration(), setTestDcWastegateConfiguration(), setTestEngineBoschQuickStart(), setTestEngineIssue366both(), setTestEngineWithBoschQuickStartCam(), setTestVVTEngineConfiguration(), setToyota1NZFE(), setToyota_2jz_vics(), setTPS1Calibration(), setTPS1Calibration(), setTPS1Inputs(), setTriggerEmulatorRPM(), setTriggerInputPin(), setTriggerSimulatorPin(), setTriggerType(), setTsSpeed(), setupDefaultSensorInputs(), setupDefaultSensorInputs(), setupEtb(), setupSdCard(), setupTle8888(), setupTLE9201(), setupTLE9201IncludingStepper(), setupVbatt(), setVag_5_cyl(), setValue(), Dac::SetVoltage(), setVssPin(), setVwAba(), shouldInvertVvt(), skipToothSpecialShape(), DualHBridgeStepper::sleep(), slowStartStopButtonCallback(), small_can_board_boardConfigOverrides(), small_can_board_boardDefaultConfiguration(), LongTermIdleTrim::smoothLtitTable(), speedoUpdate(), EnginePins::startAuxValves(), startBoostPin(), startCanPins(), startDwellByTurningSparkPinHigh(), startEgt(), startIdleThread(), EnginePins::startIgnitionPins(), EnginePins::startInjectionPins(), startKLine(), startKnockSampling(), startLua(), startPwm(), startSampling(), startSent(), startSerialChannels(), startSimulatedTriggerSignal(), startSimultaneousInjection(), startSmartCsPins(), startSwitchPins(), startTriggerEmulatorPins(), startTriggerInputPins(), DualHBridgeStepper::step(), stopSmartCsPins(), CanStreamerState::streamAddToTxTimeout(), subaru_eg33_boardConfigOverrides(), subaru_eg33_boardDefaultConfiguration(), super_uaefi_boardConfigOverrides(), super_uaefi_boardDefaultConfiguration(), tdg_pdm8_boardConfigOverrides(), testEngine6451(), tle8888startup(), triggerInfo(), turnOnSpi(), turnOnTriggerInputPin(), turnSparkPinHighStartCharging(), turnVvtPidOn(), uaefi_121boardDefaultConfiguration(), uaefi_boardConfigOverrides(), uaefi_boardDefaultConfiguration(), unlockEcu(), AntilagSystemBase::update(), LaunchControlBase::update(), ShiftTorqueReductionController::update(), InjectionEvent::update(), GenericGearController::update(), GearControllerBase::update(), DualHBridgeStepper::update(), LongTermIdleTrim::update(), SimpleTransmissionController::update(), NitrousController::updateAfrConditionSatisfied(), VvlController::updateAfrConditionSatisfied(), ShiftTorqueReductionController::updateAppConditionSatisfied(), NitrousController::updateArmingState(), NitrousController::updateCltConditionSatisfied(), VvlController::updateCltConditionSatisfied(), OneCylinder::updateCylinderNumber(), EngineCylinders::updateCylinders(), updateDash(), IdleController::updateLtit(), NitrousController::updateMapConditionSatisfied(), VvlController::updateMapConditionSatisfied(), updateRawSensors(), LimpManager::updateRevLimit(), NitrousController::updateRpmConditionSatisfied(), ShiftTorqueReductionController::updateRpmConditionSatisfied(), VvlController::updateRpmConditionSatisfied(), Engine::updateSlowSensors(), NitrousController::updateSpeedConditionSatisfied(), InjectorModelWithConfig::updateState(), LimpManager::updateState(), Engine::updateSwitchInputs(), SoftSparkLimiter::updateTargetSkipRatio(), EngineState::updateTChargeK(), ShiftTorqueReductionController::updateTimeConditionSatisfied(), NitrousController::updateTpsConditionSatisfied(), VvlController::updateTpsConditionSatisfied(), ShiftTorqueReductionController::updateTriggerPinState(), updateTunerStudioState(), updateVrThresholdPwm(), updateVrThresholdPwm(), useMsdMode(), validateBoardConfig(), validateConfigOnStartUpOrBurn(), validateGdi(), validateTriggerInputs(), wipeStrings(), and CanTxMessage::~CanTxMessage().

◆ isActiveConfigurationVoid

bool isActiveConfigurationVoid
extern

◆ persistentState

persistent_config_container_s persistentState
extern

Go to the source code of this file.