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 ()
 Hardware board-specific default configuration (GPIO pins, ADC channels, SPI configs etc.)
 
void setBoardConfigOverrides ()
 
void onBoardStandBy ()
 
void boardOnConfigurationChange (engine_configuration_s *previousConfiguration)
 
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 57 of file engine_type_impl.cpp.

57 {
58 /**
59 * And override them with engine-specific defaults
60 */
61 switch (engineType) {
81 // all basic settings are already set in prepareVoidConfiguration(), no need to set anything here
82 // nothing to do - we do it all in setBoardDefaultConfiguration
83 break;
84#if EFI_UNIT_TEST || EFI_SIMULATOR
86 #if EFI_UNIT_TEST
88 #endif
89 break;
91 #if EFI_UNIT_TEST
93 #endif
94 break;
97 break;
100 break;
101#endif // EFI_UNIT_TEST
102
103#if EFI_TCU || EFI_SIMULATOR
105 #if EFI_TCU
107 #endif // EFI_TCU
108 break;
109#endif //EFI_TCU
110
111#if defined(HW_SUBARU_2011) || defined(HW_HELLEN_8CHAN) || HW_PROTEUS
114 break;
115#endif
116
117#if HW_MICRO_RUSEFI || HW_PROTEUS
120 break;
121#endif
122
123#if HW_MICRO_RUSEFI
126 break;
129 break;
132 break;
137 break;
139 mreBCM();
140 break;
141#endif // HW_MICRO_RUSEFI
143 setHondaObd1();
144 break;
147 break;
148
149#if HW_PROTEUS || HW_HELLEN_4CHAN || HW_HELLEN_8CHAN || HW_HELLEN_4K_GDI
152 break;
154 setHyundaiPb();
155 break;
156#endif
157
158#if HW_PROTEUS || HW_HELLEN_HONDA
160 setHondaK();
161 break;
162#endif
163
164#if HW_HELLEN
167 break;
170 break;
173 break;
176 break;
179 break;
182 break;
183#endif
184
185#if HW_PROTEUS || HW_HELLEN
187 setHarley();
188 break;
189#endif
190
191#if HW_PROTEUS || HW_HELLEN
195 break;
198 setSlingshot();
199 break;
200#endif
201
203 setGmLcv();
204 break;
206 setGmLnf();
207 break;
209 setGmLtg();
210 break;
212 setGmSbcGen5();
213 break;
214
215#if defined(HW_HELLEN_8CHAN) || HW_PROTEUS || EFI_SIMULATOR
217 setGmLs4();
218 break;
219#endif
220
221#if HW_PROTEUS || EFI_SIMULATOR
224 break;
227 break;
230 break;
234 break;
237 break;
240 break;
243 break;
246 break;
248 setGmSbc();
249 break;
250#if defined(HARDWARE_CI) || EFI_SIMULATOR
252 #if defined(HARDWARE_CI)
254 #endif
255 break;
256#endif // HARDWARE_CI
257#endif // HW_PROTEUS
258
259#if defined(HW_HELLEN_MERCEDES) || EFI_SIMULATOR
262 break;
265 break;
268 break;
269#endif
270
271#ifdef HW_HELLEN_NISSAN
274 break;
277 break;
278#endif
279
280#ifdef HW_HELLEN_HYUNDAI
283 break;
286 break;
287#endif
288
289#if defined(HW_HELLEN_8CHAN) || defined(HW_HELLEN_UAEFI121) || defined(HW_HELLEN_UAEFI)
291 setGmSbc();
292 break;
293#endif
294
295#if defined(HW_HELLEN_121_VAG) || defined(HW_HELLEN_UAEFI) || defined(HW_HELLEN_UAEFI121) || EFI_SIMULATOR
297 setVag_5_cyl();
298 break;
299#endif
300
301#if defined(HW_HELLEN_121_VAG) || EFI_SIMULATOR
304 break;
307 break;
310 break;
311#endif
312
313#ifdef HW_HELLEN
316 break;
319 break;
320#endif // HW_HELLEN
321#if defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743) || defined(HW_FRANKENSO) || HW_PROTEUS || EFI_SIMULATOR
322 // used in HW CI
324 setVwAba();
325 break;
328 break;
329#endif // HW_FRANKENSO || HW_PROTEUS
330
333 break;
334
335#if defined(HW_FRANKENSO) || EFI_SIMULATOR || defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743) || defined(SUPPORT_GY6)
338 break;
339#endif
340
341#if defined(HW_FRANKENSO) || EFI_SIMULATOR || defined(HW_NUCLEO_F767) || defined(HW_NUCLEO_H743)
344 break;
346#if EFI_PROD_CODE
348#endif
349 break;
352 break;
355 break;
358 break;
361 break;
364 break;
367 break;
370 break;
373 break;
375#if EFI_PROD_CODE && HAL_USE_EEPROM
377#endif
378 break;
381 break;
384 break;
386 setHonda600();
387 break;
390 break;
393 break;
396 break;
399 break;
401 setSachs();
402 break;
405 break;
408 break;
410 setRotary();
411 break;
412#endif // HW_FRANKENSO
414 bmwM52();
415 break;
416#if defined(HW_SUBARU_EG33) || EFI_SIMULATOR
419 break;
420#endif //HW_SUBARU_EG33
421 default:
422 applyUnknownEngineType(engineType);
423 }
424 boardAfterTuneDefaults(engineType);
425}
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()
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
PUBLIC_API_WEAK void boardAfterTuneDefaults(engine_type_e engineType)
PUBLIC_API_WEAK_SOMETHING_WEIRD void applyUnknownEngineType(engine_type_e engineType)
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:237
void setGmSbcGen5()
Definition gm_sbc.cpp:252
void setGmLnf()
Definition gm_sbc.cpp:216
void setGmLcv()
Definition gm_sbc.cpp:209
void setGmSbc()
Definition gm_sbc.cpp:81
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
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_4l6x.cpp:55
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:

