2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file engine_controller.h
|
|
|
|
* @brief Controllers package entry point header
|
|
|
|
*
|
|
|
|
* @date Feb 7, 2013
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2019-09-19 21:34:42 -07:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2020-03-22 21:01:59 -07:00
|
|
|
#include "engine.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2016-12-27 11:04:04 -08:00
|
|
|
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer);
|
2017-05-15 20:33:22 -07:00
|
|
|
void initPeriodicEvents(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|
|
|
void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-12-23 21:03:53 -08:00
|
|
|
void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2020-03-22 21:01:59 -07:00
|
|
|
void touchTimeCounter();
|
2019-12-23 21:03:53 -08:00
|
|
|
|
2020-04-01 17:25:44 -07:00
|
|
|
void slowStartStopButtonCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2020-03-24 22:41:15 -07:00
|
|
|
|
2019-09-19 21:34:42 -07:00
|
|
|
#if EFI_ENABLE_MOCK_ADC
|
|
|
|
void setMockVoltage(int hwChannel, float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
#endif
|
|
|
|
|
2019-09-22 14:19:08 -07:00
|
|
|
void setMockVBattVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void setMockMapVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void setMockAfrVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void setMockMafVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void setMockIatVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
void setMockCltVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2017-01-06 07:04:41 -08:00
|
|
|
|
2019-07-13 11:08:08 -07:00
|
|
|
void printCurrentState(Logging *logging, int seconds, const char *engineTypeName, const char *firmwareBuildId);
|
2019-01-11 16:08:15 -08:00
|
|
|
|