fome-fw/firmware/controllers/trigger/main_trigger_callback.h

49 lines
875 B
C
Raw Normal View History

2014-08-29 07:52:33 -07:00
/**
* @file main_trigger_callback.h
* @brief Main logic header
*
*
* @date Feb 9, 2013
2015-01-12 15:04:10 -08:00
* @author Andrey Belomutskiy, (c) 2012-2015
2014-08-29 07:52:33 -07:00
*/
#ifndef MAIN_LOOP_H_
#define MAIN_LOOP_H_
#include "main.h"
#define MAX_INJECTOR_COUNT 12
#define MAX_IGNITER_COUNT 4
#ifdef __cplusplus
#include "event_registry.h"
#include "engine.h"
class MainTriggerCallback {
public:
2015-01-01 15:04:13 -08:00
void init(Engine *engine);
2014-08-29 07:52:33 -07:00
Engine *engine;
};
2015-01-14 17:06:02 -08:00
void initMainEventListener(Logging *sharedLogger, Engine *engine);
2014-11-24 18:03:34 -08:00
void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECLARE_ENGINE_PARAMETER_S);
2014-08-29 07:52:33 -07:00
#endif
2014-10-29 08:03:57 -07:00
int isIgnitionTimingError(void);
2014-08-29 07:52:33 -07:00
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
void showMainHistogram(void);
void onEveryMillisecondTimerSignal(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
2015-01-14 17:06:02 -08:00
float getFuel(int rpm, float key);
2014-08-29 07:52:33 -07:00
#endif /* MAIN_LOOP_H_ */