Electronic Load 1.0 Programmable Constant Current Sink

sensors.h
Go to the documentation of this file.
1 /*
2 * sensors.h
3 *
4 * Created: 09.04.2013 21:35:29
5 * Author: Robert
6 */
7
8
9 #ifndef SENSORS_H_
10 #define SENSORS_H_
11
12 static const double NTC_RVCC=22000.0;
13 static const double NTC_A1=0.0013073785526997012;
14 static const double NTC_B1=0.00021332970951798227;
15 static const double NTC_C1=0.0;
16 static const double NTC_D1=1.04693344564582e-7;
17 static const double celsius0=273.15;
18
19
20 double TempFromADC(void);
21 double HSTempFromADC(void);
22 double P5FromADC(uint16_t);
23 double P12FromADC(uint16_t);
24 double SWUnregFromADC(uint16_t);
25 double RNTCfromTemp(double t);
26 uint16_t ADCfromTemp(double temp);
27
28
29
30 #endif /* SENSORS_H_ */
temp
ctlRefresh_t temp
Definition: screen.c:182
NTC_C1
static const double NTC_C1
Definition: sensors.h:15
P5FromADC
double P5FromADC(uint16_t)
Converts a P5-Raw ADC Value to Voltage.
Definition: sensors.c:38
TempFromADC
double TempFromADC(void)
Converts the ADC-Temp of the Display NTC Value to Celsius This function also calculates the derating ...
Definition: sensors.c:59
NTC_A1
static const double NTC_A1
Definition: sensors.h:13
NTC_RVCC
static const double NTC_RVCC
Definition: sensors.h:12
P12FromADC
double P12FromADC(uint16_t)
Converts a Unreg-Raw ADC Value to Voltage.
Definition: sensors.c:47
SWUnregFromADC
double SWUnregFromADC(uint16_t)
ADCfromTemp
uint16_t ADCfromTemp(double temp)
Computes the ADC-Value for a given Temperature.
Definition: sensors.c:151
NTC_D1
static const double NTC_D1
Definition: sensors.h:16
RNTCfromTemp
double RNTCfromTemp(double t)
Computes the NTC-Resistance for a given Temperature.
Definition: sensors.c:131
HSTempFromADC
double HSTempFromADC(void)
Converts the ADC-Temp Value of the Heat Sink NTC to Celsius.
Definition: sensors.c:84
celsius0
static const double celsius0
Definition: sensors.h:17
NTC_B1
static const double NTC_B1
Definition: sensors.h:14