◆ boardOnConfigurationChange()

void boardOnConfigurationChange ( engine_configuration_s previousConfiguration)

Definition at line 68 of file board_configuration.cpp.

68 {
75}
void setValue(const char *msg, int logicValue, bool isForce=false)
Definition efi_gpio.cpp:603
static constexpr persistent_config_s * config
static OutputPin alphaCamPullDown
static OutputPin alphaTachPullUp
static OutputPin alphaCrankPPullUp
static OutputPin alphaTempPullUp
static OutputPin alpha2stepPullDown
static OutputPin alphaCrankNPullUp

Referenced by incrementGlobalConfigurationVersion(), and initHardware().

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

◆ commonFrankensoAnalogInputs()

void commonFrankensoAnalogInputs ( )

VBatt

Definition at line 707 of file engine_configuration.cpp.

707 {
708 /**
709 * VBatt
710 */
712}
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 679 of file engine_configuration.cpp.

679 {
680 UNUSED(p_engineConfiguration);
681}
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 213 of file board_configuration.cpp.

213 {
214 return 1;
215}

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 172 of file board_configuration.cpp.

172 {
173 return OUTPUTS;
174}
static Gpio OUTPUTS[]

Referenced by initQcBenchControls(), and setPin().

Here is the caller graph for this function:

◆ getBoardMetaOutputsCount()

int getBoardMetaOutputsCount ( )

Definition at line 168 of file board_configuration.cpp.

168 {
169 return efi::size(OUTPUTS);
170}

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 54 of file board_configuration.cpp.

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

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 130 of file engine_configuration.cpp.

130 {
131 assertStackVoid("increment", ObdCode::STACK_USAGE_MISC, EXPECTED_REMAINING_STACK);
133 criticalError("too early to invoke incrementGlobalConfigurationVersion %s", msg);
134 }
136#if EFI_DEFAILED_LOGGING
137 efiPrintf("set globalConfigurationVersion=%d", globalConfigurationVersion);
138#endif /* EFI_DEFAILED_LOGGING */
139
141
143
145
146#if EFI_ELECTRONIC_THROTTLE_BODY
148#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
149
150#if EFI_ENGINE_CONTROL && EFI_PROD_CODE
152#endif
153
154#if EFI_SHAFT_POSITION_INPUT
156#endif /* EFI_SHAFT_POSITION_INPUT */
157#if EFI_EMULATE_POSITION_SENSORS && ! EFI_UNIT_TEST
159#endif /* EFI_EMULATE_POSITION_SENSORS */
160
161 engine->engineModules.apply_all([](auto & m) {
162 m.onConfigurationChange(&activeConfiguration);
163 });
165}
void onConfigurationChangeBenchTest()
void preCalculate()
Definition engine.cpp:308
int globalConfigurationVersion
Definition engine.h:313
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#include "modules_list_generated.h" EngineModule > engineModules
Definition engine.h:192
void onConfigurationChangeElectronicThrottleCallback(engine_configuration_s *previousConfiguration)
static EngineAccessor engine
Definition engine.h:410
static bool hasRememberedConfiguration
void rememberCurrentConfiguration()
PUBLIC_API_WEAK void boardOnConfigurationChange(engine_configuration_s *)
engine_configuration_s & activeConfiguration
void applyNewHardwareSettings()
Definition hardware.cpp:310
@ STACK_USAGE_MISC
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 621 of file engine_configuration.cpp.

