rusEFI
The most advanced open source ECU
|
Main logic is here!
See http://rusefi.com/docs/html/
This file is part of rusEfi - see http://rusefi.com
rusEfi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file main_trigger_callback.cpp.
Functions | |
void | endSimultaneousInjection (InjectionEvent *event) |
void | turnInjectionPinLow (InjectionEvent *event) |
static void | turnInjectionPinLowStage2 (InjectionEvent *event) |
static void | handleFuel (efitick_t nowNt, float currentPhase, float nextPhase) |
void | mainTriggerCallback (uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_t currentPhase, angle_t nextPhase) |
Variables | |
bool | printFuelDebug = false |
void endSimultaneousInjection | ( | InjectionEvent * | event | ) |
Definition at line 50 of file main_trigger_callback.cpp.
Referenced by InjectionEvent::onTriggerTooth().
|
static |
Definition at line 213 of file main_trigger_callback.cpp.
Referenced by mainTriggerCallback().
void mainTriggerCallback | ( | uint32_t | trgEventIndex, |
efitick_t | edgeTimestamp, | ||
angle_t | currentPhase, | ||
angle_t | nextPhase | ||
) |
This is the main trigger event handler. Both injection and ignition are controlled from this method.
In case on a major error we should not process any more events.
For fuel we schedule start of injection based on trigger angle, and then inject for specified duration of time
For spark we schedule both start of coil charge and actual spark based on trigger angle
Definition at line 247 of file main_trigger_callback.cpp.
Referenced by TriggerCentral::handleShaftSignal().
void turnInjectionPinLow | ( | InjectionEvent * | event | ) |
Definition at line 55 of file main_trigger_callback.cpp.
Referenced by InjectionEvent::onTriggerTooth().
|
static |
Definition at line 67 of file main_trigger_callback.cpp.
Referenced by InjectionEvent::onTriggerTooth().
bool printFuelDebug = false |
Definition at line 27 of file main_trigger_callback.cpp.
Referenced by InjectorOutputPin::close(), handleFuel(), InjectionEvent::onTriggerTooth(), InjectorOutputPin::open(), and prepareCylinderIgnitionSchedule().