rusefi/firmware/controllers/engine_cycle/spark_logic.h

18 lines
674 B
C
Raw Normal View History

2016-09-15 15:02:36 -07:00
/*
* @file spark_logic.h
*
* @date Sep 15, 2016
2020-01-07 21:02:40 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2016-09-15 15:02:36 -07:00
*/
2019-12-02 19:28:32 -08:00
#pragma once
2016-09-15 15:02:36 -07:00
void onTriggerEventSparkLogic(int rpm, efitick_t edgeTimestamp, float currentPhase, float nextPhase);
2024-04-09 20:53:26 -07:00
void turnSparkPinHighStartCharging(IgnitionEvent *event);
void fireSparkAndPrepareNextSchedule(IgnitionEvent *event);
int getNumberOfSparks(ignition_mode_e mode);
// fact: getInjectorDutyCycle is used by limpManager as cut reason but coil duty cycle is only logged not considered for control strategy
// see also maxAllowedDwellAngle which only produces a warning without cutting spark
percent_t getCoilDutyCycle(int rpm);
void initializeIgnitionActions();