621 {
622
623#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
624 // Clear the active configuration so that registered output pins (etc) detect the change on startup and init properly
626#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
627
628 /* If board have any storage */
629#if EFI_CONFIGURATION_STORAGE
630 if (IGNORE_FLASH_CONFIGURATION) {
631 engineConfiguration->engineType = DEFAULT_ENGINE_TYPE;
634 } else {
635 // this call reads configuration from flash memory or sets default configuration
636 // if flash state does not look right.
638 }
639#else
640 // This board doesn't load configuration, initialize the default
641 engineConfiguration->engineType = DEFAULT_ENGINE_TYPE;
643#endif /* EFI_CONFIGURATION_STORAGE */
644
645 // Force any board configuration options that humans shouldn't be able to change
647}
void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e engineType)
PUBLIC_API_WEAK_SOMETHING_WEIRD void setBoardConfigOverrides()
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 43 of file board_configuration.cpp.

43 {
44 efiPrintf("K: onBoardStandBy");
46}
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 108 of file engine_configuration.cpp.

108 {
109 wipeStrings();
110
112}
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 217 of file engine_configuration.cpp.

217 {
218 criticalAssertVoid(p_engineConfiguration != nullptr, "ec NULL");
219 efi::clear(p_engineConfiguration);
220
221 p_engineConfiguration->clutchDownPinMode = PI_PULLUP;
222 p_engineConfiguration->clutchUpPinMode = PI_PULLUP;
223 p_engineConfiguration->brakePedalPinMode = PI_PULLUP;
224}

Referenced by loadConfiguration(), and setDefaultEngineConfiguration().

Here is the caller graph for this function:

◆ rememberCurrentConfiguration()

void rememberCurrentConfiguration ( )

Definition at line 86 of file engine_configuration.cpp.

86 {
87#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
89#else
91#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
93}
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 649 of file engine_configuration.cpp.

649 {
650 enginePins.reset(); // that's mostly important for functional tests
651 /**
652 * Let's apply global defaults first
653 */
655
656 /**
657 * custom board engine defaults. Yes, this overlaps with (older) engine_type_e approach.
658 */
660
661 // set initial pin groups
663
664 if (boardCallback != nullptr) {
665 boardCallback(engineConfiguration);
666 }
667
668#if EFI_PROD_CODE
669 // call overrided board-specific configuration setup, if needed (for custom boards only)
672#endif // EFI_PROD_CODE
673
674 engineConfiguration->engineType = engineType;
675 applyEngineType(engineType);
677}
void reset()
Definition efi_gpio.cpp:274
EnginePins enginePins
Definition efi_gpio.cpp:24
static void setDefaultEngineConfiguration()
Global default engine configuration This method sets the global engine configuration defaults....
void setDefaultBasePins()
PUBLIC_API_WEAK void setBoardDefaultConfiguration()
Hardware board-specific default configuration (GPIO pins, ADC channels, SPI configs etc....
PUBLIC_API_WEAK void boardBeforeTuneDefaults()
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 683 of file engine_configuration.cpp.

683 {
685}
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}

Referenced by TunerStudio::handleWriteChunkCommand(), loadConfiguration(), and resetConfigurationExt().

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

◆ setBoardDefaultConfiguration()

void setBoardDefaultConfiguration ( )

Hardware board-specific default configuration (GPIO pins, ADC channels, SPI configs etc.)

Hardware board-specific default configuration (GPIO pins, ADC channels, SPI configs etc.)

Hardware board-specific default configuration (GPIO pins, ADC channels, SPI configs etc.)

See also setDefaultEngineConfiguration

!!!!!!!!!!!!!!!!!!

Jimmy best tune https://rusefi.com/online/view.php?msq=626 md_sanci latest tune https://rusefi.com/online/view.php?msq=630

Definition at line 27 of file board_configuration.cpp.

