rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
cdm_ion_sense.h
Go to the documentation of this file.
1/*
2 * @file cdm_ion_sense.h
3 *
4 * @date Dec 31, 2018
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#pragma once
9
10#include "global.h"
11#include "tunerstudio_outputs.h"
12
13class CdmState {
14public:
15 CdmState();
17
19 /**
20 * accumulated value for engine cycle which is not over yet
21 */
23 /**
24 * event counter for previous complete engine cycle
25 */
26 int currentValue = 0;
28 void onNewSignal(int currentRevolution);
29 void applyAccumulatedData(int currentRevolution);
30 int getValue(int currentRevolution);
31};
32
33#if EFI_TUNER_STUDIO
34void ionPostState(TunerStudioOutputChannels *tsOutputChannels);
35#endif
36
37void cdmIonInit(void);
38int getCurrentCdmValue(int currentRevolution);
39
void ionPostState(TunerStudioOutputChannels *tsOutputChannels)
void cdmIonInit(void)
int getCurrentCdmValue(int currentRevolution)
void applyAccumulatedData(int currentRevolution)
int totalCdmEvents
int getValue(int currentRevolution)
int currentValue
void onNewSignal(int currentRevolution)
int currentValueAtIndex
int accumulatingCurrentValue
int accumilatingAtRevolution