rusEFI
The most advanced open source ECU
|
Initialization of Input Capture pins used for rusEfi console sniffer.
This file is responsible for sniffing of external digital signals and registering these digital events in WaveChart used by the Engine Sniffer tab of rusEfi Console.
this is rusEfi build-in logic analyzer
Definition in file logic_analyzer.cpp.
Functions | |
static void | riseCallback (WaveReader *reader) |
void | logicAnalyzerCallback (void *arg, efitick_t) |
static void | initWave (size_t index) |
void | waTriggerEventListener (trigger_event_e ckpSignalType, uint32_t index, efitick_t edgeTimestamp) |
static float | getSignalOnTime (int index) |
static efitimeus_t | getWaveOffset (int index) |
static float | getSignalPeriodMs (int index) |
static void | reportWave (Logging *logging, int index) |
void | printWave (Logging *logging) |
void | showWaveInfo (void) |
void | initWaveAnalyzer () |
void | startLogicAnalyzerPins () |
void | stopLogicAnalyzerPins () |
template<typename TFreq > | |
static void | getChannelFreqAndDuty (int index, float &duty, TFreq &freq) |
void | reportLogicAnalyzerToTS () |
Variables | |
static volatile uint32_t | engineCycleDurationUs |
static volatile efitimeus_t | previousEngineCycleTimeUs = 0 |
static WaveReader | readers [LOGIC_ANALYZER_CHANNEL_COUNT] |
|
static |
Definition at line 261 of file logic_analyzer.cpp.
Referenced by reportLogicAnalyzerToTS().
|
static |
Definition at line 164 of file logic_analyzer.cpp.
Referenced by getChannelFreqAndDuty(), and reportWave().
|
static |
Definition at line 177 of file logic_analyzer.cpp.
Referenced by getChannelFreqAndDuty(), and reportWave().
|
static |
Definition at line 173 of file logic_analyzer.cpp.
Referenced by reportWave().
|
static |
in case we are running, and we select none for a channel that was running, this way we ensure that we do not get false report from that channel
Definition at line 129 of file logic_analyzer.cpp.
Referenced by startLogicAnalyzerPins().
void initWaveAnalyzer | ( | ) |
Definition at line 236 of file logic_analyzer.cpp.
Referenced by initRealHardwareEngineController().
void logicAnalyzerCallback | ( | void * | arg, |
efitick_t | |||
) |
Definition at line 117 of file logic_analyzer.cpp.
Referenced by initWave().
void printWave | ( | Logging * | logging | ) |
Definition at line 227 of file logic_analyzer.cpp.
Referenced by updateDevConsoleState().
void reportLogicAnalyzerToTS | ( | void | ) |
Definition at line 280 of file logic_analyzer.cpp.
Referenced by updateTunerStudioState().
|
static |
that's the ON time of the LAST signal
that's the total ON time during the previous engine cycle
Definition at line 181 of file logic_analyzer.cpp.
Referenced by printWave().
|
static |
Definition at line 72 of file logic_analyzer.cpp.
Referenced by logicAnalyzerCallback().
void showWaveInfo | ( | void | ) |
Definition at line 232 of file logic_analyzer.cpp.
Referenced by initWaveAnalyzer().
void startLogicAnalyzerPins | ( | ) |
Definition at line 244 of file logic_analyzer.cpp.
Referenced by applyNewHardwareSettings().
void stopLogicAnalyzerPins | ( | ) |
Definition at line 250 of file logic_analyzer.cpp.
Referenced by stopHardware().
void waTriggerEventListener | ( | trigger_event_e | ckpSignalType, |
uint32_t | index, | ||
efitick_t | edgeTimestamp | ||
) |
Definition at line 153 of file logic_analyzer.cpp.
Referenced by TriggerCentral::handleShaftSignal().
|
static |
Difference between current 1st trigger event and previous 1st trigger event.
Definition at line 31 of file logic_analyzer.cpp.
Referenced by waTriggerEventListener().
|
static |
Definition at line 32 of file logic_analyzer.cpp.
Referenced by waTriggerEventListener().
|
static |
Definition at line 70 of file logic_analyzer.cpp.
Referenced by getChannelFreqAndDuty(), getSignalOnTime(), getSignalPeriodMs(), getWaveOffset(), initWave(), reportWave(), and showWaveInfo().