rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
shutdown_controller.h File Reference

Data Structures

class  ShutdownController
 

Enumerations

enum class  StopRequestedReason : uint8_t {
  None , StartButton , Lua , Console ,
  TsCommand , Board1 , Board2 , Board3
}
 

Functions

void doScheduleStopEngine (StopRequestedReason reason)
 

Enumeration Type Documentation

◆ StopRequestedReason

enum class StopRequestedReason : uint8_t
strong
Enumerator
None 
StartButton 
Lua 
Console 
TsCommand 
Board1 
Board2 
Board3 

Definition at line 10 of file shutdown_controller.h.

Function Documentation

◆ doScheduleStopEngine()

void doScheduleStopEngine ( StopRequestedReason  reason)

Definition at line 8 of file shutdown_controller.cpp.

8 {
9#if EFI_SHAFT_POSITION_INPUT
10 efiPrintf("Let's stop this engine!");
12#endif // EFI_SHAFT_POSITION_INPUT
13 // todo: initiate stepper motor parking
14 // make sure we have stored all the info
15#if EFI_PROD_CODE
16 //todo: FIX kinetis build with this line
17 //backupRamFlush();
18#endif // EFI_PROD_CODE
19}
ShutdownController shutdownController
void stopEngine(StopRequestedReason reason)
LimpManager * getLimpManager()
Definition engine.cpp:596

Referenced by configureRusefiLuaHooks(), executeTSCommand(), Engine::isInShutdownMode(), scheduleStopEngine(), and startStopButtonToggle().

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

Go to the source code of this file.