2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file thermistors.h
|
|
|
|
*
|
|
|
|
* @date Feb 17, 2013
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-01-20 22:40:11 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#define KELV 273.15f
|
|
|
|
|
|
|
|
/**
|
|
|
|
* converts Kelvin temperature into Celsius temperature
|
|
|
|
*/
|
|
|
|
#define convertKelvinToCelcius(tempK) ((tempK) - KELV)
|
|
|
|
#define convertCelsiusToKelvin(tempC) ((tempC) + KELV)
|
|
|
|
|
2019-10-02 18:00:10 -07:00
|
|
|
void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup);
|
|
|
|
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup);
|
|
|
|
void set10K_4050K(ThermistorConf *thermistorConf, float pullup);
|
2015-07-10 06:01:56 -07:00
|
|
|
|