27 {
29
30 setAlgorithm(LM_SPEED_DENSITY);
31
33 engineConfiguration->firingOrder = FO_1_3_4_2;
34
35 engineConfiguration->ignitionMode = IM_WASTED_SPARK;
37 engineConfiguration->injectionMode = IM_SIMULTANEOUS;
38
39 engineConfiguration->map.sensor.type = MT_MPX4250A;
40
43
45 // todo:
51
56
58
65
67
68#if 0
69
70 // todo:
71 int i;
72 for (i = 0; i < MAX_CYLINDER_COUNT; i++)
74 for (i = 0; i < MAX_CYLINDER_COUNT; i++)
76
79#endif
80
81 //!!!!!!!!!!!!!!!!!!!
82 //engineConfiguration->isFastAdcEnabled = false;
83}
void setCrankOperationMode()
void setAlgorithm(engine_load_mode_e algo)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
constexpr int convertVoltageTo10bitADC(float voltage)
Definition tps.h:21

Referenced by resetConfigurationExt().

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

◆ setCamOperationMode()

void setCamOperationMode ( )

Definition at line 698 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 171 of file engine_configuration.cpp.

171 {
172 for (int i = 0; i < DWELL_CURVE_SIZE; i++) {
173 config->sparkDwellRpmBins[i] = 1000 * i;
174 }
176}
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 ( )

Definition at line 702 of file engine_configuration.cpp.

702 {
703 // this is related to 'setDefaultBaseEngine' having 'skippedWheelOnCam = true' which is a weird fact by itself
705}

Referenced by commonPassatB6(), m73engine(), setBoardDefaultConfiguration(), setEtbTestConfiguration(), setGy6139qmbDefaultEngineConfiguration(), setTestCrankEngineConfiguration(), setTestVVTEngineConfiguration(), setToyota_2jz_vics(), and setVwAba().

Here is the caller graph for this function:

◆ setDefaultBasePins()

void setDefaultBasePins ( )

Definition at line 226 of file engine_configuration.cpp.

226 {
227#if EFI_PROD_CODE
228 // call overrided board-specific serial configuration setup, if needed (for custom boards only)
229 // needed also by bootloader code
231#endif /* EFI_PROD_CODE */
232
233 // set UART pads configuration based on the board
234// needed also by bootloader code
235#ifdef TS_SECONDARY_UxART_PORT
238#endif // TS_SECONDARY_UxART_PORT
239
242}
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 246 of file engine_configuration.cpp.

Referenced by setBoardDefaultConfiguration().

Here is the caller graph for this function:

◆ setFuelTablesLoadBin()

void setFuelTablesLoadBin ( float  minValue,
float  maxValue 
)

Definition at line 178 of file engine_configuration.cpp.

178 {
179 setLinearCurve(config->injPhaseLoadBins, minValue, maxValue, 1);
180 setLinearCurve(config->veLoadBins, minValue, maxValue, 1);
181 setLinearCurve(config->lambdaLoadBins, minValue, maxValue, 1);
182}
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 266 of file engine_configuration.cpp.

266 {
267 setLinearCurve(config->cltIdleRpmBins, CLT_CURVE_RANGE_FROM, 140, 10);
268 setLinearCurve(config->cltIdleRpm, rpm, rpm, 10);
269}
scaled_channel< int8_t, 1, 2 > 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 184 of file engine_configuration.cpp.

184 {
186}
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 191 of file engine_configuration.cpp.

191 {
193}
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 81 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(), applyIACposition(), boardOnConfigurationChange(), 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(), FuelLevelFunc::convert(), couplecannedignitionTable(), couplecannedveTable(), defaultsOrFixOnBurn(), EDMA_GetDefaultConfig(), EDMA_Init(), EDMA_PrepareTransfer(), EDMA_SetChannelPreemptionConfig(), EDMA_SetMinorOffsetConfig(), EDMA_SetTransferConfig(), EDMA_SubmitTransfer(), EDMA_TcdSetMinorOffsetConfig(), EDMA_TcdSetTransferConfig(), ThrottleModel::effectiveArea(), 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(), 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(), DynoView::init(), initBoostCtrl(), initCanGpioMsiobox(), initElectronicThrottle(), initFuelMap(), initScriptImpl(), initSpeedDensity(), initVvtActuators(), TransmissionControllerBase::isShiftCompleted(), isTouchingVe(), 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(), setBoardDefaultConfiguration(), setBoardOverrides(), 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 80 of file engine_configuration.h.

