rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
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
10public:
12
13 void onSlowCallback() override;
14
15 virtual bool getIgnState() const {
16 return m_lastState;
17 }
18
20 return m_timeSinceIgnVoltage.getElapsedSeconds();
21 }
22
23private:
25 bool m_lastState = false;
26};
27
28// USB power or vehicle power?
29bool isIgnVoltage();
void onSlowCallback() override
virtual bool getIgnState() const
bool isIgnVoltage()