-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSystem_Interface.h
More file actions
40 lines (33 loc) · 835 Bytes
/
System_Interface.h
File metadata and controls
40 lines (33 loc) · 835 Bytes
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
/*
* System_State.h
*
* Created on: Jan 1, 2022
* Author: Ahmed Loutfi
*/
#ifndef SYSTEM_INTERFACE_H_
#define SYSTEM_INTERFACE_H_
//Possible States For Heater
#define NOTHING 0
#define HEATING 1
#define COOLING 2
#define SYSTEM_OFF 0
#define SYSTEM_ON 1
#define SYSTEM_SET 2
void System_Init(void);
void System_Dis(void);
u8 Setting_Mode(u8* Flag);
void SystemFun(u16 Desired_State,u8* Flag);
void HeaterLamp(u16 Desired_State,u8* Flag);
void Seven_seg_Init(void);
void Seven_seg_OFF(void);
void seven_Seg_Display(u16 Temp);
u16 Current_Temp(void);
u16 Current_State(u16 PrevState,u16 CurrentTemp);
void TIMER1_Init(void);
void TIMER1_Reset(void);
void TIMER1_OFF(void);
void TIMER1_SetCTCValue(u16 Copy_u16CTCValue);
static u8 Timer1Count=0;
//u8 Flag_1_Sec =0;
//u8 Flag_5_Sec =0;
#endif /* SYSTEM_INTERFACE_H_ */