libsigrokdecode  unreleased development snapshot
sigrok protocol decoding library
irmpprotocols.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------------------------------------------------------------------------------
2  * irmpprotocols.h - irmp protocols
3  *
4  * DO NOT INCLUDE THIS FILE, WILL BE INCLUDED BY IRMP.H or IRSND.H!
5  *
6  * Copyright (c) 2013-2019 Frank Meyer - frank(at)fli4l.de
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *---------------------------------------------------------------------------------------------------------------------------------------------------
13  */
14 
15 #ifndef _IRMP_PROTOCOLS_H_
16 #define _IRMP_PROTOCOLS_H_
17 
18 #if !defined(_IRMP_H_) && !defined(_IRSND_H_)
19 # error please include only irmp.h or irsnd.h, not irmpprotocols.h
20 #endif
21 
22 /*---------------------------------------------------------------------------------------------------------------------------------------------------
23  * IR protocols:
24  *---------------------------------------------------------------------------------------------------------------------------------------------------
25  */
26 #define IRMP_UNKNOWN_PROTOCOL 0 // uknown protocol
27 #define IRMP_SIRCS_PROTOCOL 1 // Sony
28 #define IRMP_NEC_PROTOCOL 2 // NEC, Pioneer, JVC, Toshiba, NoName etc.
29 #define IRMP_SAMSUNG_PROTOCOL 3 // Samsung
30 #define IRMP_MATSUSHITA_PROTOCOL 4 // Matsushita
31 #define IRMP_KASEIKYO_PROTOCOL 5 // Kaseikyo (Panasonic etc)
32 #define IRMP_RECS80_PROTOCOL 6 // Philips, Thomson, Nordmende, Telefunken, Saba
33 #define IRMP_RC5_PROTOCOL 7 // Philips etc
34 #define IRMP_DENON_PROTOCOL 8 // Denon, Sharp
35 #define IRMP_RC6_PROTOCOL 9 // Philips etc
36 #define IRMP_SAMSUNG32_PROTOCOL 10 // Samsung32: no sync pulse at bit 16, length 32 instead of 37
37 #define IRMP_APPLE_PROTOCOL 11 // Apple, very similar to NEC
38 #define IRMP_RECS80EXT_PROTOCOL 12 // Philips, Technisat, Thomson, Nordmende, Telefunken, Saba
39 #define IRMP_NUBERT_PROTOCOL 13 // Nubert
40 #define IRMP_BANG_OLUFSEN_PROTOCOL 14 // Bang & Olufsen
41 #define IRMP_GRUNDIG_PROTOCOL 15 // Grundig
42 #define IRMP_NOKIA_PROTOCOL 16 // Nokia
43 #define IRMP_SIEMENS_PROTOCOL 17 // Siemens, e.g. Gigaset
44 #define IRMP_FDC_PROTOCOL 18 // FDC keyboard
45 #define IRMP_RCCAR_PROTOCOL 19 // RC Car
46 #define IRMP_JVC_PROTOCOL 20 // JVC (NEC with 16 bits)
47 #define IRMP_RC6A_PROTOCOL 21 // RC6A, e.g. Kathrein, XBOX
48 #define IRMP_NIKON_PROTOCOL 22 // Nikon
49 #define IRMP_RUWIDO_PROTOCOL 23 // Ruwido, e.g. T-Home Mediareceiver
50 #define IRMP_IR60_PROTOCOL 24 // IR60 (SDA2008)
51 #define IRMP_KATHREIN_PROTOCOL 25 // Kathrein
52 #define IRMP_NETBOX_PROTOCOL 26 // Netbox keyboard (bitserial)
53 #define IRMP_NEC16_PROTOCOL 27 // NEC with 16 bits (incl. sync)
54 #define IRMP_NEC42_PROTOCOL 28 // NEC with 42 bits
55 #define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC
56 #define IRMP_THOMSON_PROTOCOL 30 // Thomson
57 #define IRMP_BOSE_PROTOCOL 31 // BOSE
58 #define IRMP_A1TVBOX_PROTOCOL 32 // A1 TV Box
59 #define IRMP_ORTEK_PROTOCOL 33 // ORTEK - Hama
60 #define IRMP_TELEFUNKEN_PROTOCOL 34 // Telefunken (1560)
61 #define IRMP_ROOMBA_PROTOCOL 35 // iRobot Roomba vacuum cleaner
62 #define IRMP_RCMM32_PROTOCOL 36 // Fujitsu-Siemens (Activy remote control)
63 #define IRMP_RCMM24_PROTOCOL 37 // Fujitsu-Siemens (Activy keyboard)
64 #define IRMP_RCMM12_PROTOCOL 38 // Fujitsu-Siemens (Activy keyboard)
65 #define IRMP_SPEAKER_PROTOCOL 39 // Another loudspeaker protocol, similar to Nubert
66 #define IRMP_LGAIR_PROTOCOL 40 // LG air conditioner
67 #define IRMP_SAMSUNG48_PROTOCOL 41 // air conditioner with SAMSUNG protocol (48 bits)
68 #define IRMP_MERLIN_PROTOCOL 42 // Merlin (Pollin 620 185)
69 #define IRMP_PENTAX_PROTOCOL 43 // Pentax camera
70 #define IRMP_FAN_PROTOCOL 44 // FAN (ventilator), very similar to NUBERT, but last bit is data bit instead of stop bit
71 #define IRMP_S100_PROTOCOL 45 // very similar to RC5, but 14 instead of 13 data bits
72 #define IRMP_ACP24_PROTOCOL 46 // Stiebel Eltron ACP24 air conditioner
73 #define IRMP_TECHNICS_PROTOCOL 47 // Technics, similar to Matsushita, but 22 instead of 24 bits
74 #define IRMP_PANASONIC_PROTOCOL 48 // Panasonic (Beamer), start bits similar to KASEIKYO
75 #define IRMP_MITSU_HEAVY_PROTOCOL 49 // Mitsubishi-Heavy Aircondition, similar timing as Panasonic beamer
76 #define IRMP_VINCENT_PROTOCOL 50 // Vincent
77 #define IRMP_SAMSUNGAH_PROTOCOL 51 // SAMSUNG AH
78 #define IRMP_IRMP16_PROTOCOL 52 // IRMP specific protocol for data transfer, e.g. between two microcontrollers via IR
79 #define IRMP_GREE_PROTOCOL 53 // Gree climate
80 #define IRMP_RCII_PROTOCOL 54 // RC II Infra Red Remote Control Protocol for FM8
81 #define IRMP_METZ_PROTOCOL 55 // METZ
82 #define IRMP_ONKYO_PROTOCOL 56
83 
84 #define IRMP_RADIO1_PROTOCOL 57 // Radio protocol (experimental status), do not use it yet!
85 
86 #define IRMP_N_PROTOCOLS 57 // number of supported protocols
87 
88 /*---------------------------------------------------------------------------------------------------------------------------------------------------
89  * timing constants:
90  *---------------------------------------------------------------------------------------------------------------------------------------------------
91  */
92 // fm 22.09.2011: may not be more than 16000L, otherwise some JVC codes will not be accepted
93 #define IRMP_TIMEOUT_TIME 15500.0e-6 // timeout after 15.5 ms darkness
94 #define IRMP_TIMEOUT_TIME_MS 15500L // timeout after 15.5 ms darkness
95 
96 #if IRMP_SUPPORT_NIKON_PROTOCOL == 1
97 # define IRMP_TIMEOUT_NIKON_TIME 29500.0e-6 // 2nd timeout after 29.5 ms darkness (only for NIKON!)
98 # define IRMP_TIMEOUT_NIKON_TIME_MS 29500L // 2nd timeout after 29.5 ms darkness
99 typedef uint16_t PAUSE_LEN;
100 # define IRMP_TIMEOUT_NIKON_LEN (PAUSE_LEN)(F_INTERRUPTS * IRMP_TIMEOUT_NIKON_TIME + 0.5)
101 #else
102 # if (F_INTERRUPTS * IRMP_TIMEOUT_TIME_MS) / 1000000 >= 254
103 typedef uint16_t PAUSE_LEN;
104 # else
105 typedef uint8_t PAUSE_LEN;
106 # endif
107 #endif
108 
109 #define IRMP_TIMEOUT_LEN (PAUSE_LEN)(F_INTERRUPTS * IRMP_TIMEOUT_TIME + 0.5)
110 
111 /*---------------------------------------------------------------------------------------------------------------------------------------------------
112  * flags of struct IRMP_PARAMETER:
113  *---------------------------------------------------------------------------------------------------------------------------------------------------
114  */
115 #define IRMP_PARAM_FLAG_IS_MANCHESTER 0x01
116 #define IRMP_PARAM_FLAG_1ST_PULSE_IS_1 0x02
117 #define IRMP_PARAM_FLAG_IS_SERIAL 0x04
118 
119 /*---------------------------------------------------------------------------------------------------------------------------------------------------
120  * SIRCS:
121  *---------------------------------------------------------------------------------------------------------------------------------------------------
122  */
123 #define SIRCS_START_BIT_PULSE_TIME 2400.0e-6 // 2400 usec pulse
124 #define SIRCS_START_BIT_PAUSE_TIME 600.0e-6 // 600 usec pause
125 #define SIRCS_1_PULSE_TIME 1200.0e-6 // 1200 usec pulse
126 #define SIRCS_0_PULSE_TIME 600.0e-6 // 600 usec pulse
127 #define SIRCS_PAUSE_TIME 600.0e-6 // 600 usec pause
128 #define SIRCS_FRAMES 3 // SIRCS sends each frame 3 times
129 #define SIRCS_AUTO_REPETITION_PAUSE_TIME 25.0e-3 // auto repetition after 25ms
130 #define SIRCS_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms
131 #define SIRCS_ADDRESS_OFFSET 15 // skip 15 bits
132 #define SIRCS_ADDRESS_LEN 5 // read up to 5 address bits
133 #define SIRCS_COMMAND_OFFSET 0 // skip 0 bits
134 #define SIRCS_COMMAND_LEN 15 // read 12-15 command bits
135 #define SIRCS_MINIMUM_DATA_LEN 12 // minimum data length
136 #define SIRCS_COMPLETE_DATA_LEN 20 // complete length - may be up to 20
137 #define SIRCS_STOP_BIT 0 // has no stop bit
138 #define SIRCS_LSB 1 // LSB...MSB
139 #define SIRCS_FLAGS 0 // flags
140 
141 /*---------------------------------------------------------------------------------------------------------------------------------------------------
142  * NEC & NEC42 & NEC16 & LGAIR:
143  *---------------------------------------------------------------------------------------------------------------------------------------------------
144  */
145 #define NEC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse
146 #define NEC_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause
147 #define NEC_REPEAT_START_BIT_PAUSE_TIME 2250.0e-6 // 2250 usec pause
148 #define NEC_PULSE_TIME 560.0e-6 // 560 usec pulse
149 #define NEC_1_PAUSE_TIME 1690.0e-6 // 1690 usec pause
150 #define NEC_0_PAUSE_TIME 560.0e-6 // 560 usec pause
151 #define NEC_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
152 #define NEC_ADDRESS_OFFSET 0 // skip 0 bits
153 #define NEC_ADDRESS_LEN 16 // read 16 address bits
154 #define NEC_COMMAND_OFFSET 16 // skip 16 bits (8 address + 8 /address)
155 #define NEC_COMMAND_LEN 16 // read 16 bits (8 command + 8 /command)
156 #define NEC_COMPLETE_DATA_LEN 32 // complete length
157 #define NEC_STOP_BIT 1 // has stop bit
158 #define NEC_LSB 1 // LSB...MSB
159 #define NEC_FLAGS 0 // flags
160 
161 #define NEC42_ADDRESS_OFFSET 0 // skip 0 bits
162 #define NEC42_ADDRESS_LEN 13 // read 13 address bits
163 #define NEC42_COMMAND_OFFSET 26 // skip 26 bits (2 x 13 address bits)
164 #define NEC42_COMMAND_LEN 8 // read 8 command bits
165 #define NEC42_COMPLETE_DATA_LEN 42 // complete length (2 x 13 + 2 x 8)
166 
167 #define LGAIR_ADDRESS_OFFSET 0 // skip 0 bits
168 #define LGAIR_ADDRESS_LEN 8 // read 8 address bits
169 #define LGAIR_COMMAND_OFFSET 8 // skip 8 bits (8 address)
170 #define LGAIR_COMMAND_LEN 16 // read 16 bits (16 command)
171 #define LGAIR_COMPLETE_DATA_LEN 28 // complete length (8 address + 16 command + 4 checksum)
172 
173 #define NEC16_ADDRESS_OFFSET 0 // skip 0 bits
174 #define NEC16_ADDRESS_LEN 8 // read 8 address bits
175 #define NEC16_COMMAND_OFFSET 8 // skip 8 bits (8 address)
176 #define NEC16_COMMAND_LEN 8 // read 8 bits (8 command)
177 #define NEC16_COMPLETE_DATA_LEN 16 // complete length
178 
179 /*---------------------------------------------------------------------------------------------------------------------------------------------------
180  * SAMSUNG & SAMSUNG32 & SAMSUNG48:
181  *---------------------------------------------------------------------------------------------------------------------------------------------------
182  */
183 #define SAMSUNG_START_BIT_PULSE_TIME 4500.0e-6 // 4500 usec pulse
184 #define SAMSUNG_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause
185 #define SAMSUNG_PULSE_TIME 550.0e-6 // 550 usec pulse
186 #define SAMSUNG_1_PAUSE_TIME 1500.0e-6 // 1550 usec pause
187 #define SAMSUNG_0_PAUSE_TIME 500.0e-6 // 500 usec pause
188 
189 #define SAMSUNG_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms
190 #define SAMSUNG_ADDRESS_OFFSET 0 // skip 0 bits
191 #define SAMSUNG_ADDRESS_LEN 16 // read 16 address bits
192 #define SAMSUNG_ID_OFFSET 17 // skip 16 + 1 sync bit
193 #define SAMSUNG_ID_LEN 4 // read 4 id bits
194 #define SAMSUNG_COMMAND_OFFSET 21 // skip 16 + 1 sync + 4 data bits
195 #define SAMSUNG_COMMAND_LEN 16 // read 16 command bits
196 #define SAMSUNG_COMPLETE_DATA_LEN 37 // complete length
197 #define SAMSUNG_STOP_BIT 1 // has stop bit
198 #define SAMSUNG_LSB 1 // LSB...MSB?
199 #define SAMSUNG_FLAGS 0 // flags
200 
201 #define SAMSUNG32_COMMAND_OFFSET 16 // skip 16 bits
202 #define SAMSUNG32_COMMAND_LEN 16 // read 16 command bits
203 #define SAMSUNG32_COMPLETE_DATA_LEN 32 // complete length
204 #define SAMSUNG32_FRAMES 1 // SAMSUNG32 sends one frame
205 #define SAMSUNG32_AUTO_REPETITION_PAUSE_TIME 47.0e-3 // repetition after 47 ms
206 #define SAMSUNG32_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 47ms
207 
208 #define SAMSUNG48_COMMAND_OFFSET 16 // skip 16 bits
209 #define SAMSUNG48_COMMAND_LEN 32 // read 32 command bits
210 #define SAMSUNG48_COMPLETE_DATA_LEN 48 // complete length
211 #define SAMSUNG48_FRAMES 2 // SAMSUNG48 sends each frame 2 times
212 #define SAMSUNG48_AUTO_REPETITION_PAUSE_TIME 5.0e-3 // repetition after 5 ms
213 #define SAMSUNG48_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 47ms
214 
215 /*---------------------------------------------------------------------------------------------------------------------------------------------------
216  * SAMSUNGAH:
217  *---------------------------------------------------------------------------------------------------------------------------------------------------
218  */
219 #define SAMSUNGAH_START_BIT_PULSE_TIME 2500.0e-6 // 2500 usec pulse
220 #define SAMSUNGAH_START_BIT_PAUSE_TIME 1900.0e-6 // 1900 usec pause
221 #define SAMSUNGAH_PULSE_TIME 450.0e-6 // 450 usec pulse
222 #define SAMSUNGAH_1_PAUSE_TIME 1100.0e-6 // 1100 usec pause
223 #define SAMSUNGAH_0_PAUSE_TIME 450.0e-6 // 450 usec pause
224 #define SAMSUNGAH_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
225 #define SAMSUNGAH_ADDRESS_OFFSET 0 // skip 0 bits
226 #define SAMSUNGAH_ADDRESS_LEN 16 // read 16 address bits, ignore 17..31
227 #define SAMSUNGAH_COMMAND_OFFSET 32 // skip 32 bits
228 #define SAMSUNGAH_COMMAND_LEN 16 // read 32 bits
229 #define SAMSUNGAH_COMPLETE_DATA_LEN 48 // complete length
230 #define SAMSUNGAH_STOP_BIT 1 // has stop bit
231 #define SAMSUNGAH_LSB 1 // LSB...MSB?
232 #define SAMSUNGAH_FLAGS 0 // flags
233 
234 /*---------------------------------------------------------------------------------------------------------------------------------------------------
235  * MATSUSHITA:
236  *---------------------------------------------------------------------------------------------------------------------------------------------------
237  */
238 #define MATSUSHITA_START_BIT_PULSE_TIME 3488.0e-6 // 3488 usec pulse
239 #define MATSUSHITA_START_BIT_PAUSE_TIME 3488.0e-6 // 3488 usec pause
240 #define MATSUSHITA_PULSE_TIME 872.0e-6 // 872 usec pulse
241 #define MATSUSHITA_1_PAUSE_TIME 2616.0e-6 // 2616 usec pause
242 #define MATSUSHITA_0_PAUSE_TIME 872.0e-6 // 872 usec pause
243 #define MATSUSHITA_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
244 #define MATSUSHITA_ADDRESS_OFFSET 12 // skip 12 bits
245 #define MATSUSHITA_ADDRESS_LEN 12 // read 12 address bits
246 #define MATSUSHITA_COMMAND_OFFSET 0 // skip 0 bits
247 #define MATSUSHITA_COMMAND_LEN 12 // read 12 bits (6 custom + 6 command)
248 #define MATSUSHITA_COMPLETE_DATA_LEN 24 // complete length
249 #define MATSUSHITA_STOP_BIT 1 // has stop bit
250 #define MATSUSHITA_LSB 1 // LSB...MSB?
251 #define MATSUSHITA_FLAGS 0 // flags
252 
253 /*---------------------------------------------------------------------------------------------------------------------------------------------------
254  * TECHNICS: same timings as MATSUSHITA
255  *---------------------------------------------------------------------------------------------------------------------------------------------------
256  */
257 #define TECHNICS_ADDRESS_LEN 0 // read 0 address bits
258 #define TECHNICS_COMMAND_LEN 11 // read 11 bits
259 #define TECHNICS_COMPLETE_DATA_LEN 22 // complete length
260 
261 /*---------------------------------------------------------------------------------------------------------------------------------------------------
262  * KASEIKYO:
263  *---------------------------------------------------------------------------------------------------------------------------------------------------
264  */
265 #define KASEIKYO_START_BIT_PULSE_TIME 3380.0e-6 // 3380 usec pulse
266 #define KASEIKYO_START_BIT_PAUSE_TIME 1690.0e-6 // 1690 usec pause
267 #define KASEIKYO_PULSE_TIME 423.0e-6 // 525 usec pulse
268 #define KASEIKYO_1_PAUSE_TIME 1269.0e-6 // 525 usec pause
269 #define KASEIKYO_0_PAUSE_TIME 423.0e-6 // 1690 usec pause
270 #define KASEIKYO_AUTO_REPETITION_PAUSE_TIME 74.0e-3 // repetition after 74 ms
271 #define KASEIKYO_FRAME_REPEAT_PAUSE_TIME 74.0e-3 // frame repeat after 74 ms
272 #define KASEIKYO_ADDRESS_OFFSET 0 // skip 0 bits
273 #define KASEIKYO_ADDRESS_LEN 16 // read 16 address bits
274 #define KASEIKYO_COMMAND_OFFSET 28 // skip 28 bits (16 manufacturer & 4 parity & 8 genre)
275 #define KASEIKYO_COMMAND_LEN 12 // read 12 command bits (10 real command & 2 id)
276 #define KASEIKYO_COMPLETE_DATA_LEN 48 // complete length
277 #define KASEIKYO_STOP_BIT 1 // has stop bit
278 #define KASEIKYO_LSB 1 // LSB...MSB?
279 #define KASEIKYO_FRAMES 1 // KASEIKYO sends 1 frame
280 #define KASEIKYO_FLAGS 0 // flags
281 
282 /*---------------------------------------------------------------------------------------------------------------------------------------------------
283  * PANASONIC (Beamer), start bit timings similar to KASEIKYO
284  *---------------------------------------------------------------------------------------------------------------------------------------------------
285  */
286 #define PANASONIC_START_BIT_PULSE_TIME 3600.0e-6 // 3600 usec pulse
287 #define PANASONIC_START_BIT_PAUSE_TIME 1600.0e-6 // 1690 usec pause
288 #define PANASONIC_PULSE_TIME 565.0e-6 // 565 usec pulse
289 #define PANASONIC_1_PAUSE_TIME 1140.0e-6 // 1140 usec pause
290 #define PANASONIC_0_PAUSE_TIME 316.0e-6 // 316 usec pause
291 #define PANASONIC_AUTO_REPETITION_PAUSE_TIME 40.0e-3 // repetition after 40 ms?
292 #define PANASONIC_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40 ms
293 #define PANASONIC_ADDRESS_OFFSET 24 // skip 24 bits: 010000000000010000000001
294 #define PANASONIC_ADDRESS_LEN 16 // read 16 address bits
295 #define PANASONIC_COMMAND_OFFSET 40 // skip 40 bits
296 #define PANASONIC_COMMAND_LEN 16 // read 16 command bits
297 #define PANASONIC_COMPLETE_DATA_LEN 56 // complete length
298 #define PANASONIC_STOP_BIT 1 // has stop bit
299 #define PANASONIC_LSB 1 // LSB...MSB?
300 #define PANASONIC_FRAMES 1 // PANASONIC sends 1 frame
301 #define PANASONIC_FLAGS 0 // flags
302 
303 /*---------------------------------------------------------------------------------------------------------------------------------------------------
304  * MITSUBISHI-Heavy Aircondition, timings similar to PANASONIC beamer
305  *---------------------------------------------------------------------------------------------------------------------------------------------------
306  */
307 #define MITSU_HEAVY_START_BIT_PULSE_TIME 3200.0e-6 // 3600 usec pulse
308 #define MITSU_HEAVY_START_BIT_PAUSE_TIME 1560.0e-6 // 1690 usec pause
309 #define MITSU_HEAVY_PULSE_TIME 400.0e-6 // 565 usec pulse
310 #define MITSU_HEAVY_1_PAUSE_TIME 1200.0e-6 // 1140 usec pause
311 #define MITSU_HEAVY_0_PAUSE_TIME 430.0e-6 // 316 usec pause
312 #define MITSU_HEAVY_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40 ms
313 #define MITSU_HEAVY_ADDRESS_OFFSET 40 // skip 24 bits: 010000000000010000000001
314 #define MITSU_HEAVY_ADDRESS_LEN 16 // read 16 address bits
315 #define MITSU_HEAVY_COMMAND_OFFSET 56 // skip 40 bits
316 #define MITSU_HEAVY_COMMAND_LEN 16 // read 16 command bits
317 #define MITSU_HEAVY_COMPLETE_DATA_LEN 88 // complete length
318 #define MITSU_HEAVY_STOP_BIT 1 // has stop bit
319 #define MITSU_HEAVY_LSB 0 // LSB...MSB?
320 #define MITSU_HEAVY_FRAMES 1 // PANASONIC sends 1 frame
321 #define MITSU_HEAVY_FLAGS 0 // flags
322 
323 /*---------------------------------------------------------------------------------------------------------------------------------------------------
324  * VINCENT
325  *---------------------------------------------------------------------------------------------------------------------------------------------------
326  */
327 #define VINCENT_START_BIT_PULSE_TIME 2500.0e-6 // 2500 usec pulse
328 #define VINCENT_START_BIT_PAUSE_TIME 4600.0e-6 // 4600 usec pause
329 #define VINCENT_PULSE_TIME 550.0e-6 // 550 usec pulse
330 #define VINCENT_1_PAUSE_TIME 1540.0e-6 // 1540 usec pause
331 #define VINCENT_0_PAUSE_TIME 550.0e-6 // 550 usec pause
332 #define VINCENT_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40 ms ?
333 #define VINCENT_ADDRESS_OFFSET 0 // skip 0 bits
334 #define VINCENT_ADDRESS_LEN 16 // read 16 address bits
335 #define VINCENT_COMMAND_OFFSET 16 // skip 16 bits
336 #define VINCENT_COMMAND_LEN 16 // read 16 command bits
337 #define VINCENT_COMPLETE_DATA_LEN 32 // complete length
338 #define VINCENT_STOP_BIT 1 // has stop bit
339 #define VINCENT_LSB 0 // LSB...MSB?
340 #define VINCENT_FRAMES 1 // VINCENT sends 1 frame
341 #define VINCENT_FLAGS 0 // flags
342 
343 /*---------------------------------------------------------------------------------------------------------------------------------------------------
344  * RECS80:
345  *---------------------------------------------------------------------------------------------------------------------------------------------------
346  */
347 #define RECS80_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse
348 #define RECS80_START_BIT_PAUSE_TIME 7432.0e-6 // 7432 usec pause
349 #define RECS80_PULSE_TIME 158.0e-6 // 158 usec pulse
350 #define RECS80_1_PAUSE_TIME 7432.0e-6 // 7432 usec pause
351 #define RECS80_0_PAUSE_TIME 4902.0e-6 // 4902 usec pause
352 #define RECS80_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
353 #define RECS80_ADDRESS_OFFSET 1 // skip 1 bit (toggle bit)
354 #define RECS80_ADDRESS_LEN 3 // read 3 address bits
355 #define RECS80_COMMAND_OFFSET 4 // skip 4 bits (1 toggle + 3 address)
356 #define RECS80_COMMAND_LEN 6 // read 6 command bits
357 #define RECS80_COMPLETE_DATA_LEN 10 // complete length
358 #define RECS80_STOP_BIT 1 // has stop bit
359 #define RECS80_LSB 0 // MSB...LSB
360 #define RECS80_FLAGS 0 // flags
361 
362 /*---------------------------------------------------------------------------------------------------------------------------------------------------
363  * RC5:
364  *---------------------------------------------------------------------------------------------------------------------------------------------------
365  */
366 #define RC5_BIT_TIME 889.0e-6 // 889 usec pulse/pause
367 #define RC5_FRAME_REPEAT_PAUSE_TIME 88.9e-3 // frame repeat after 88.9ms
368 
369 #define RC5_ADDRESS_OFFSET 1 // skip 1 bit (2nd start)
370 #define RC5_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits
371 #define RC5_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address)
372 #define RC5_COMMAND_LEN 6 // read 6 command bits
373 #define RC5_COMPLETE_DATA_LEN 13 // complete length
374 #define RC5_STOP_BIT 0 // has no stop bit
375 #define RC5_LSB 0 // MSB...LSB
376 #define RC5_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags
377 
378 /*---------------------------------------------------------------------------------------------------------------------------------------------------
379  * RCII:
380  *---------------------------------------------------------------------------------------------------------------------------------------------------
381  */
382 #define RCII_START_BIT_PULSE_TIME 512.0e-6 // 512 usec pulse
383 #define RCII_START_BIT_PAUSE_TIME 2560.0e-6 // 2560 usec pause
384 #define RCII_START_BIT2_PULSE_TIME 1024.0e-6 // 1024 usec pulse
385 
386 #define RCII_BIT_TIME 512.0e-6 // 512 usec pulse/pause
387 #define RCII_FRAME_REPEAT_PAUSE_TIME 117.76e-3 // frame repeat after 117.76ms
388 
389 #define RCII_ADDRESS_OFFSET 0 // skip 1 bit (2nd start)
390 #define RCII_ADDRESS_LEN 0 // no address
391 #define RCII_COMMAND_OFFSET 0 // command offset is 0
392 #define RCII_COMMAND_LEN 10 // read 1 + 9 command bits
393 #define RCII_COMPLETE_DATA_LEN 10 // complete length
394 #define RCII_STOP_BIT 0 // has no stop bit
395 #define RCII_LSB 0 // MSB...LSB
396 #define RCII_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags
397 
398 /*---------------------------------------------------------------------------------------------------------------------------------------------------
399  * S100: very similar to RC5, but 14 insted of 13 bits
400  *---------------------------------------------------------------------------------------------------------------------------------------------------
401  */
402 #define S100_BIT_TIME 889.0e-6 // 889 usec pulse/pause
403 #define S100_FRAME_REPEAT_PAUSE_TIME 88.9e-3 // frame repeat after 88.9ms
404 
405 #define S100_ADDRESS_OFFSET 1 // skip 1 bit (2nd start)
406 #define S100_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits
407 #define S100_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address)
408 #define S100_COMMAND_LEN 7 // read 7 command bits
409 #define S100_COMPLETE_DATA_LEN 14 // complete length
410 #define S100_STOP_BIT 0 // has no stop bit
411 #define S100_LSB 0 // MSB...LSB
412 #define S100_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags
413 
414 /*---------------------------------------------------------------------------------------------------------------------------------------------------
415  * DENON:
416  *---------------------------------------------------------------------------------------------------------------------------------------------------
417  */
418 #define DENON_PULSE_TIME 310.0e-6 // 310 usec pulse in practice, 275 in theory
419 #define DENON_1_PAUSE_TIME 1780.0e-6 // 1780 usec pause in practice, 1900 in theory
420 #define DENON_0_PAUSE_TIME 745.0e-6 // 745 usec pause in practice, 775 in theory
421 #define DENON_FRAMES 2 // DENON sends each frame 2 times
422 #define DENON_AUTO_REPETITION_PAUSE_TIME 45.0e-3 // inverted repetition after 45ms
423 #define DENON_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
424 #define DENON_ADDRESS_OFFSET 0 // skip 0 bits
425 #define DENON_ADDRESS_LEN 5 // read 5 address bits
426 #define DENON_COMMAND_OFFSET 5 // skip 5
427 #define DENON_COMMAND_LEN 10 // read 10 command bits
428 #define DENON_COMPLETE_DATA_LEN 15 // complete length
429 #define DENON_STOP_BIT 1 // has stop bit
430 #define DENON_LSB 0 // MSB...LSB
431 #define DENON_FLAGS 0 // flags
432 
433 /*---------------------------------------------------------------------------------------------------------------------------------------------------
434  * RC6:
435  *---------------------------------------------------------------------------------------------------------------------------------------------------
436  */
437 #define RC6_START_BIT_PULSE_TIME 2666.0e-6 // 2.666 msec pulse
438 #define RC6_START_BIT_PAUSE_TIME 889.0e-6 // 889 usec pause
439 #define RC6_TOGGLE_BIT_TIME 889.0e-6 // 889 msec pulse/pause
440 #define RC6_BIT_TIME 444.0e-6 // 444 usec pulse/pause
441 #define RC6_BIT_2_TIME 889.0e-6 // 889 usec pulse/pause
442 #define RC6_BIT_3_TIME 1333.0e-6 // 1333 usec pulse/pause
443 #define RC6_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
444 #define RC6_ADDRESS_OFFSET 5 // skip "1" + 3 mode bits + 1 toggle bit
445 #define RC6_ADDRESS_LEN 8 // read 8 address bits
446 #define RC6_COMMAND_OFFSET 13 // skip 12 bits ("1" + 3 mode + 1 toggle + 8 address)
447 #define RC6_COMMAND_LEN 8 // read 8 command bits
448 #define RC6_COMPLETE_DATA_LEN_SHORT 21 // complete length
449 #define RC6_COMPLETE_DATA_LEN_LONG 36 // complete length
450 #define RC6_STOP_BIT 0 // has no stop bit
451 #define RC6_LSB 0 // MSB...LSB
452 #define RC6_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags
453 
454 /*---------------------------------------------------------------------------------------------------------------------------------------------------
455  * RECS80EXT:
456  *---------------------------------------------------------------------------------------------------------------------------------------------------
457  */
458 #define RECS80EXT_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse
459 #define RECS80EXT_START_BIT_PAUSE_TIME 3637.0e-6 // 3637 usec pause
460 #define RECS80EXT_PULSE_TIME 158.0e-6 // 158 usec pulse
461 #define RECS80EXT_1_PAUSE_TIME 7432.0e-6 // 7432 usec pause
462 #define RECS80EXT_0_PAUSE_TIME 4902.0e-6 // 4902 usec pause
463 #define RECS80EXT_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
464 #define RECS80EXT_ADDRESS_OFFSET 2 // skip 2 bits (2nd start + 1 toggle)
465 #define RECS80EXT_ADDRESS_LEN 4 // read 4 address bits
466 #define RECS80EXT_COMMAND_OFFSET 6 // skip 6 bits (2nd start + 1 toggle + 4 address)
467 #define RECS80EXT_COMMAND_LEN 6 // read 6 command bits
468 #define RECS80EXT_COMPLETE_DATA_LEN 12 // complete length
469 #define RECS80EXT_STOP_BIT 1 // has stop bit
470 #define RECS80EXT_LSB 0 // MSB...LSB
471 #define RECS80EXT_FLAGS 0 // flags
472 
473 /*---------------------------------------------------------------------------------------------------------------------------------------------------
474  * NUBERT:
475  *---------------------------------------------------------------------------------------------------------------------------------------------------
476  */
477 #define NUBERT_START_BIT_PULSE_TIME 1340.0e-6 // 1340 usec pulse
478 #define NUBERT_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause
479 #define NUBERT_1_PULSE_TIME 1340.0e-6 // 1340 usec pulse
480 #define NUBERT_1_PAUSE_TIME 340.0e-6 // 340 usec pause
481 #define NUBERT_0_PULSE_TIME 500.0e-6 // 500 usec pulse
482 #define NUBERT_0_PAUSE_TIME 1300.0e-6 // 1300 usec pause
483 #define NUBERT_FRAMES 2 // Nubert sends 2 frames
484 #define NUBERT_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms
485 #define NUBERT_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 45ms
486 #define NUBERT_ADDRESS_OFFSET 0 // skip 0 bits
487 #define NUBERT_ADDRESS_LEN 0 // read 0 address bits
488 #define NUBERT_COMMAND_OFFSET 0 // skip 0 bits
489 #define NUBERT_COMMAND_LEN 10 // read 10 bits
490 #define NUBERT_COMPLETE_DATA_LEN 10 // complete length
491 #define NUBERT_STOP_BIT 1 // has stop bit
492 #define NUBERT_LSB 0 // MSB?
493 #define NUBERT_FLAGS 0 // flags
494 
495 /*---------------------------------------------------------------------------------------------------------------------------------------------------
496  * FAN: (ventilator)
497  *
498  * Similar to NUBERT, but
499  * - has data bit instead of stop bit
500  * - has NO frame repetition
501  *---------------------------------------------------------------------------------------------------------------------------------------------------
502  */
503 #define FAN_START_BIT_PULSE_TIME 1280.0e-6 // 1280 usec pulse
504 #define FAN_START_BIT_PAUSE_TIME 380.0e-6 // 380 usec pause
505 #define FAN_1_PULSE_TIME 1280.0e-6 // 1280 usec pulse
506 #define FAN_1_PAUSE_TIME 380.0e-6 // 380 usec pause
507 #define FAN_0_PULSE_TIME 380.0e-6 // 380 usec pulse
508 #define FAN_0_PAUSE_TIME 1280.0e-6 // 1280 usec pause
509 #define FAN_FRAMES 1 // FAN sends only 1 frame (NUBERT sends 2)
510 #define FAN_AUTO_REPETITION_PAUSE_TIME 6.6e-3 // auto repetition after 6.6ms
511 #define FAN_FRAME_REPEAT_PAUSE_TIME 6.6e-3 // frame repeat after 6.6ms
512 #define FAN_ADDRESS_OFFSET 0 // skip 0 bits
513 #define FAN_ADDRESS_LEN 0 // read 0 address bits
514 #define FAN_COMMAND_OFFSET 0 // skip 0 bits
515 #define FAN_COMMAND_LEN 11 // read 10 bits
516 #define FAN_COMPLETE_DATA_LEN 11 // complete length
517 #define FAN_STOP_BIT 0 // has NO stop bit (fm: this seems to be wrong)
518 #define FAN_LSB 0 // MSB
519 #define FAN_FLAGS 0 // flags
520 
521 /*---------------------------------------------------------------------------------------------------------------------------------------------------
522  * SPEAKER:
523  *---------------------------------------------------------------------------------------------------------------------------------------------------
524  */
525 #define SPEAKER_START_BIT_PULSE_TIME 440.0e-6 // 440 usec pulse
526 #define SPEAKER_START_BIT_PAUSE_TIME 1250.0e-6 // 1250 usec pause
527 #define SPEAKER_1_PULSE_TIME 1250.0e-6 // 1250 usec pulse
528 #define SPEAKER_1_PAUSE_TIME 440.0e-6 // 440 usec pause
529 #define SPEAKER_0_PULSE_TIME 440.0e-6 // 440 usec pulse
530 #define SPEAKER_0_PAUSE_TIME 1250.0e-6 // 1250 usec pause
531 #define SPEAKER_FRAMES 2 // SPEAKER sends 2 frames
532 #define SPEAKER_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms
533 #define SPEAKER_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 45ms
534 #define SPEAKER_ADDRESS_OFFSET 0 // skip 0 bits
535 #define SPEAKER_ADDRESS_LEN 0 // read 0 address bits
536 #define SPEAKER_COMMAND_OFFSET 0 // skip 0 bits
537 #define SPEAKER_COMMAND_LEN 10 // read 10 bits
538 #define SPEAKER_COMPLETE_DATA_LEN 10 // complete length
539 #define SPEAKER_STOP_BIT 1 // has stop bit
540 #define SPEAKER_LSB 0 // MSB?
541 #define SPEAKER_FLAGS 0 // flags
542 
543 /*---------------------------------------------------------------------------------------------------------------------------------------------------
544  * BANG_OLUFSEN:
545  *---------------------------------------------------------------------------------------------------------------------------------------------------
546  */
547 #define BANG_OLUFSEN_START_BIT1_PULSE_TIME 200.0e-6 // 200 usec pulse
548 #define BANG_OLUFSEN_START_BIT1_PAUSE_TIME 3125.0e-6 // 3125 usec pause
549 #define BANG_OLUFSEN_START_BIT2_PULSE_TIME 200.0e-6 // 200 usec pulse
550 #define BANG_OLUFSEN_START_BIT2_PAUSE_TIME 3125.0e-6 // 3125 usec pause
551 #define BANG_OLUFSEN_START_BIT3_PULSE_TIME 200.0e-6 // 200 usec pulse
552 #define BANG_OLUFSEN_START_BIT3_PAUSE_TIME 15625.0e-6 // 15625 usec pause
553 #define BANG_OLUFSEN_START_BIT4_PULSE_TIME 200.0e-6 // 200 usec pulse
554 #define BANG_OLUFSEN_START_BIT4_PAUSE_TIME 3125.0e-6 // 3125 usec pause
555 #define BANG_OLUFSEN_PULSE_TIME 200.0e-6 // 200 usec pulse
556 #define BANG_OLUFSEN_1_PAUSE_TIME 9375.0e-6 // 9375 usec pause
557 #define BANG_OLUFSEN_0_PAUSE_TIME 3125.0e-6 // 3125 usec pause
558 #define BANG_OLUFSEN_R_PAUSE_TIME 6250.0e-6 // 6250 usec pause (repeat last bit)
559 #define BANG_OLUFSEN_TRAILER_BIT_PAUSE_TIME 12500.0e-6 // 12500 usec pause (trailer bit)
560 #define BANG_OLUFSEN_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
561 #define BANG_OLUFSEN_ADDRESS_OFFSET 0 // no address bits
562 #define BANG_OLUFSEN_ADDRESS_LEN 0 // no address bits
563 #define BANG_OLUFSEN_COMMAND_OFFSET 3 // skip startbits 2, 3, 4
564 #define BANG_OLUFSEN_COMMAND_LEN 16 // read 16 command bits
565 #define BANG_OLUFSEN_COMPLETE_DATA_LEN 20 // complete length: startbits 2, 3, 4 + 16 data bits + trailer bit
566 #define BANG_OLUFSEN_STOP_BIT 1 // has stop bit
567 #define BANG_OLUFSEN_LSB 0 // MSB...LSB
568 #define BANG_OLUFSEN_FLAGS 0 // flags
569 
570 /*---------------------------------------------------------------------------------------------------------------------------------------------------
571  * GRUNDIG & NOKIA
572  *---------------------------------------------------------------------------------------------------------------------------------------------------
573  */
574 #define GRUNDIG_NOKIA_IR60_BIT_TIME 528.0e-6 // 528 usec pulse/pause
575 #define GRUNDIG_NOKIA_IR60_PRE_PAUSE_TIME 2639.0e-6 // 2639 usec pause after pre bit
576 #define GRUNDIG_NOKIA_IR60_FRAME_REPEAT_PAUSE_TIME 117.76e-3 // info frame repeat after 117.76 ms
577 #define GRUNDIG_NOKIA_IR60_STOP_BIT 0 // has no stop bit
578 #define GRUNDIG_NOKIA_IR60_LSB 1 // MSB...LSB
579 #define GRUNDIG_NOKIA_IR60_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags
580 
581 #define GRUNDIG_FRAMES 2 // GRUNDIG sends each frame 1+1 times
582 #define GRUNDIG_AUTO_REPETITION_PAUSE_TIME 20.0e-3 // repetition after 20ms
583 #define GRUNDIG_ADDRESS_OFFSET 0 // no address
584 #define GRUNDIG_ADDRESS_LEN 0 // no address
585 #define GRUNDIG_COMMAND_OFFSET 1 // skip 1 start bit
586 #define GRUNDIG_COMMAND_LEN 9 // read 9 command bits
587 #define GRUNDIG_COMPLETE_DATA_LEN 10 // complete length: 1 start bit + 9 data bits
588 
589 #define NOKIA_FRAMES 3 // NOKIA sends each frame 1 + 1 + 1 times
590 #define NOKIA_AUTO_REPETITION_PAUSE_TIME 20.0e-3 // repetition after 20ms
591 #define NOKIA_ADDRESS_OFFSET 9 // skip 9 bits (1 start bit + 8 data bits)
592 #define NOKIA_ADDRESS_LEN 8 // 7 address bits
593 #define NOKIA_COMMAND_OFFSET 1 // skip 1 bit (1 start bit)
594 #define NOKIA_COMMAND_LEN 8 // read 8 command bits
595 #define NOKIA_COMPLETE_DATA_LEN 17 // complete length: 1 start bit + 8 address bits + 8 command bits
596 
597 /*---------------------------------------------------------------------------------------------------------------------------------------------------
598  * IR60:
599  *---------------------------------------------------------------------------------------------------------------------------------------------------
600  */
601 #define IR60_FRAMES 2 // IR60 sends each frame 1+1 times
602 #define IR60_AUTO_REPETITION_PAUSE_TIME 22.2e-3 // repetition after 22.2ms
603 #define IR60_TIMEOUT_TIME 5000.0e-6 // timeout grundig frame, switch to IR60
604 #define IR60_ADDRESS_OFFSET 0 // skip 1 bits
605 #define IR60_ADDRESS_LEN 0 // read 0 address bits
606 #define IR60_COMMAND_OFFSET 0 // skip 1 bit (start bit after pre bit, always 1)
607 #define IR60_COMMAND_LEN 7 // read 6 command bits
608 #define IR60_COMPLETE_DATA_LEN 7 // complete length
609 
610 /*---------------------------------------------------------------------------------------------------------------------------------------------------
611  * SIEMENS & RUWIDO:
612  *---------------------------------------------------------------------------------------------------------------------------------------------------
613  */
614 
615 #if 0
616 #define SIEMENS_OR_RUWIDO_START_BIT_PULSE_TIME 275.0e-6 // 275 usec pulse
617 #define SIEMENS_OR_RUWIDO_START_BIT_PAUSE_TIME 550.0e-6 // 550 usec pause
618 #define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME 275.0e-6 // 275 usec short pulse
619 #define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME_2 550.0e-6 // 550 usec long pulse
620 #define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME 275.0e-6 // 275 usec short pause
621 #define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME_2 550.0e-6 // 550 usec long pause
622 #else
623 #define SIEMENS_OR_RUWIDO_START_BIT_PULSE_TIME 370.0e-6 // 370 usec pulse
624 #define SIEMENS_OR_RUWIDO_START_BIT_PAUSE_TIME 550.0e-6 // 550 usec pause
625 #define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME 370.0e-6 // 370 usec short pulse
626 #define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME_2 680.0e-6 // 680 usec long pulse
627 #define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME 275.0e-6 // 275 usec short pause
628 #define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME_2 550.0e-6 // 550 usec long pause
629 #endif
630 
631 #define SIEMENS_OR_RUWIDO_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
632 #define SIEMENS_OR_RUWIDO_STOP_BIT 0 // has no stop bit
633 #define SIEMENS_OR_RUWIDO_LSB 0 // MSB...LSB
634 #define SIEMENS_OR_RUWIDO_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags
635 
636 #define RUWIDO_ADDRESS_OFFSET 0 // skip 0 bits
637 #define RUWIDO_ADDRESS_LEN 9 // read 9 address bits
638 #define RUWIDO_COMMAND_OFFSET 9 // skip 9 bits
639 #define RUWIDO_COMMAND_LEN 8 // read 7 + 1 command bits, last bit is only check bit
640 #define RUWIDO_COMPLETE_DATA_LEN 17 // complete length
641 
642 #define SIEMENS_ADDRESS_OFFSET 0 // skip 0 bits
643 #define SIEMENS_ADDRESS_LEN 11 // read 11 bits
644 #define SIEMENS_COMMAND_OFFSET 11 // skip 11 bits
645 #define SIEMENS_COMMAND_LEN 11 // read 10 + 1 command bits, last bit is only check bit
646 #define SIEMENS_COMPLETE_DATA_LEN 22 // complete length
647 
648 /*---------------------------------------------------------------------------------------------------------------------------------------------------
649  * FDC:
650  *---------------------------------------------------------------------------------------------------------------------------------------------------
651  */
652 #define FDC_START_BIT_PULSE_TIME 2085.0e-6 // 2085 usec pulse
653 #define FDC_START_BIT_PAUSE_TIME 966.0e-6 // 966 usec pause
654 #define FDC_PULSE_TIME 300.0e-6 // 300 usec pulse
655 #define FDC_1_PAUSE_TIME 715.0e-6 // 715 usec pause
656 #define FDC_0_PAUSE_TIME 220.0e-6 // 220 usec pause
657 #define FDC_FRAME_REPEAT_PAUSE_TIME 60.0e-3 // frame repeat after 60ms
658 #define FDC_ADDRESS_OFFSET 0 // skip 0 bits
659 #define FDC_ADDRESS_LEN 14 // read 14 address bits, but use only 6, shift 8 into command
660 #define FDC_COMMAND_OFFSET 20 // skip 20 bits
661 #define FDC_COMMAND_LEN 12 // read 12 bits
662 #define FDC_COMPLETE_DATA_LEN 40 // complete length
663 #define FDC_STOP_BIT 1 // has stop bit
664 #define FDC_LSB 1 // LSB...MSB
665 #define FDC_FLAGS 0 // flags
666 
667 /*---------------------------------------------------------------------------------------------------------------------------------------------------
668  * RCCAR:
669  *---------------------------------------------------------------------------------------------------------------------------------------------------
670  */
671 #define RCCAR_START_BIT_PULSE_TIME 2000.0e-6 // 2000 usec pulse
672 #define RCCAR_START_BIT_PAUSE_TIME 2000.0e-6 // 2000 usec pause
673 #define RCCAR_PULSE_TIME 600.0e-6 // 360 usec pulse
674 #define RCCAR_1_PAUSE_TIME 450.0e-6 // 650 usec pause
675 #define RCCAR_0_PAUSE_TIME 900.0e-6 // 180 usec pause
676 #define RCCAR_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
677 #define RCCAR_ADDRESS_OFFSET 0 // skip 0 bits
678 #define RCCAR_ADDRESS_LEN 0 // read 0 address bits
679 #define RCCAR_COMMAND_OFFSET 0 // skip 0 bits
680 #define RCCAR_COMMAND_LEN 13 // read 13 bits
681 #define RCCAR_COMPLETE_DATA_LEN 13 // complete length
682 #define RCCAR_STOP_BIT 1 // has stop bit
683 #define RCCAR_LSB 1 // LSB...MSB
684 #define RCCAR_FLAGS 0 // flags
685 
686 /*---------------------------------------------------------------------------------------------------------------------------------------------------
687  * JVC:
688  *---------------------------------------------------------------------------------------------------------------------------------------------------
689  */
690 #define JVC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse
691 #define JVC_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause
692 #define JVC_PULSE_TIME 560.0e-6 // 560 usec pulse
693 #define JVC_1_PAUSE_TIME 1690.0e-6 // 1690 usec pause
694 #define JVC_0_PAUSE_TIME 560.0e-6 // 560 usec pause
695 #define JVC_FRAME_REPEAT_PAUSE_TIME 22.0e-3 // frame repeat after 22ms
696 #define JVC_ADDRESS_OFFSET 0 // skip 0 bits
697 #define JVC_ADDRESS_LEN 4 // read 4 address bits
698 #define JVC_COMMAND_OFFSET 4 // skip 4 bits
699 #define JVC_COMMAND_LEN 12 // read 12 bits
700 #define JVC_COMPLETE_DATA_LEN 16 // complete length
701 #define JVC_STOP_BIT 1 // has stop bit
702 #define JVC_LSB 1 // LSB...MSB
703 #define JVC_FLAGS 0 // flags
704 
705 /*---------------------------------------------------------------------------------------------------------------------------------------------------
706  * NIKON:
707  *---------------------------------------------------------------------------------------------------------------------------------------------------
708  */
709 #define NIKON_START_BIT_PULSE_TIME 2200.0e-6 // 2200 usec pulse
710 #define NIKON_START_BIT_PAUSE_TIME 27100.0e-6 // 27100 usec pause
711 #define NIKON_PULSE_TIME 500.0e-6 // 500 usec pulse
712 #define NIKON_1_PAUSE_TIME 3500.0e-6 // 3500 usec pause
713 #define NIKON_0_PAUSE_TIME 1500.0e-6 // 1500 usec pause
714 #define NIKON_FRAME_REPEAT_PAUSE_TIME 60.0e-3 // frame repeat after 60ms
715 #define NIKON_ADDRESS_OFFSET 0 // skip 0 bits
716 #define NIKON_ADDRESS_LEN 0 // read 0 address bits
717 #define NIKON_COMMAND_OFFSET 0 // skip 0 bits
718 #define NIKON_COMMAND_LEN 2 // read 2 bits
719 #define NIKON_COMPLETE_DATA_LEN 2 // complete length
720 #define NIKON_STOP_BIT 1 // has stop bit
721 #define NIKON_LSB 0 // LSB...MSB
722 #define NIKON_FLAGS 0 // flags
723 
724 /*---------------------------------------------------------------------------------------------------------------------------------------------------
725  * KATHREIN:
726  *---------------------------------------------------------------------------------------------------------------------------------------------------
727  */
728 #define KATHREIN_START_BIT_PULSE_TIME 210.0e-6 // 1340 usec pulse
729 #define KATHREIN_START_BIT_PAUSE_TIME 6218.0e-6 // 340 usec pause
730 #define KATHREIN_1_PULSE_TIME 210.0e-6 // 1340 usec pulse
731 #define KATHREIN_1_PAUSE_TIME 3000.0e-6 // 340 usec pause
732 #define KATHREIN_0_PULSE_TIME 210.0e-6 // 500 usec pulse
733 #define KATHREIN_0_PAUSE_TIME 1400.0e-6 // 1300 usec pause
734 #define KATHREIN_SYNC_BIT_PAUSE_LEN_TIME 4600.0e-6 // 4600 usec sync (on 6th and/or 8th bit)
735 #define KATHREIN_FRAMES 1 // Kathrein sends 1 frame
736 #define KATHREIN_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms
737 #define KATHREIN_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 35ms
738 #define KATHREIN_ADDRESS_OFFSET 1 // skip 1 bits
739 #define KATHREIN_ADDRESS_LEN 4 // read 4 address bits
740 #define KATHREIN_COMMAND_OFFSET 5 // skip 5 bits
741 #define KATHREIN_COMMAND_LEN 7 // read 7 bits
742 #define KATHREIN_COMPLETE_DATA_LEN 13 // complete length
743 #define KATHREIN_STOP_BIT 1 // has stop bit
744 #define KATHREIN_LSB 0 // MSB
745 #define KATHREIN_FLAGS 0 // flags
746 
747 /*---------------------------------------------------------------------------------------------------------------------------------------------------
748  * NETBOX:
749  *---------------------------------------------------------------------------------------------------------------------------------------------------
750  */
751 #define NETBOX_START_BIT_PULSE_TIME 2400.0e-6 // 2400 usec pulse
752 #define NETBOX_START_BIT_PAUSE_TIME 800.0e-6 // 800 usec pause
753 #define NETBOX_PULSE_TIME 800.0e-6 // 800 usec pulse
754 #define NETBOX_PAUSE_TIME 800.0e-6 // 800 usec pause
755 #define NETBOX_FRAMES 1 // Netbox sends 1 frame
756 #define NETBOX_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms
757 #define NETBOX_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 35ms
758 #define NETBOX_ADDRESS_OFFSET 0 // skip 0 bits
759 #define NETBOX_ADDRESS_LEN 3 // read 3 address bits
760 #define NETBOX_COMMAND_OFFSET 3 // skip 3 bits
761 #define NETBOX_COMMAND_LEN 13 // read 13 bits
762 #define NETBOX_COMPLETE_DATA_LEN 16 // complete length
763 #define NETBOX_STOP_BIT 0 // has no stop bit
764 #define NETBOX_LSB 1 // LSB
765 #define NETBOX_FLAGS IRMP_PARAM_FLAG_IS_SERIAL // flags
766 
767 /*---------------------------------------------------------------------------------------------------------------------------------------------------
768  * LEGO:
769  *---------------------------------------------------------------------------------------------------------------------------------------------------
770  */
771 #define LEGO_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse ( 6 x 1/38kHz)
772 #define LEGO_START_BIT_PAUSE_TIME 1026.0e-6 // 1026 usec pause (39 x 1/38kHz)
773 #define LEGO_PULSE_TIME 158.0e-6 // 158 usec pulse ( 6 x 1/38kHz)
774 #define LEGO_1_PAUSE_TIME 553.0e-6 // 553 usec pause (21 x 1/38kHz)
775 #define LEGO_0_PAUSE_TIME 263.0e-6 // 263 usec pause (10 x 1/38kHz)
776 #define LEGO_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
777 #define LEGO_ADDRESS_OFFSET 0 // skip 0 bits
778 #define LEGO_ADDRESS_LEN 0 // read 0 address bits
779 #define LEGO_COMMAND_OFFSET 0 // skip 0 bits
780 #define LEGO_COMMAND_LEN 16 // read 16 bits (12 command + 4 CRC)
781 #define LEGO_COMPLETE_DATA_LEN 16 // complete length
782 #define LEGO_STOP_BIT 1 // has stop bit
783 #define LEGO_LSB 0 // MSB...LSB
784 #define LEGO_FLAGS 0 // flags
785 
786 /*---------------------------------------------------------------------------------------------------------------------------------------------------
787  * THOMSON:
788  *---------------------------------------------------------------------------------------------------------------------------------------------------
789  */
790 #define THOMSON_PULSE_TIME 550.0e-6 // 550 usec pulse
791 #define THOMSON_1_PAUSE_TIME 4500.0e-6 // 4500 usec pause
792 #define THOMSON_0_PAUSE_TIME 2000.0e-6 // 2000 usec pause
793 #define THOMSON_FRAMES 1 // THOMSON sends 1 frame
794 #define THOMSON_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // repetition after 35ms
795 #define THOMSON_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 35ms
796 #define THOMSON_ADDRESS_OFFSET 0 // skip 0 bits
797 #define THOMSON_ADDRESS_LEN 4 // read 4 address bits
798 #define THOMSON_COMMAND_OFFSET 5 // skip 4 address bits + 1 toggle bit
799 #define THOMSON_COMMAND_LEN 7 // read 7 command bits
800 #define THOMSON_COMPLETE_DATA_LEN 12 // complete length
801 #define THOMSON_STOP_BIT 1 // has stop bit
802 #define THOMSON_LSB 0 // MSB...LSB
803 #define THOMSON_FLAGS 0 // flags
804 
805 /*---------------------------------------------------------------------------------------------------------------------------------------------------
806  * BOSE:
807  *---------------------------------------------------------------------------------------------------------------------------------------------------
808  */
809 #define BOSE_START_BIT_PULSE_TIME 1060.0e-6 // 1060 usec pulse
810 #define BOSE_START_BIT_PAUSE_TIME 1425.0e-6 // 1425 usec pause
811 #define BOSE_PULSE_TIME 550.0e-6 // 550 usec pulse
812 #define BOSE_1_PAUSE_TIME 1425.0e-6 // 1425 usec pause
813 #define BOSE_0_PAUSE_TIME 437.0e-6 // 437 usec pause
814 #define BOSE_FRAMES 1
815 #define BOSE_AUTO_REPETITION_PAUSE_TIME 40.0e-3 // repetition after 40ms?
816 #define BOSE_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms?
817 #define BOSE_ADDRESS_OFFSET 0 // skip 0 bits
818 #define BOSE_ADDRESS_LEN 0 // read 16 address bits
819 #define BOSE_COMMAND_OFFSET 0 // skip 16 bits (8 address + 8 /address)
820 #define BOSE_COMMAND_LEN 16 // read 16 bits (8 command + 8 /command)
821 #define BOSE_COMPLETE_DATA_LEN 16 // complete length
822 #define BOSE_STOP_BIT 1 // has stop bit
823 #define BOSE_LSB 1 // LSB...MSB
824 #define BOSE_FLAGS 0 // flags
825 
826 /*---------------------------------------------------------------------------------------------------------------------------------------------------
827  * A1TVBOX:
828  * In reality A1 TV Box has no start bit with 300/340 usec. There are 2 start bits "10" with 250us pulse + 150us pause + 150us pause + 250us pulse
829  * This is not very easy to detect, because 1st and 2nd pause of both start bits are closely spaced.
830  * So IRMP looks for pseudo start bit with 300/340 usec and ignores the second half of the 2nd bit (250us pulse)
831  * This method only works because the first data bit (which is the 3rd bit) following is always "1":
832  * IRMP treats the first "long" pulse (250us of 2nd start bit + 250us of 1st data bit) of this "1" as a first _short_ pulse.
833  * This is a bug in IRMP's manchester decoder, but a good feature here ;-)
834  *---------------------------------------------------------------------------------------------------------------------------------------------------
835  */
836 #define A1TVBOX_START_BIT_PULSE_TIME 300.0e-6 // 300 usec pulse
837 #define A1TVBOX_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause
838 #define A1TVBOX_BIT_PULSE_TIME 250.0e-6 // 250 usec pulse
839 #define A1TVBOX_BIT_PAUSE_TIME 150.0e-6 // 150 usec pulse
840 #define A1TVBOX_STOP_BIT 0 // has no stop bit
841 #define A1TVBOX_LSB 0 // MSB...LSB
842 #define A1TVBOX_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1 ) // flags
843 #define A1TVBOX_FRAMES 1 // A1TVBOX sends each frame 1 times
844 #define A1TVBOX_ADDRESS_OFFSET 1 // skip 1 bits
845 #define A1TVBOX_ADDRESS_LEN 8 // read 8 address bits
846 #define A1TVBOX_COMMAND_OFFSET 9 // skip 9 bits (start bit + address)
847 #define A1TVBOX_COMMAND_LEN 8 // read 8 command bits
848 #define A1TVBOX_COMPLETE_DATA_LEN 17 // complete length incl. start bit
849 #define A1TVBOX_FRAME_REPEAT_PAUSE_TIME 50.0e-3 // 50 msec pause between frames, don't know if it is correct
850 
851 /*---------------------------------------------------------------------------------------------------------------------------------------------------
852  * MERLIN:
853  * See notes for A1TVBOX
854  *---------------------------------------------------------------------------------------------------------------------------------------------------
855  */
856 #define MERLIN_START_BIT_PULSE_TIME 210.0e-6 // 210 usec pulse
857 #define MERLIN_START_BIT_PAUSE_TIME 420.0e-6 // 429 usec pause
858 #define MERLIN_BIT_PULSE_TIME 210.0e-6 // 210 usec pulse
859 #define MERLIN_BIT_PAUSE_TIME 210.0e-6 // 210 usec pulse
860 #define MERLIN_STOP_BIT 0 // has no stop bit
861 #define MERLIN_LSB 0 // MSB...LSB
862 #define MERLIN_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1 ) // flags
863 #define MERLIN_FRAMES 1 // MERLIN sends each frame 1 times
864 #define MERLIN_ADDRESS_OFFSET 2 // skip 1 bits
865 #define MERLIN_ADDRESS_LEN 9 // read 9 address bits
866 #define MERLIN_COMMAND_OFFSET 11 // skip 11 bits (start bit + address)
867 #define MERLIN_COMMAND_LEN 32 // read up to 32 command bits
868 #define MERLIN_COMPLETE_DATA_LEN 45 // complete length incl. start bit
869 #define MERLIN_FRAME_REPEAT_PAUSE_TIME 50.0e-3 // 50 msec pause between frames, don't know if it is correct
870 
871 /*---------------------------------------------------------------------------------------------------------------------------------------------------
872  * ORTEK (Hama): 6 address bits + 2 frame type bits + 6 command bits + 1 parity bit + 1 unknown bit + "1" + "0"
873  *---------------------------------------------------------------------------------------------------------------------------------------------------
874  */
875 #define ORTEK_START_BIT_PULSE_TIME 2000.0e-6 // 2000 usec pulse
876 #define ORTEK_START_BIT_PAUSE_TIME 1000.0e-6 // 1000 usec pause
877 #define ORTEK_BIT_TIME 500.0e-6 // 500 usec pulse/pause
878 #define ORTEK_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms
879 #define ORTEK_ADDRESS_OFFSET 0 // skip 0 bits
880 #define ORTEK_ADDRESS_LEN 8 // read 6 address bits + 2 special bits
881 #define ORTEK_COMMAND_OFFSET 8 // skip 6 address bits + 2 special bits
882 #define ORTEK_COMMAND_LEN 6 // read 6 command bits
883 #define ORTEK_COMPLETE_DATA_LEN 18 // complete length
884 #define ORTEK_STOP_BIT 0 // has no stop bit
885 #define ORTEK_LSB 0 // MSB...LSB
886 #define ORTEK_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags
887 
888 /*---------------------------------------------------------------------------------------------------------------------------------------------------
889  * TELEFUNKEN:
890  *---------------------------------------------------------------------------------------------------------------------------------------------------
891  */
892 #define TELEFUNKEN_START_BIT_PULSE_TIME 600.0e-6 // 600 usec pulse
893 #define TELEFUNKEN_START_BIT_PAUSE_TIME 1500.0e-6 // 1500 usec pause
894 #define TELEFUNKEN_PULSE_TIME 600.0e-6 // 600 usec pulse
895 #define TELEFUNKEN_1_PAUSE_TIME 1500.0e-6 // 1500 usec pause
896 #define TELEFUNKEN_0_PAUSE_TIME 600.0e-6 // 600 usec pause
897 #define TELEFUNKEN_FRAME_REPEAT_PAUSE_TIME 22.0e-3 // frame repeat after XX ms ?????
898 #define TELEFUNKEN_ADDRESS_OFFSET 0 // skip 0 bits
899 #define TELEFUNKEN_ADDRESS_LEN 0 // read 0 address bits
900 #define TELEFUNKEN_COMMAND_OFFSET 0 // skip 0 bits
901 #define TELEFUNKEN_COMMAND_LEN 15 // read 15 bits
902 #define TELEFUNKEN_COMPLETE_DATA_LEN 15 // complete length
903 #define TELEFUNKEN_STOP_BIT 1 // has stop bit
904 #define TELEFUNKEN_LSB 0 // LSB...MSB
905 #define TELEFUNKEN_FLAGS 0 // flags
906 
907 /*---------------------------------------------------------------------------------------------------------------------------------------------------
908  * ROOMBA
909  *---------------------------------------------------------------------------------------------------------------------------------------------------
910  */
911 #define ROOMBA_START_BIT_PULSE_TIME 2790.0e-6 // 2790 usec pulse
912 #define ROOMBA_START_BIT_PAUSE_TIME 930.0e-6 // 930 usec pause
913 #define ROOMBA_0_PULSE_TIME 930.0e-6 // 930 usec pulse
914 #define ROOMBA_1_PULSE_TIME 2790.0e-6 // 2790 usec pulse
915 #define ROOMBA_0_PAUSE_TIME 2790.0e-6 // 2790 usec pause
916 #define ROOMBA_1_PAUSE_TIME 930.0e-6 // 930 usec pause
917 #define ROOMBA_FRAME_REPEAT_PAUSE_TIME 18.0e-3 // frame repeat after 18ms
918 #define ROOMBA_ADDRESS_OFFSET 0 // skip 0 bits
919 #define ROOMBA_ADDRESS_LEN 0 // read 0 address bits
920 #define ROOMBA_COMMAND_OFFSET 0 // skip 0 bits
921 #define ROOMBA_COMMAND_LEN 7 // read 7 bits
922 #define ROOMBA_COMPLETE_DATA_LEN 7 // complete length
923 #define ROOMBA_STOP_BIT 0 // has stop bit (fm: sure?)
924 #define ROOMBA_LSB 0 // MSB...LSB
925 #define ROOMBA_FLAGS 0 // flags
926 #define ROOMBA_FRAMES 8 // ROOMBA sends 8 frames (this is a lie, but more comfortable)
927 
928 /*---------------------------------------------------------------------------------------------------------------------------------------------------
929  * RC-MM (32, 24, or 12 bit)
930  *---------------------------------------------------------------------------------------------------------------------------------------------------
931  */
932 #define RCMM32_START_BIT_PULSE_TIME 500.0e-6 // 500 usec pulse
933 #define RCMM32_START_BIT_PAUSE_TIME 220.0e-6 // 220 usec pause
934 #define RCMM32_PULSE_TIME 230.0e-6 // 230 usec pulse
935 #define RCMM32_00_PAUSE_TIME 220.0e-6 // 220 usec pause
936 #define RCMM32_01_PAUSE_TIME 370.0e-6 // 370 usec pause
937 #define RCMM32_10_PAUSE_TIME 540.0e-6 // 540 usec pause
938 #define RCMM32_11_PAUSE_TIME 720.0e-6 // 720 usec pause
939 
940 #define RCMM32_FRAME_REPEAT_PAUSE_TIME 80.0e-3 // frame repeat after 80 ms
941 #define RCMM32_ADDRESS_OFFSET 0 // skip 0 bits
942 #define RCMM32_ADDRESS_LEN 16 // read 16 address bits
943 #define RCMM32_COMMAND_OFFSET 17 // skip 17 bits
944 #define RCMM32_COMMAND_LEN 15 // read 15 bits
945 #define RCMM32_COMPLETE_DATA_LEN 32 // complete length
946 #define RCMM32_STOP_BIT 1 // has stop bit
947 #define RCMM32_LSB 0 // LSB...MSB
948 #define RCMM32_FLAGS 0 // flags
949 
950 /*---------------------------------------------------------------------------------------------------------------------------------------------------
951  * PENTAX:
952  *---------------------------------------------------------------------------------------------------------------------------------------------------
953  */
954 #define PENTAX_START_BIT_PULSE_TIME 13000.0e-6 // 13 msec pulse
955 #define PENTAX_START_BIT_PAUSE_TIME 3000.0e-6 // 3 msec pause
956 #define PENTAX_PULSE_TIME 1000.0e-6 // 1 msec pulse
957 #define PENTAX_1_PAUSE_TIME 3000.0e-6 // 3 msec pause
958 #define PENTAX_0_PAUSE_TIME 1000.0e-6 // 1 msec pause
959 #define PENTAX_FRAME_REPEAT_PAUSE_TIME 60.0e-3 // frame repeat after 60ms
960 #define PENTAX_ADDRESS_OFFSET 0 // skip 0 bits
961 #define PENTAX_ADDRESS_LEN 0 // read 0 address bits
962 #define PENTAX_COMMAND_OFFSET 0 // skip 0 bits
963 #define PENTAX_COMMAND_LEN 6 // read 6 bits
964 #define PENTAX_COMPLETE_DATA_LEN 6 // complete length
965 #define PENTAX_STOP_BIT 1 // has stop bit
966 #define PENTAX_LSB 0 // LSB...MSB
967 #define PENTAX_FLAGS 0 // flags
968 
969 /*---------------------------------------------------------------------------------------------------------------------------------------------------
970  * ACP24: Stiebel Eltron ACP24 air conditioner
971  *---------------------------------------------------------------------------------------------------------------------------------------------------
972  */
973 #define ACP24_START_BIT_PULSE_TIME 390.0e-6 // 390 usec pulse
974 #define ACP24_START_BIT_PAUSE_TIME 950.0e-6 // 950 usec pause
975 #define ACP24_PULSE_TIME 390.0e-6 // 390 usec pulse
976 #define ACP24_1_PAUSE_TIME 1300.0e-6 // 1300 usec pause
977 #define ACP24_0_PAUSE_TIME 950.0e-6 // 950 usec pause
978 #define ACP24_FRAME_REPEAT_PAUSE_TIME 22.0e-3 // frame repeat after 22ms?
979 #define ACP24_ADDRESS_OFFSET 0 // skip 0 bits
980 #define ACP24_ADDRESS_LEN 0 // read 6 address bits
981 #define ACP24_COMMAND_OFFSET 0 // skip 6 bits
982 #define ACP24_COMMAND_LEN 0 // read 0 bits (70 bits will be read and compressed by special routine)
983 #define ACP24_COMPLETE_DATA_LEN 70 // complete length
984 #define ACP24_STOP_BIT 1 // has stop bit
985 #define ACP24_LSB 0 // LSB...MSB
986 #define ACP24_FLAGS 0 // flags
987 
988 /*---------------------------------------------------------------------------------------------------------------------------------------------------
989  * IRMP16:
990  *---------------------------------------------------------------------------------------------------------------------------------------------------
991  */
992 #define IRMP16_START_BIT_PULSE_TIME 842.0e-6 // 842 usec pulse (32 x 1/38kHz)
993 #define IRMP16_START_BIT_PAUSE_TIME 1052.0e-6 // 1052 usec pause (40 x 1/38kHz)
994 #define IRMP16_PULSE_TIME 421.0e-6 // 421 usec pulse (16 x 1/38kHz)
995 #define IRMP16_1_PAUSE_TIME 842.0e-6 // 842 usec pause (32 x 1/38kHz)
996 #define IRMP16_0_PAUSE_TIME 421.0e-6 // 421 usec pause (16 x 1/38kHz)
997 #define IRMP16_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
998 #define IRMP16_ADDRESS_OFFSET 0 // skip 0 bits
999 #define IRMP16_ADDRESS_LEN 0 // read 0 address bits
1000 #define IRMP16_COMMAND_OFFSET 0 // skip 0 bits
1001 #define IRMP16_COMMAND_LEN 16 // read 16 bits (12 command + 4 CRC)
1002 #define IRMP16_COMPLETE_DATA_LEN 16 // complete length
1003 #define IRMP16_STOP_BIT 1 // has stop bit
1004 #define IRMP16_LSB 1 // LSB...MSB
1005 #define IRMP16_FLAGS 0 // flags
1006 
1007 /*---------------------------------------------------------------------------------------------------------------------------------------------------
1008  * GREE - climate:
1009  *---------------------------------------------------------------------------------------------------------------------------------------------------
1010  */
1011 #define GREE_START_BIT_PULSE_TIME 12000.0e-6 // 12000 usec pulse (32 x 1/38kHz)
1012 #define GREE_START_BIT_PAUSE_TIME 6000.0e-6 // 6000 usec pause (40 x 1/38kHz)
1013 #define GREE_PULSE_TIME 900.0e-6 // 900 usec pulse (16 x 1/38kHz)
1014 #define GREE_1_PAUSE_TIME 700.0e-6 // 700 usec pause (32 x 1/38kHz)
1015 #define GREE_0_PAUSE_TIME 2100.0e-6 // 2100 usec pause (16 x 1/38kHz)
1016 #define GREE_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms
1017 #define GREE_ADDRESS_OFFSET 0 // skip 0 bits
1018 #define GREE_ADDRESS_LEN 16 // read 16 address bits
1019 #define GREE_COMMAND_OFFSET 16 // skip 16 bits
1020 #define GREE_COMMAND_LEN 16 // read 16 bits
1021 #define GREE_COMPLETE_DATA_LEN 32 // complete length
1022 #define GREE_STOP_BIT 1 // has stop bit
1023 #define GREE_LSB 1 // LSB...MSB
1024 #define GREE_FLAGS 0 // flags
1025 
1026 /*---------------------------------------------------------------------------------------------------------------------------------------------------
1027  * METZ:
1028  *---------------------------------------------------------------------------------------------------------------------------------------------------
1029  */
1030 #define METZ_START_BIT_PULSE_TIME 870.0e-6 // 870 usec pulse
1031 #define METZ_START_BIT_PAUSE_TIME 2300.0e-6 // 2300 usec pause
1032 #define METZ_PULSE_TIME 435.0e-6 // 435 usec pulse
1033 #define METZ_1_PAUSE_TIME 1680.0e-6 // 1680 usec pause
1034 #define METZ_0_PAUSE_TIME 960.0e-6 // 960 usec pause
1035 #define METZ_FRAME_REPEAT_PAUSE_TIME 122.0e-3 // frame repeat after 122ms
1036 #define METZ_ADDRESS_OFFSET 1 // skip 1 bit (toggle bit)
1037 #define METZ_ADDRESS_LEN 6 // read 6 address bits
1038 #define METZ_COMMAND_OFFSET 7 // skip 7 bits
1039 #define METZ_COMMAND_LEN 13 // read 13 bits
1040 #define METZ_COMPLETE_DATA_LEN 20 // complete length
1041 #define METZ_STOP_BIT 0 // has no stop bit
1042 #define METZ_LSB 0 // MSB...LSB
1043 #define METZ_FLAGS 0 // flags
1044 
1045 /*---------------------------------------------------------------------------------------------------------------------------------------------------
1046  * RADIO1 - e.g. Tevion
1047  *---------------------------------------------------------------------------------------------------------------------------------------------------
1048  */
1049 #define RADIO1_START_BIT_PULSE_TIME 3000.0e-6 // 3000 usec pulse
1050 #define RADIO1_START_BIT_PAUSE_TIME 7000.0e-6 // 7000 usec pulse
1051 #define RADIO1_0_PULSE_TIME 500.0e-6 // 500 usec pulse
1052 #define RADIO1_0_PAUSE_TIME 1000.0e-6 // 1000 usec pause
1053 #define RADIO1_1_PULSE_TIME 1000.0e-6 // 1000 usec pulse
1054 #define RADIO1_1_PAUSE_TIME 500.0e-6 // 500 usec pause
1055 
1056 #define RADIO1_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms
1057 #define RADIO1_ADDRESS_OFFSET 4 // skip 4 bits
1058 #define RADIO1_ADDRESS_LEN 16 // read 16 address bits
1059 #define RADIO1_COMMAND_OFFSET 20 // skip 4 + 16 bits
1060 #define RADIO1_COMMAND_LEN 3 // read 3 command bits
1061 #define RADIO1_COMPLETE_DATA_LEN 23 // complete length
1062 #define RADIO1_STOP_BIT 1 // has stop bit
1063 #define RADIO1_LSB 1 // LSB...MSB?
1064 #define RADIO1_FLAGS 0 // flags
1065 
1066 /*---------------------------------------------------------------------------------------------------------------------------------------------------
1067  * Frame Repetitions:
1068  *---------------------------------------------------------------------------------------------------------------------------------------------------
1069  */
1070 #define AUTO_FRAME_REPETITION_TIME 80.0e-3 // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms
1071 
1072 #endif // _IRMP_PROTOCOLS_H_
uint8_t PAUSE_LEN