-
Notifications
You must be signed in to change notification settings - Fork 0
/
fans.h
69 lines (48 loc) · 1.48 KB
/
fans.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef FANS_H
#define FANS_H
// Variablen
typedef struct {
uint8_t ctrl;
uint8_t humi;
uint8_t timeH;
uint8_t timeM;
uint8_t dur;
uint8_t rep;
} Fan_t;
extern Fan_t Fan_fans[];
// Makros
// Funktions-Dummies
int8_t Fan_State_1_Ctrl(int8_t input);
int8_t Fan_State_1_Humi(int8_t input);
int8_t Fan_State_1_On(int8_t input);
int8_t Fan_State_1_Rep(int8_t input);
int8_t Fan_State_1_Dur(int8_t input);
int8_t Fan_State_1_Back(int8_t input);
int8_t Fan_State_2_Ctrl(int8_t input);
int8_t Fan_State_2_Humi(int8_t input);
int8_t Fan_State_2_On(int8_t input);
int8_t Fan_State_2_Rep(int8_t input);
int8_t Fan_State_2_Dur(int8_t input);
int8_t Fan_State_2_Back(int8_t input);
int8_t Fan_State_3_Ctrl(int8_t input);
int8_t Fan_State_3_Humi(int8_t input);
int8_t Fan_State_3_On(int8_t input);
int8_t Fan_State_3_Rep(int8_t input);
int8_t Fan_State_3_Dur(int8_t input);
int8_t Fan_State_3_Back(int8_t input);
int8_t Fan_State_4_Ctrl(int8_t input);
int8_t Fan_State_4_Humi(int8_t input);
int8_t Fan_State_4_On(int8_t input);
int8_t Fan_State_4_Rep(int8_t input);
int8_t Fan_State_4_Dur(int8_t input);
int8_t Fan_State_4_Back(int8_t input);
// Eigentliche Funktionen
int8_t Fan_State_Ctrl(uint8_t fan, int8_t input);
int8_t Fan_State_Humi(uint8_t fan, int8_t input);
int8_t Fan_State_On(uint8_t fan, int8_t input);
int8_t Fan_State_Rep(uint8_t fan, int8_t input);
int8_t Fan_State_Dur(uint8_t fan, int8_t input);
int8_t Fan_State_Back(uint8_t fan, int8_t input);
// Task
Task_t* Fans(void);
#endif