rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
ign_voltage_gatekeeper.h
Go to the documentation of this file.
1
/*
2
* file ign_voltage_gatekeeper.h
3
*/
4
5
#include "
ignition_controller.h
"
6
7
class
IgnVoltageGatekeeper
{
8
public
:
9
10
bool
isInitialized
=
false
;
11
12
bool
haveVoltage
() {
13
bool
withVoltage =
isIgnVoltage
();
14
if
(!withVoltage) {
15
if
(
isInitialized
) {
16
efiPrintf(
"Power loss? Would have to re-init smart chip."
);
17
isInitialized
=
false
;
18
}
else
{
19
efiPrintf(
"Smart chip needs battery voltage"
);
20
}
21
}
22
return
withVoltage;
23
}
24
};
IgnVoltageGatekeeper
Definition
ign_voltage_gatekeeper.h:7
IgnVoltageGatekeeper::haveVoltage
bool haveVoltage()
Definition
ign_voltage_gatekeeper.h:12
IgnVoltageGatekeeper::isInitialized
bool isInitialized
Definition
ign_voltage_gatekeeper.h:10
isIgnVoltage
bool isIgnVoltage()
Definition
ignition_controller.cpp:3
ignition_controller.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8