17 lines
442 B
C++
17 lines
442 B
C++
#pragma once
|
|
|
|
class EngineModule {
|
|
public:
|
|
// Called when the engine_configuration_s part of the tune has changed.
|
|
virtual void onConfigurationChange(engine_configuration_s const * /*previousConfig*/) { }
|
|
|
|
// Called approx 20Hz
|
|
virtual void onSlowCallback() { }
|
|
|
|
// Called approx 200Hz
|
|
virtual void onFastCallback() { }
|
|
|
|
// Called whenever the ignition switch state changes
|
|
virtual void onIgnitionStateChanged(bool ignitionOn) { }
|
|
};
|