rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
cdm_ion_sense.cpp File Reference

Functions

int getCurrentCdmValue (int currentRevolution)
 
void ionPostState (TunerStudioOutputChannels *tsOutputChannels)
 
static void extIonCallback (void *arg)
 
void cdmIonInit (void)
 

Variables

static CdmState instance
 

Function Documentation

◆ cdmIonInit()

void cdmIonInit ( void  )

Definition at line 75 of file cdm_ion_sense.cpp.

75 {
77 return;
78 }
79
80 efiExtiEnablePin("ion", engineConfiguration->cdmInputPin, PAL_EVENT_MODE_RISING_EDGE, extIonCallback, NULL);
81}
static void extIonCallback(void *arg)
int efiExtiEnablePin(const char *msg, brain_pin_e brainPin, uint32_t mode, ExtiCallback cb, void *cb_data)
static constexpr engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)

Referenced by initHardware().

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

◆ extIonCallback()

static void extIonCallback ( void *  arg)
static

Definition at line 67 of file cdm_ion_sense.cpp.

67 {
68 UNUSED(arg);
70
72 instance.onNewSignal(currentRevolution);
73}
static CdmState instance
int totalCdmEvents
void onNewSignal(int currentRevolution)
TriggerCentral triggerCentral
Definition engine.h:318
PrimaryTriggerDecoder triggerState
int getSynchronizationCounter() const
static EngineAccessor engine
Definition engine.h:413
UNUSED(samplingTimeSeconds)

Referenced by cdmIonInit().

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

◆ getCurrentCdmValue()

int getCurrentCdmValue ( int  currentRevolution)

Definition at line 57 of file cdm_ion_sense.cpp.

57 {
58 return instance.getValue(currentRevolution);
59}
int getValue(int currentRevolution)

Referenced by TriggerCentral::handleShaftSignal().

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

◆ ionPostState()

void ionPostState ( TunerStudioOutputChannels tsOutputChannels)

Definition at line 62 of file cdm_ion_sense.cpp.

62 {
63 tsOutputChannels->debugIntField1 = instance.totalCdmEvents;
64}

Variable Documentation

◆ instance

CdmState instance
static

Definition at line 55 of file cdm_ion_sense.cpp.

Referenced by extIonCallback(), getCurrentCdmValue(), and ionPostState().

Go to the source code of this file.