rusefi-1/firmware/controllers/sensors/thermistors.h

22 lines
517 B
C

/**
* @file thermistors.h
*
* @date Feb 17, 2013
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#pragma once
#define KELV 273.15f
/**
* converts Kelvin temperature into Celsius temperature
*/
#define convertKelvinToCelcius(tempK) ((tempK) - KELV)
#define convertCelsiusToKelvin(tempC) ((tempC) + KELV)
void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup);
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup);
void set10K_4050K(ThermistorConf *thermistorConf, float pullup);