rusEFI
The most advanced open source ECU
|
#include <trigger_decoder.h>
Public Member Functions | |
VvtTriggerDecoder (const char *p_name) | |
void | onNotEnoughTeeth (int actual, int expected) override |
void | onTooManyTeeth (int actual, int expected) override |
![]() | |
TriggerDecoderBase (const char *name) | |
void | printGaps (const char *prefix, const TriggerConfiguration &triggerConfiguration, const TriggerWaveform &triggerShape) |
int | getCurrentIndex () const |
int | getSynchronizationCounter () const |
void | incrementShaftSynchronizationCounter () |
int64_t | getTotalEventCounter () const |
expected< TriggerDecodeResult > | decodeTriggerEvent (const char *msg, const TriggerWaveform &triggerShape, TriggerStateListener *triggerStateListener, const TriggerConfiguration &triggerConfiguration, const trigger_event_e signal, const efitick_t nowNt) |
Trigger decoding happens here VR falls are filtered out and some VR noise detection happens prior to invoking this method, for Hall this method is invoked every time we have a fall or rise on one of the trigger sensors. This method changes the state of trigger_state_s data structure according to the trigger event. | |
void | onShaftSynchronization (bool wasSynchronized, const efitick_t nowNt, const TriggerWaveform &triggerShape) |
bool | isValidIndex (const TriggerWaveform &triggerShape) const |
virtual void | resetState () |
void | setShaftSynchronized (bool value) |
bool | getShaftSynchronized () const |
uint32_t | findTriggerZeroEventIndex (TriggerWaveform &shape, const TriggerConfiguration &triggerConfiguration) |
bool | someSortOfTriggerError () const |
Additional Inherited Members | |
![]() | |
float | gapRatio [PWM_PHASE_MAX_COUNT *6] |
bool | shaft_is_synchronized = false |
efitick_t | mostRecentSyncTime |
Timer | previousEventTimer |
uint32_t | toothDurations [GAP_TRACKING_LENGTH+1] |
efitick_t | toothed_previous_time |
current_cycle_state_s | currentCycle |
const char *const | name |
uint32_t | totalTriggerErrorCounter |
uint32_t | orderingErrorCounter |
efitick_t | startOfCycleNt |
![]() | |
uint32_t | synchronizationCounter = (uint32_t)0 |
uint32_t | vvtToothDurations0 = (uint32_t)0 |
float | vvtCurrentPosition = (float)0 |
float | vvtToothPosition [4] = {} |
float | triggerSyncGapRatio = (float)0 |
uint8_t | triggerStateIndex = (uint8_t)0 |
int8_t | triggerCountersError = (int8_t)0 |
uint8_t | alignmentFill_at_34 [2] = {} |
![]() | |
virtual void | onTriggerError () |
Definition at line 236 of file trigger_decoder.h.
|
inline |
Definition at line 238 of file trigger_decoder.h.
|
overridevirtual |
Reimplemented from TriggerDecoderBase.
Definition at line 299 of file trigger_decoder.cpp.
|
overridevirtual |
Reimplemented from TriggerDecoderBase.
Definition at line 303 of file trigger_decoder.cpp.