PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
simple
sirc.h
1
17
#ifndef SONY_REMOTE_H
18
#define SONY_REMOTE_H
19
20
#if defined(__cplusplus)
21
extern
"C"
{
22
#endif
23
24
28
#ifndef ENTER
29
#define ENTER 11
30
#endif
31
35
#ifndef CH_UP
36
#define CH_UP 16
37
#endif
38
42
#ifndef CH_DN
43
#define CH_DN 17
44
#endif
45
49
#ifndef VOL_UP
50
#define VOL_UP 18
51
#endif
52
56
#ifndef VOL_DN
57
#define VOL_DN 19
58
#endif
59
63
#ifndef MUTE
64
#define MUTE 20
65
#endif
66
70
#ifndef PWR
71
#define PWR 21
72
#endif
73
77
#ifndef PREV_CH
78
#define PREV_CH 59
79
#endif
80
85
#ifndef ARROW_UP
86
#define ARROW_UP 53
87
#endif
88
93
#ifndef ARROW_DN
94
#define ARROW_DN 54
95
#endif
96
101
#ifndef ARROW_L
102
#define ARROW_L 52
103
#endif
104
109
#ifndef ARROW_R
110
#define ARROW_R 51
111
#endif
112
113
#include "simpletools.h"
// Include simple tools
114
120
void
sirc_setTimeout(
int
ms);
121
131
int
sirc_button(
int
pin);
132
141
int
sirc_device(
int
pin);
142
152
int
sirc_code(
int
pin,
int
bits);
153
154
#if defined(__cplusplus)
155
}
156
#endif
157
/* __cplusplus */
158
#endif
159
/* SONY_REMOTE_H */
160
161
/*
162
* TERMS OF USE: MIT License
163
*
164
* Permission is hereby granted, free of charge, to any person obtaining a
165
* copy of this software and associated documentation files (the "Software"),
166
* to deal in the Software without restriction, including without limitation
167
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
168
* and/or sell copies of the Software, and to permit persons to whom the
169
* Software is furnished to do so, subject to the following conditions:
170
*
171
* The above copyright notice and this permission notice shall be included in
172
* all copies or substantial portions of the Software.
173
*
174
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
175
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
176
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
177
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
178
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
179
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
180
* DEALINGS IN THE SOFTWARE.
181
*/
182
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12