sonyremote library  v0.85
Decodes SONY IR remote signals
sonyremote.h
Go to the documentation of this file.
1 
14 #ifndef SONY_REMOTE_H
15 #define SONY_REMOTE_H
16 
17 #if defined(__cplusplus)
18 extern "C" {
19 #endif
20 
21 
25 #ifndef ENTER
26 #define ENTER 11
27 #endif
28 
32 #ifndef CH_UP
33 #define CH_UP 16
34 #endif
35 
39 #ifndef CH_DN
40 #define CH_DN 17
41 #endif
42 
46 #ifndef VOL_UP
47 #define VOL_UP 18
48 #endif
49 
53 #ifndef VOL_DN
54 #define VOL_DN 19
55 #endif
56 
60 #ifndef MUTE
61 #define MUTE 20
62 #endif
63 
67 #ifndef PWR
68 #define PWR 21
69 #endif
70 
74 #ifndef PREV_CH
75 #define PREV_CH 59
76 #endif
77 
78 #include "simpletools.h" // Include simple tools
79 
85 void ir_tLimit(int ms);
86 
96 int ir_key(int pin);
97 
107 int ir_code(int pin, int bits);
108 
109 #if defined(__cplusplus)
110 }
111 #endif
112 /* __cplusplus */
113 #endif
114 /* SONY_REMOTE_H */
115 
116 /*
117  * TERMS OF USE: MIT License
118  *
119  * Permission is hereby granted, free of charge, to any person obtaining a
120  * copy of this software and associated documentation files (the "Software"),
121  * to deal in the Software without restriction, including without limitation
122  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
123  * and/or sell copies of the Software, and to permit persons to whom the
124  * Software is furnished to do so, subject to the following conditions:
125  *
126  * The above copyright notice and this permission notice shall be included in
127  * all copies or substantial portions of the Software.
128  *
129  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
130  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
131  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
132  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
133  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
134  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
135  * DEALINGS IN THE SOFTWARE.
136  */
137