26 lines
708 B
C
26 lines
708 B
C
/**
|
|
* @file main_trigger_callback.h
|
|
* @brief Main logic header
|
|
*
|
|
*
|
|
* @date Feb 9, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "event_registry.h"
|
|
|
|
void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_t currentPhase, angle_t nextPhase);
|
|
|
|
void endSimultaneousInjection(InjectionEvent *event);
|
|
void turnInjectionPinHigh(InjectionEvent *event);
|
|
void turnInjectionPinLow(InjectionEvent *event);
|
|
|
|
// reset injection switch counter if the engine started spinning
|
|
void updatePrimeInjectionPulseState();
|
|
|
|
// Internal use only - exposed for tests
|
|
void handleFuelInjectionEvent(int injEventIndex, InjectionEvent *event,
|
|
int rpm, efitick_t nowNt);
|