rusefi-1/firmware/controllers/engine_controller.h

31 lines
1.1 KiB
C
Raw Normal View History

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
2021-08-16 03:59:43 -07:00
bool validateConfig(DECLARE_CONFIG_PARAMETER_SIGNATURE);
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(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void commonInitEngineController(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void initStartStopButton(DECLARE_ENGINE_PARAMETER_SIGNATURE);
2015-07-10 06:01:56 -07:00
2019-12-23 21:03:53 -08:00
void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE);
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
void setMockMapVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
void setMockAfrVoltage(float voltage DECLARE_ENGINE_PARAMETER_SUFFIX);
void setMockMafVoltage(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);