-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIR_Receiver.h
37 lines (27 loc) · 850 Bytes
/
IR_Receiver.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
// Marvin Coopman
// 1001781933
// IR_Receiver
//-----------------------------------------------------------------------------
// Hardware Target
//-----------------------------------------------------------------------------
// Target Platform: EK-TM4C123GXL
// Target uC: TM4C123GH6PM
// System Clock: 40 MHz
#ifndef IR_RECEIVER_H_
#define IR_RECEIVER_H_
//-----------------------------------------------------------------------------
// Subroutines
//-----------------------------------------------------------------------------
typedef struct _button{
uint8_t add;
uint8_t data;
char name[50];
}button;
void initIR();
void enableWTimer3();
void createCode();
void wideTimer3Isr();
char* findButton(button* button1);
bool isValid();
void clearCode();
#endif /* IR_RECEIVER_H_ */