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) |
static bool | tooSoonToHandleSignal () |
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) |
PUBLIC_API_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 int | wheelIndeces [4] = { 0, 0, 1, 1} |
PwmConfig | triggerEmulatorSignals [NUM_EMULATOR_CHANNELS] |
TriggerDecoderBase | initState ("init") |
|
static |
Definition at line 161 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
PUBLIC_API_WEAK bool boardAllowTriggerActions | ( | ) |
Definition at line 735 of file trigger_central.cpp.
Referenced by TriggerCentral::handleShaftSignal().
|
static |
Calculate 'shape.triggerShapeSynchPointIndex' value using 'TriggerDecoderBase *state'
Definition at line 1079 of file trigger_central.cpp.
Referenced by TriggerCentral::applyShapesConfiguration().
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 98 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 464 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 289 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 448 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 272 of file trigger_central.cpp.
Referenced by cam_callback(), comp_cam_callback(), and hwHandleVvtCamSignal().
void hwHandleVvtCamSignal | ( | TriggerValue | front, |
efitick_t | nowNt, | ||
int | index | ||
) |
Definition at line 277 of file trigger_central.cpp.
Referenced by TriggerCentral::decodeMapCam().
void initTriggerCentral | ( | ) |
Definition at line 1214 of file trigger_central.cpp.
Referenced by commonEarlyInit().
|
static |
Definition at line 1061 of file trigger_central.cpp.
Referenced by TriggerCentral::applyShapesConfiguration().
|
static |
Definition at line 232 of file trigger_central.cpp.
Referenced by handleVvtCamSignal().
void onConfigurationChangeTriggerCallback | ( | ) |
Definition at line 1009 of file trigger_central.cpp.
Referenced by incrementGlobalConfigurationVersion().
|
static |
Definition at line 555 of file trigger_central.cpp.
Referenced by TriggerCentral::handleShaftSignal().
|
static |
Definition at line 1002 of file trigger_central.cpp.
Referenced by initTriggerCentral().
|
static |
Definition at line 261 of file trigger_central.cpp.
Referenced by hwHandleShaftSignal(), and hwHandleVvtCamSignal().
void triggerInfo | ( | void | ) |
Definition at line 904 of file trigger_central.cpp.
Referenced by initTriggerCentral(), and resetRunningTriggerCounters().
|
static |
Definition at line 887 of file trigger_central.cpp.
Referenced by initTriggerCentral().
|
static |
Definition at line 145 of file trigger_central.cpp.
Referenced by handleShaftSignal(), and logVvtFront().
void validateTriggerInputs | ( | ) |
Definition at line 1204 of file trigger_central.cpp.
Referenced by startHardware().
|
static |
Definition at line 125 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 TriggerCentral::applyShapesConfiguration(), calculateTriggerSynchPoint(), and initVvtShape().
int maxTriggerReentrant = 0 |
Definition at line 439 of file trigger_central.cpp.
Referenced by handleShaftSignal(), printRuntimeStats(), and updateTunerStudioState().
uint32_t triggerDuration |
Definition at line 440 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 441 of file trigger_central.cpp.
Referenced by handleShaftSignal(), resetMaxValues(), and triggerInfo().
int triggerReentrant = 0 |
Definition at line 438 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 553 of file trigger_central.cpp.
Referenced by reportEventToWaveChart().