Referenced by adcTriggerTurnOnInputPin(), addEngineSnifferOutputPinEvent(), FuelSchedule::addFuelEvents(), adjustCrankPhase(), AlternatorController::AlternatorController(), TriggerCentral::applyCamGapOverride(), applyIACposition(), applyMapMinBufferLength(), applyPidSettings(), TriggerCentral::applyShapesConfiguration(), TriggerCentral::applyTriggerGapOverride(), assertTimeIsLinear(), bmwM52(), boardOnConfigurationChange(), buildTimingMap(), calcFastAdcIndexes(), HpfpQuantity::calcFuelPercent(), HpfpQuantity::calcPI(), LaunchControlBase::calculateRPMLaunchCondition(), LaunchControlBase::calculateSparkSkipRatio(), cam_callback(), 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(), InputShaftSpeedConverter::convert(), TurbochargerSpeedConverter::convert(), VehicleSpeedConverter::convert(), FuelLevelFunc::convert(), InjectorModelBase::correctInjectionPolynomial(), DfcoController::cutFuel(), 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(), doInitElectronicThrottle(), doPeriodicSlowCallback(), doResetConfiguration(), doRunFuelInjBench(), doRunSparkBench(), doStartCranking(), enableHellenSpi1(), enableHellenSpi2(), enableHellenSpi3(), enableOrDisable(), FanControl1::enableWithAc(), FanControl2::enableWithAc(), endSimultaneousInjectionOnlyTogglePins(), TriggerCentral::engineMovedRecently(), errorHandlerInit(), executeTSCommand(), executorStatistics(), extiTriggerTurnOnInputPin(), f407_discovery_boardInitHardware(), Biquad::filter(), FuelLevelFunc::filterFuelValue(), filterMapValue(), findBaudIndex(), HpfpLobe::findNextLobe(), TriggerStimulatorHelper::findTriggerSyncPoint(), fireSparkAndPrepareNextSchedule(), flexExtiCallback(), fuelBenchMode(), fuelClosedLoopCorrection(), 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(), IdleController::getClosedLoop(), EtbController::getClosedLoopAutotune(), BoostController::getClosedLoopImpl(), getClutchDownState(), getClutchUpState(), getConfigValueByHash(), 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(), 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(), LimpManager::getLimitingFuelCorrection(), LimpManager::getLimitingTimingRetard(), getLoad(), NitrousController::getLuaGauge(), SpeedDensityAirmass::getMap(), getMapCfg(), getMcuTemperature(), getMisoPin(), getMosiPin(), getMultiSparkCount(), InjectorModelPrimary::getNonlinearMode(), getNumberOfInjections(), getNumberOfSparks(), AlternatorController::getOpenLoop(), BoostController::getOpenLoop(), IdleController::getOpenLoop(), RpmCalculator::getOperationMode(), getPerCylinderFiringOrderOffset(), getPidForDcFunction(), SpeedDensityAirmass::getPredictiveMap(), 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(), DfcoController::getTimingRetard(), TpsAccelEnrichment::getTpsEnrichment(), PrimaryTriggerConfiguration::getType(), VvtTriggerConfiguration::getType(), TunerDetectorUtils::getUserEnteredTuningDetector(), getValue(), AirmassVeModelBase::getVe(), getWidebandBus(), getWorkingPageAddr(), gmRailSensor(), hackEngineConfigurationPointer(), handleCanFrame(), TriggerEmulatorHelper::handleEmulatorCallback(), handleHonda(), handleShaftSignal(), TriggerCentral::handleShaftSignal(), handleVvtCamSignal(), harleyEngine(), hasAcToggle(), hasAfrSensor(), hellenWbo(), hpfpValveBench(), 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(), initThermistors(), initTps(), GearControllerBase::initTransmissionController(), initTriggerEmulator(), 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(), TunerDetectorUtils::isTuningDetectorUndefined(), LongTermIdleTrim::isValidConditionsForLearning(), PrimaryTriggerConfiguration::isVerboseTriggerSynchDetails(), VvtTriggerConfiguration::isVerboseTriggerSynchDetails(), WarningCodeState::isWarningNow(), WarningCodeState::isWarningNow(), kLineThread(), LtftState::load(), loadConfiguration(), logVvtFront(), lookupOperationMode(), lua_getAirmassResolveMode(), lua_getAuxDigital(), lua_setDebug(), lua_setTickRate(), lua_vin(), luaHeapAlloc(), m73engine(), mc33810defaults(), miataNAcommonEngineSettings(), 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(), Engine::onSparkFireKnockSense(), onStartKnockSampling(), onTriggerEventSparkLogic(), Engine::OnTriggerSynchronization(), InjectionEvent::onTriggerTooth(), FuelSchedule::onTriggerTooth(), packEngineMode(), EngineState::periodicFastCallback(), Engine::periodicSlowCallback(), CanWrite::PeriodicTask(), 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(), proteusDcWastegateTest(), proteusLuaDemo(), proteusStimQc(), qcSetEtbState(), readFromFlash(), recalculateAuxValveTiming(), AemXSeriesWideband::refreshSmoothedLambda(), rememberCurrentConfiguration(), resetConfigurationExt(), LambdaMonitorBase::restoreConditionsMet(), rpmShaftPositionCallback(), HpfpController::scheduleNextCycle(), sdLogger(), sdLoggerStart(), sdLoggerStop(), sdStatistics(), sendCanVerbose(), CanStreamerState::sendDataTimeout(), sendQcBenchBoardStatus(), AemXSeriesWideband::sensorType(), sentPressureDecode(), sentTpsDecode(), set201xHyundai(), set4CylGmEcotec3(), setAccelerometerSpi(), setAdcChannelOverrides(), setAlgorithm(), setAlternatorPin(), setAnalogInputPin(), setBasicNotECUmode(), setBit(), setBMW_M73_TwoCoilUnitTest(), setBoardConfigOverrides(), setBoardDefaultConfiguration(), setBoardOverrides(), 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(), setIdleMode(), setIdlePin(), setIdleSolenoidFrequency(), setIgnitionMode(), setIgnitionPin(), setIgnitionPins(), StepperMotorBase::setInitialPosition(), setInjectionMode(), setInjectorPins(), setInline4(), setInt(), setL9779TestConfiguration(), setLeftRightBanksNeedBetterName(), setLogicInputPin(), setMaverickX3(), setMazdaMiata96(), setMazdaMiataEngineNB2Defaults(), setMazdaMiataNA6(), setMazdaMiataNA94(), setMazdaMiataNB1(), setMazdaMiataNB2(), setMazdaMiataNB2_36(), setMazdaMiataNbInjectorLag(), 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(), TunerDetectorUtils::setUserEnteredTuningDetector(), setVag_5_cyl(), setValue(), Dac::SetVoltage(), setVssPin(), setVwAba(), shouldInvertVvt(), shouldUpdateCorrection(), skipToothSpecialShape(), DualHBridgeStepper::sleep(), slowStartStopButtonCallback(), 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(), testEngine6451(), tle8888startup(), triggerInfo(), turnOnSpi(), turnOnTriggerInputPin(), turnSparkPinHighStartCharging(), turnVvtPidOn(), unlockEcu(), AntilagSystemBase::update(), LaunchControlBase::update(), ShiftTorqueReductionController::update(), InjectionEvent::update(), GenericGearController::update(), GearControllerBase::update(), DualHBridgeStepper::update(), LongTermIdleTrim::update(), SimpleTransmissionController::update(), NitrousController::updateAfrConditionSatisfied(), ShiftTorqueReductionController::updateAppConditionSatisfied(), NitrousController::updateArmingState(), NitrousController::updateCltConditionSatisfied(), OneCylinder::updateCylinderNumber(), EngineCylinders::updateCylinders(), updateDash(), IdleController::updateLtit(), NitrousController::updateMapConditionSatisfied(), updateRawSensors(), LimpManager::updateRevLimit(), NitrousController::updateRpmConditionSatisfied(), ShiftTorqueReductionController::updateRpmConditionSatisfied(), Engine::updateSlowSensors(), NitrousController::updateSpeedConditionSatisfied(), LimpManager::updateState(), Engine::updateSwitchInputs(), SoftSparkLimiter::updateTargetSkipRatio(), EngineState::updateTChargeK(), ShiftTorqueReductionController::updateTimeConditionSatisfied(), NitrousController::updateTpsConditionSatisfied(), ShiftTorqueReductionController::updateTriggerPinState(), updateTunerStudioState(), updateVrThresholdPwm(), updateVrThresholdPwm(), updateWarningCodes(), 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.