rusefi-1/firmware/hw_layer/cdm_ion_sense.h

37 lines
685 B
C
Raw Normal View History

2018-12-31 13:00:41 -08:00
/*
* cdm_ion_sense.h
*
* Created on: Dec 31, 2018
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#ifndef HW_LAYER_CDM_ION_SENSE_H_
#define HW_LAYER_CDM_ION_SENSE_H_
#include "global.h"
2019-01-04 20:47:39 -08:00
class CdmState {
public:
CdmState();
int currentRevolution;
/**
* accumulated value for engine cycle which is not over yet
*/
int accumulator;
/**
* event counter for previous complete engine cycle
*/
int currentValue;
void onNewSignal(int currentRevolution);
int getValue();
};
2019-01-03 20:51:29 -08:00
#if EFI_TUNER_STUDIO
#include "tunerstudio_configuration.h"
2018-12-31 13:00:41 -08:00
void ionPostState(TunerStudioOutputChannels *tsOutputChannels);
2019-01-03 20:51:29 -08:00
#endif
2018-12-31 13:00:41 -08:00
2019-01-04 20:47:39 -08:00
void cdmIonInit(void);
2018-12-31 13:00:41 -08:00
#endif /* HW_LAYER_CDM_ION_SENSE_H_ */