2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file main_trigger_callback.h
|
|
|
|
* @brief Main logic header
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @date Feb 9, 2013
|
2015-12-31 13:02:30 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2016
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAIN_LOOP_H_
|
|
|
|
#define MAIN_LOOP_H_
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
#include "event_registry.h"
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
void initMainEventListener(Logging *sharedLogger, Engine *engine);
|
|
|
|
void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECLARE_ENGINE_PARAMETER_S);
|
|
|
|
|
|
|
|
int isIgnitionTimingError(void);
|
|
|
|
|
|
|
|
void showMainHistogram(void);
|
|
|
|
|
2016-09-26 18:03:18 -07:00
|
|
|
void seTurnPinHigh(InjectorOutputPin *output);
|
|
|
|
void seTurnPinLow(InjectorOutputPin *output);
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
float getFuel(int rpm, float key);
|
|
|
|
#endif /* MAIN_LOOP_H_ */
|