rusefi-1/firmware/controllers/engine_controller.h

39 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
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2015-07-10 06:01:56 -07:00
*/
#ifndef ENGINE_STATUS_H_
#define ENGINE_STATUS_H_
#include "global.h"
#include "signal_executor.h"
#include "engine_configuration.h"
#include "engine.h"
/**
* I am not sure if this needs to be configurable.
*
* Also technically the whole feature might be implemented as cranking fuel coefficient curve by TPS.
*/
#define CLEANUP_MODE_TPS 90
#define STEPPER_PARKING_TPS CLEANUP_MODE_TPS
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
2017-01-06 07:04:41 -08:00
void setVBattVoltage(float voltage);
void setMapVoltage(float voltage);
void setTpsVoltage(float voltage);
void setAfrVoltage(float voltage);
void setMafVoltage(float voltage);
void setIatVoltage(float voltage);
void setCltVoltage(float voltage);
2015-07-10 06:01:56 -07:00
#endif /* ENGINE_STATUS_H_ */