2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file map_averaging.h
|
|
|
|
*
|
|
|
|
* @date Dec 11, 2013
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2019-11-14 21:00:13 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
2019-04-12 19:07:03 -07:00
|
|
|
#if EFI_MAP_AVERAGING
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-04-12 19:07:03 -07:00
|
|
|
#if HAL_USE_ADC
|
2018-02-06 12:58:57 -08:00
|
|
|
void mapAveragingAdcCallback(adcsample_t newValue);
|
2015-07-10 06:01:56 -07:00
|
|
|
#endif
|
|
|
|
|
2019-10-14 06:09:08 -07:00
|
|
|
void initMapAveraging(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2018-02-06 12:47:19 -08:00
|
|
|
void refreshMapAveragingPreCalc(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2019-10-14 03:18:08 -07:00
|
|
|
|
2020-10-03 23:09:12 -07:00
|
|
|
void mapAveragingTriggerCallback(
|
2020-10-03 22:43:02 -07:00
|
|
|
uint32_t index, efitick_t edgeTimestamp DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
|
2019-10-14 03:18:08 -07:00
|
|
|
#if EFI_TUNER_STUDIO
|
2018-02-06 13:21:41 -08:00
|
|
|
void postMapState(TunerStudioOutputChannels *tsOutputChannels);
|
2019-10-14 03:18:08 -07:00
|
|
|
#endif
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* EFI_MAP_AVERAGING */
|