rusEFI
The most advanced open source ECU
controllers
ignition_controller.h
Go to the documentation of this file.
1
// file ignition_controller.h
2
3
#pragma once
4
5
#include "
engine_module.h
"
6
7
#include <rusefi/timer.h>
8
9
class
IgnitionController
:
public
EngineModule
{
10
public
:
11
void
onSlowCallback
()
override
;
12
13
private
:
14
Timer
m_timeSinceIgnVoltage
;
15
bool
m_lastState
=
false
;
16
};
17
18
// USB power or vehicle power?
19
bool
isIgnVoltage
();
EngineModule
Definition:
engine_module.h:9
IgnitionController
Definition:
ignition_controller.h:9
IgnitionController::m_timeSinceIgnVoltage
Timer m_timeSinceIgnVoltage
Definition:
ignition_controller.h:14
IgnitionController::onSlowCallback
void onSlowCallback() override
Definition:
ignition_controller.cpp:7
IgnitionController::m_lastState
bool m_lastState
Definition:
ignition_controller.h:15
engine_module.h
isIgnVoltage
bool isIgnVoltage()
Definition:
ignition_controller.cpp:3
Generated on Tue Sep 17 2024 00:06:36 for rusEFI by
1.9.1