rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
IgnVoltageGatekeeper Class Reference

#include <ign_voltage_gatekeeper.h>

Collaboration diagram for IgnVoltageGatekeeper:
Collaboration graph
[legend]

Public Member Functions

bool haveVoltage ()
 

Data Fields

bool isInitialized = false
 

Detailed Description

Definition at line 7 of file ign_voltage_gatekeeper.h.

Member Function Documentation

◆ haveVoltage()

bool IgnVoltageGatekeeper::haveVoltage ( )
inline

Definition at line 12 of file ign_voltage_gatekeeper.h.

12 {
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 }
bool isIgnVoltage()

Referenced by THD_FUNCTION().

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

Field Documentation

◆ isInitialized

bool IgnVoltageGatekeeper::isInitialized = false

Definition at line 10 of file ign_voltage_gatekeeper.h.

Referenced by haveVoltage().


The documentation for this class was generated from the following file: