rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
cdm_ion_sense.h File Reference

Data Structures

class  CdmState
 

Functions

void ionPostState (TunerStudioOutputChannels *tsOutputChannels)
 
void cdmIonInit (void)
 
int getCurrentCdmValue (int currentRevolution)
 

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:

◆ getCurrentCdmValue()

int getCurrentCdmValue ( int  currentRevolution)

Definition at line 57 of file cdm_ion_sense.cpp.

57 {
58 return instance.getValue(currentRevolution);
59}
static CdmState instance
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}
int totalCdmEvents

Go to the source code of this file.