rusefi/firmware/controllers/core/le_functions.h

36 lines
986 B
C
Raw Normal View History

2014-10-05 11:03:00 -07:00
/**
* @file le_functions.h
*
* @date Oct 5, 2014
* @author Andrey Belomutskiy, (c) 2012-2014
*/
#ifndef LE_FUNCTIONS_H_
#define LE_FUNCTIONS_H_
#include "engine.h"
#include "logic_expression.h"
2014-11-06 10:04:30 -08:00
/**
* In human language that's
* (time_since_boot < 4) OR (rpm > 0)
*/
2014-10-13 09:03:10 -07:00
// todo: the delay should probably be configurable?
2014-10-09 00:02:51 -07:00
#define FUEL_PUMP_LOGIC "time_since_boot 4 < rpm 0 > OR"
2014-11-29 08:03:49 -08:00
#define AC_RELAY_LOGIC "ac_on_switch"
2014-11-30 08:04:02 -08:00
#define ALTERNATOR_LOGIC "vbatt 14.5 <"
2014-11-06 10:04:30 -08:00
/**
* In human language that's
* (fan and (coolant > fan_off_setting)) OR (coolant > fan_on_setting)
*/
2014-12-04 10:03:13 -08:00
#define FAN_CONTROL_LOGIC "fan coolant fan_off_setting > & coolant fan_on_setting > OR"
2014-11-06 10:04:30 -08:00
2014-12-05 19:04:09 -08:00
float getLEValue(Engine *engine, calc_stack_t *s, le_action_e action);
2014-12-06 08:03:50 -08:00
void setFsio(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp);
2014-12-07 15:03:08 -08:00
void setFsioExt(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp, int freq);
2014-10-05 11:03:00 -07:00
#endif /* LE_FUNCTIONS_H_ */