rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
logic_analyzer.h File Reference

Detailed Description

Date
Jan 7, 2013
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file logic_analyzer.h.

Functions

void initWaveAnalyzer ()
 
void startLogicAnalyzerPins ()
 
void stopLogicAnalyzerPins ()
 
void printWave (Logging *logging)
 
void showWaveInfo (void)
 
void reportLogicAnalyzerToTS (void)
 
void waTriggerEventListener (trigger_event_e ckpSignalType, uint32_t index, efitick_t edgeTimestamp)
 

Function Documentation

◆ initWaveAnalyzer()

void initWaveAnalyzer ( )

Definition at line 236 of file logic_analyzer.cpp.

236 {
237 if (hasFirmwareError()) {
238 return;
239 }
240
241 addConsoleAction("waveinfo", showWaveInfo);
242}
void addConsoleAction(const char *token, Void callback)
Register console action without parameters.
void showWaveInfo(void)

Referenced by initRealHardwareEngineController().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printWave()

void printWave ( Logging logging)

Definition at line 227 of file logic_analyzer.cpp.

227 {
228 reportWave(logging, 0);
229 reportWave(logging, 1);
230}
static void reportWave(Logging *logging, int index)

Referenced by updateDevConsoleState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportLogicAnalyzerToTS()

void reportLogicAnalyzerToTS ( void  )

Definition at line 280 of file logic_analyzer.cpp.

280 {
281#if EFI_TUNER_STUDIO
286#endif
287}
TunerStudioOutputChannels outputChannels
Definition engine.h:109
static EngineAccessor engine
Definition engine.h:413
static void getChannelFreqAndDuty(int index, float &duty, TFreq &freq)

Referenced by updateTunerStudioState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showWaveInfo()

void showWaveInfo ( void  )

Definition at line 232 of file logic_analyzer.cpp.

232 {
233 efiPrintf("logic input #1: %d/%d", readers[0].fallEventCounter, readers[0].riseEventCounter);
234}
static WaveReader readers[LOGIC_ANALYZER_CHANNEL_COUNT]

Referenced by initWaveAnalyzer().

Here is the caller graph for this function:

◆ startLogicAnalyzerPins()

void startLogicAnalyzerPins ( )

Definition at line 244 of file logic_analyzer.cpp.

244 {
245 for (size_t index = 0; index < LOGIC_ANALYZER_CHANNEL_COUNT; index++) {
246 initWave(index);
247 }
248}
static void initWave(size_t index)

Referenced by applyNewHardwareSettings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopLogicAnalyzerPins()

void stopLogicAnalyzerPins ( )

Definition at line 250 of file logic_analyzer.cpp.

250 {
251 for (int index = 0; index < LOGIC_ANALYZER_CHANNEL_COUNT; index++) {
253
254 if (isBrainPinValid(brainPin)) {
255 efiExtiDisablePin(brainPin);
256 }
257 }
258}
void efiExtiDisablePin(brain_pin_e brainPin)
engine_configuration_s & activeConfiguration
bool isBrainPinValid(brain_pin_e brainPin)
brain_input_pin_e logicAnalyzerPins[LOGIC_ANALYZER_CHANNEL_COUNT]

Referenced by stopHardware().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ waTriggerEventListener()

void waTriggerEventListener ( trigger_event_e  ckpSignalType,
uint32_t  index,
efitick_t  edgeTimestamp 
)

Definition at line 153 of file logic_analyzer.cpp.

153 {
154 (void)ckpSignalType;
155 if (index != 0) {
156 return;
157 }
158
159 efitimeus_t nowUs = NT2US(edgeTimestamp);
162}
static volatile efitimeus_t previousEngineCycleTimeUs
static volatile uint32_t engineCycleDurationUs

Referenced by TriggerCentral::handleShaftSignal().

Here is the caller graph for this function:

Go to the source code of this file.