rusefi/firmware/controllers/engine_controller.h

31 lines
782 B
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
bool validateConfig();
2016-12-27 11:04:04 -08:00
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer);
void initPeriodicEvents();
void initEngineContoller();
void commonInitEngineController();
void initStartStopButton();
2015-07-10 06:01:56 -07:00
void initDataStructures();
2019-12-23 21:03:53 -08:00
void slowStartStopButtonCallback();
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);
2019-09-19 21:34:42 -07:00
#endif
void setMockMapVoltage(float voltage);
void setMockAfrVoltage(float voltage);
void setMockMafVoltage(float voltage);
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);