rusefi/firmware/controllers/sensors/thermistors.h

28 lines
730 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 setAtSensor(ThermistorConf *thermistorConf,
float tempLow, float rLow,
float tempMid, float rMid,
float tempHigh, float rHigh);
void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup);
void setGmCltSensor(ThermistorConf *thermistorConf, float pullup);
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup);
void set10K_4050K(ThermistorConf *thermistorConf, float pullup);