heat control  r71
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hc.h
Go to the documentation of this file.
1 #ifndef __HC_H__
2 #define __HC_H__
3 
8 #define DELTA_TEMP 200
9 
13 #define IV_HCREC 3
14 
19 #define ENG_CTRL_DUR 5
20 
24 //#define OUT_TMP_RISE_DUR 3 * IV_MEAS
29 //#define OUT_TMP_DEL_MULT 2
34 #define OUT_TMP_SHDN_TH 20500
35 
39 #define SHTDN_DUR 3
40 
44 #define NOM_IN_TMP 20100
45 
48 #define NM_TIN 'I'
49 
52 #define NM_TOUT 'O'
53 
56 #define NM_TFOR 'F'
57 
60 #define NM_TNOM 'S'
61 
64 #define NM_TDINNOM 'D'
65 
68 #define NM_OPMODE 'M'
69 
72 #define NM_CNT 'C'
73 
76 #define NM_TIME 'T'
77 
80 #define NM_VOLT 'V'
81 
84 #define NM_MXP 'P'
85 
88 #define NM_MSRFULL 'E'
89 
92 #define DEL_FOR_TEMP 500
93 
96 #define MIN_FOR_TEMP 18000
97 
100 #define MAX_FOR_TEMP 0xFFFE
101 
105 #define OFF_IN_TEMP 0
106 
107 int main(void);
108 MEASSET* DoControl(INT inTemp, INT outTemp, UINT forTemp, UCHAR learning, UINT min, UCHAR sec);
109 void DoRecord(UCHAR* recCnt, MEASSET* set);
110 void ControlEngine(ENG_MODE em);
111 void PrintMeasValues(MEASSET* ms, OP_MODE opm, UCHAR msrFull);
112 void PrintValue(DATTYPE dt, UCHAR col, UCHAR row, UCHAR name, void* value);
113 void DoEngineTest(BTN_CODE bc);
114 UINT FindForeRun(INT* outTemp, const UCHAR range, UINT const delLim);
115 UCHAR CalcPrevIndex(UCHAR curIdx, UCHAR delIdx);
116 
117 #endif
118 
119 
UINT FindForeRun(INT *outTemp, const UCHAR range, UINT const delLim)
gets the forerun temperature of the closest outer temperature which was recorded in learning phase a...
Definition: hc.c:387
BTN_CODE
Definition: types.h:299
void PrintMeasValues(MEASSET *ms, OP_MODE opm, UCHAR msrFull)
puts the measurement values on screen
Definition: hc.c:455
OP_MODE
Definition: types.h:146
void DoRecord(UCHAR *recCnt, MEASSET *set)
#define UCHAR
Definition: types.h:73
UCHAR CalcPrevIndex(UCHAR curIdx, UCHAR delIdx)
Definition: hc.c:517
#define INT
Definition: types.h:77
void ControlEngine(ENG_MODE em)
takes care of the heating curve recording in eeprom records only if outer temp value does not exist ...
Definition: hc.c:432
MEASSET * DoControl(INT inTemp, INT outTemp, UINT forTemp, UCHAR learning, UINT min, UCHAR sec)
realizes the main heater controlling algorithm the value of inner temperature distinguishes between ...
Definition: hc.c:279
int main(void)
main controlling task
Definition: hc.c:52
DATTYPE
Definition: types.h:113
void DoEngineTest(BTN_CODE bc)
do engine testing dependent on button request, simply drives the mixer engine unconditionally ...
Definition: hc.c:495
ENG_MODE
Definition: types.h:188
void PrintValue(DATTYPE dt, UCHAR col, UCHAR row, UCHAR name, void *value)
put a specific value on screen
Definition: hc.c:480
#define UINT
Definition: types.h:81
Definition: types.h:206