rusEFI
The most advanced open source ECU
|
Functions | |
int | getCrankDivider (operation_mode_e operationMode) |
static bool | vvtWithRealDecoder (vvt_mode_e vvtMode) |
static void | turnOffAllDebugFields (void *arg) |
static angle_t | adjustCrankPhase (int camIndex) |
static angle_t | wrapVvt (angle_t vvtPosition, int period) |
static void | logVvtFront (bool useOnlyRise, bool isImportantFront, TriggerValue front, efitick_t nowNt, int index) |
void | hwHandleVvtCamSignal (bool isRising, efitick_t timestamp, int index) |
void | hwHandleVvtCamSignal (TriggerValue front, efitick_t nowNt, int index) |
void | handleVvtCamSignal (TriggerValue front, efitick_t nowNt, int index) |
void | hwHandleShaftSignal (int signalIndex, bool isRising, efitick_t timestamp) |
void | handleShaftSignal (int signalIndex, bool isRising, efitick_t timestamp) |
static void | reportEventToWaveChart (trigger_event_e ckpSignalType, int triggerEventIndex, bool addOppositeEvent) |
BOARD_WEAK bool | boardAllowTriggerActions () |
static void | triggerShapeInfo () |
void | triggerInfo (void) |
static void | resetRunningTriggerCounters () |
void | onConfigurationChangeTriggerCallback () |
static void | initVvtShape (TriggerWaveform &shape, const TriggerConfiguration &p_config, TriggerDecoderBase &initState) |
static void | calculateTriggerSynchPoint (const PrimaryTriggerConfiguration &primaryTriggerConfiguration, TriggerWaveform &shape, TriggerDecoderBase &initState) |
void | validateTriggerInputs () |
void | initTriggerCentral () |
Variables | |
WaveChart | waveChart |
static scheduling_s | debugToggleScheduling |
int | triggerReentrant = 0 |
int | maxTriggerReentrant = 0 |
uint32_t | triggerDuration |
uint32_t | triggerMaxDuration = 0 |
static const bool | isUpEvent [4] = { false, true, false, true } |
static const int | wheelIndeces [4] = { 0, 0, 1, 1} |
PwmConfig | triggerEmulatorSignals [NUM_EMULATOR_CHANNELS] |
TriggerDecoderBase | initState ("init") |
|
static |
Definition at line 162 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
BOARD_WEAK bool boardAllowTriggerActions | ( | ) |
Definition at line 747 of file trigger_central.cpp.
Referenced by TriggerCentral::handleShaftSignal().
|
static |
Calculate 'shape.triggerShapeSynchPointIndex' value using 'TriggerDecoderBase *state'
Definition at line 1093 of file trigger_central.cpp.
Referenced by TriggerCentral::updateWaveform().
int getCrankDivider | ( | operation_mode_e | operationMode | ) |
todo: why is this method NOT reciprocal to getRpmMultiplier?!
wow even while we explicitly handle all enumerations in the switch above we still need a return statement due to https://stackoverflow.com/questions/34112483/gcc-how-best-to-handle-warning-about-unreachable-end-of-function-after-switch
Definition at line 99 of file trigger_central.cpp.
Referenced by adjustCrankPhase(), getRpmMultiplier(), and TriggerCentral::handleShaftSignal().
void handleShaftSignal | ( | int | signalIndex, |
bool | isRising, | ||
efitick_t | timestamp | ||
) |
no need to process VR falls further
Definition at line 475 of file trigger_central.cpp.
Referenced by TriggerEmulatorHelper::handleEmulatorCallback(), and hwHandleShaftSignal().
void handleVvtCamSignal | ( | TriggerValue | front, |
efitick_t | nowNt, | ||
int | index | ||
) |
we prefer not to have VVT sync right at trigger sync so that we do not have phase detection error if things happen a bit in wrong order due to belt flex or else https://github.com/rusefi/rusefi/issues/3269
Definition at line 275 of file trigger_central.cpp.
Referenced by TriggerEmulatorHelper::handleEmulatorCallback(), and hwHandleVvtCamSignal().
void hwHandleShaftSignal | ( | int | signalIndex, |
bool | isRising, | ||
efitick_t | timestamp | ||
) |
This function is called by all "hardware" trigger inputs:
Definition at line 444 of file trigger_central.cpp.
Referenced by comp_shaft_callback(), onTriggerChanged(), and shaft_callback().
void hwHandleVvtCamSignal | ( | bool | isRising, |
efitick_t | timestamp, | ||
int | index | ||
) |
Definition at line 261 of file trigger_central.cpp.
Referenced by cam_callback(), comp_cam_callback(), and TriggerCentral::decodeMapCam().
void hwHandleVvtCamSignal | ( | TriggerValue | front, |
efitick_t | nowNt, | ||
int | index | ||
) |
Definition at line 266 of file trigger_central.cpp.
void initTriggerCentral | ( | ) |
Definition at line 1228 of file trigger_central.cpp.
Referenced by commonEarlyInit().
|
static |
Definition at line 1075 of file trigger_central.cpp.
Referenced by TriggerCentral::updateWaveform().
|
static |
Definition at line 232 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
void onConfigurationChangeTriggerCallback | ( | ) |
Definition at line 1023 of file trigger_central.cpp.
Referenced by incrementGlobalConfigurationVersion().
|
static |
Definition at line 567 of file trigger_central.cpp.
Referenced by TriggerCentral::handleShaftSignal().
|
static |
Definition at line 1016 of file trigger_central.cpp.
Referenced by initTriggerCentral().
void triggerInfo | ( | void | ) |
Definition at line 918 of file trigger_central.cpp.
Referenced by initTriggerCentral(), and resetRunningTriggerCounters().
|
static |
Definition at line 901 of file trigger_central.cpp.
Referenced by initTriggerCentral().
|
static |
Definition at line 146 of file trigger_central.cpp.
Referenced by handleShaftSignal(), and logVvtFront().
void validateTriggerInputs | ( | ) |
Definition at line 1218 of file trigger_central.cpp.
Referenced by startHardware().
|
static |
Definition at line 126 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
See also wrapAngle
Definition at line 221 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
|
static |
Definition at line 36 of file trigger_central.cpp.
Referenced by handleShaftSignal(), and logVvtFront().
TriggerDecoderBase initState("init") | ( | "init" | ) |
Referenced by calculateTriggerSynchPoint(), initVvtShape(), and TriggerCentral::updateWaveform().
|
static |
Definition at line 564 of file trigger_central.cpp.
Referenced by reportEventToWaveChart().
int maxTriggerReentrant = 0 |
Definition at line 435 of file trigger_central.cpp.
Referenced by handleShaftSignal(), printRuntimeStats(), and updateTunerStudioState().
uint32_t triggerDuration |
Definition at line 436 of file trigger_central.cpp.
Referenced by handleShaftSignal().
|
extern |
Definition at line 69 of file trigger_emulator_algo.cpp.
Referenced by disableTriggerStimulator(), emulatorApplyPinState(), setTriggerEmulatorRPM(), startSimulatedTriggerSignal(), startTriggerEmulatorPins(), stopTriggerEmulatorPins(), triggerInfo(), and updateTriggerWaveformIfNeeded().
uint32_t triggerMaxDuration = 0 |
Definition at line 437 of file trigger_central.cpp.
Referenced by handleShaftSignal(), resetMaxValues(), and triggerInfo().
int triggerReentrant = 0 |
Definition at line 434 of file trigger_central.cpp.
Referenced by handleShaftSignal().
WaveChart waveChart |
Definition at line 33 of file trigger_central.cpp.
Referenced by addEngineSnifferTdcEvent(), initTriggerCentral(), printOverallStatus(), Engine::resetEngineSnifferIfInTestMode(), resetNow(), and triggerInfo().
|
static |
Definition at line 565 of file trigger_central.cpp.
Referenced by reportEventToWaveChart().