ASURO Library  2.80
rc5.h
Go to the documentation of this file.
1 /*
2  * rc5.h Infrarot Fernbedienung Definitionen
3  *
4  * This program is free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General
6  * Public License as published by the Free Software
7  * Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  * This program is distributed in the hope that it will be
10  * useful, but WITHOUT ANY WARRANTY; without even the implied
11  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public
14  * License along with this program; if not, write to the Free
15  * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16  * MA 02111-1307, USA.
17  *
18  */
19 
30 #ifndef RC5_H
31 #define RC5_H
32 
33 #include <inttypes.h>
34 
35 #define RC5_TOGGLE 0x0800
36 #define RC5_ADDRESS 0x07C0
37 #define RC5_COMMAND 0x103F
39 #define RC5_MASK (RC5_COMMAND)
40 
41 extern volatile uint16_t RC5data;
42 extern volatile uint8_t enableRC5;
47 void InitRC5(void);
48 
53 uint16_t ReadRC5(void);
54 
59 void IsrRC5(void);
60 #endif /* RC5_H */