2022-09-01 16:46:47 -07:00
|
|
|
/**
|
|
|
|
* @file fuel_pump.h
|
|
|
|
*/
|
|
|
|
|
2021-11-19 19:23:12 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "engine_module.h"
|
2022-04-13 17:45:52 -07:00
|
|
|
#include "fuel_pump_control_generated.h"
|
2023-08-30 20:11:24 -07:00
|
|
|
#include <rusefi/timer.h>
|
2021-11-19 19:23:12 -08:00
|
|
|
|
2021-12-07 18:28:04 -08:00
|
|
|
class FuelPumpController : public EngineModule, public fuel_pump_control_s {
|
|
|
|
public:
|
2021-11-19 19:23:12 -08:00
|
|
|
void onSlowCallback() override;
|
2021-12-07 18:28:04 -08:00
|
|
|
void onIgnitionStateChanged(bool ignitionOn) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Timer m_ignOnTimer;
|
2021-11-19 19:23:12 -08:00
|
|
|
};
|