IRremoteESP8266: src/IRrecv.h Source File

IRremoteESP8266

IRrecv.h
Go to the documentation of this file.
1 // Copyright 2009 Ken Shirriff
2 // Copyright 2015 Mark Szabo
3 // Copyright 2015 Sebastien Warin
4 // Copyright 2017 David Conran
5
6 #ifndef IRRECV_H_
7 #define IRRECV_H_
8
9 #ifndef UNIT_TEST
10 #include <Arduino.h>
11 #endif
12 #include <stddef.h>
13 #define __STDC_LIMIT_MACROS
14 #include <stdint.h>
15 #include "IRremoteESP8266.h"
16
17 // Constants
18 const uint16_t kHeader = 2; // Usual nr. of header entries.
19 const uint16_t kFooter = 2; // Usual nr. of footer (stop bits) entries.
20 const uint16_t kStartOffset = 1; // Usual rawbuf entry to start from.
21 #define MS_TO_USEC(x) (x * 1000U) // Convert milli-Seconds to micro-Seconds.
22 // Marks tend to be 100us too long, and spaces 100us too short
23 // when received due to sensor lag.
24 const uint16_t kMarkExcess = 50;
25 const uint16_t kRawBuf = 100; // Default length of raw capture buffer
26 const uint64_t kRepeat = UINT64_MAX;
27 // Default min size of reported UNKNOWN messages.
28 const uint16_t kUnknownThreshold = 6;
29
30 // receiver states
31 const uint8_t kIdleState = 2;
32 const uint8_t kMarkState = 3;
33 const uint8_t kSpaceState = 4;
34 const uint8_t kStopState = 5;
35 const uint8_t kTolerance = 25; // default percent tolerance in measurements.
36 const uint8_t kUseDefTol = 255; // Indicate to use the class default tolerance.
37 const uint16_t kRawTick = 2; // Capture tick to uSec factor.
38 #define RAWTICK kRawTick // Deprecated. For legacy user code support only.
39 // How long (ms) before we give up wait for more data?
40 // Don't exceed kMaxTimeoutMs without a good reason.
41 // That is the capture buffers maximum value size. (UINT16_MAX / kRawTick)
42 // Typically messages/protocols tend to repeat around the 100ms timeframe,
43 // thus we should timeout before that to give us some time to try to decode
44 // before we need to start capturing a possible new message.
45 // Typically 15ms suits most applications. However, some protocols demand a
46 // higher value. e.g. 90ms for XMP-1 and some aircon units.
47 const uint8_t kTimeoutMs = 15; // In MilliSeconds.
48 #define TIMEOUT_MS kTimeoutMs // For legacy documentation.
49 const uint16_t kMaxTimeoutMs = kRawTick * (UINT16_MAX / MS_TO_USEC(1));
50
51 // Use FNV hash algorithm: http://isthe.com/chongo/tech/comp/fnv/#FNV-param
52 const uint32_t kFnvPrime32 = 16777619UL;
53 const uint32_t kFnvBasis32 = 2166136261UL;
54
55 // Which of the ESP32 timers to use by default. (0-3)
56 const uint8_t kDefaultESP32Timer = 3;
57
58 #if DECODE_AC
59 // Hitachi AC is the current largest state size.
60 const uint16_t kStateSizeMax = kHitachiAc2StateLength;
61 #else
62 // Just define something
63 const uint16_t kStateSizeMax = 0;
64 #endif
65
66 // Types
67
69 typedef struct {
70 uint8_t recvpin; // pin for IR data from detector
71 uint8_t rcvstate; // state machine
72 uint16_t timer; // state timer, counts 50uS ticks.
73 uint16_t bufsize; // max. nr. of entries in the capture buffer.
74 uint16_t *rawbuf; // raw data
75 // uint16_t is used for rawlen as it saves 3 bytes of iram in the interrupt
76 // handler. Don't ask why, I don't know. It just does.
77 uint16_t rawlen; // counter of entries in rawbuf.
78 uint8_t overflow; // Buffer overflow indicator.
79 uint8_t timeout; // Nr. of milliSeconds before we give up.
80 } irparams_t;
81
83 typedef struct {
84 bool success; // Was the match successful?
85 uint64_t data; // The data found.
86 uint16_t used; // How many buffer positions were used.
87 } match_result_t;
88
89 // Classes
90
92 class decode_results {
93 public:
94 decode_type_t decode_type; // NEC, SONY, RC5, UNKNOWN
95 // value, address, & command are all mutually exclusive with state.
96 // i.e. They MUST NOT be used at the same time as state, so we can use a union
97 // structure to save us a handful of valuable bytes of memory.
98 union {
99 struct {
100 uint64_t value; // Decoded value
101 uint32_t address; // Decoded device address.
102 uint32_t command; // Decoded command.
103 };
104 uint8_t state[kStateSizeMax]; // Multi-byte results.
105 };
106 uint16_t bits; // Number of bits in decoded value
107 volatile uint16_t *rawbuf; // Raw intervals in .5 us ticks
108 uint16_t rawlen; // Number of records in rawbuf.
109 bool overflow;
110 bool repeat; // Is the result a repeat code?
111 };
112
114 class IRrecv {
115 public:
116 #if defined(ESP32)
117 explicit IRrecv(const uint16_t recvpin, const uint16_t bufsize = kRawBuf,
118 const uint8_t timeout = kTimeoutMs,
119 const bool save_buffer = false,
120 const uint8_t timer_num = kDefaultESP32Timer); // Constructor
121 #else // ESP32
122 explicit IRrecv(const uint16_t recvpin, const uint16_t bufsize = kRawBuf,
123 const uint8_t timeout = kTimeoutMs,
124 const bool save_buffer = false); // Constructor
125 #endif // ESP32
126 ~IRrecv(void); // Destructor
127 void setTolerance(const uint8_t percent = kTolerance);
128 uint8_t getTolerance(void);
129 bool decode(decode_results *results, irparams_t *save = NULL,
130 uint8_t max_skip = 0, uint16_t noise_floor = 0);
131 void enableIRIn(const bool pullup = false);
132 void disableIRIn(void);
133 void resume(void);
134 uint16_t getBufSize(void);
135 #if DECODE_HASH
136 void setUnknownThreshold(const uint16_t length);
137 #endif
138 bool match(const uint32_t measured, const uint32_t desired,
139 const uint8_t tolerance = kUseDefTol,
140 const uint16_t delta = 0);
141 bool matchMark(const uint32_t measured, const uint32_t desired,
142 const uint8_t tolerance = kUseDefTol,
143 const int16_t excess = kMarkExcess);
144 bool matchSpace(const uint32_t measured, const uint32_t desired,
145 const uint8_t tolerance = kUseDefTol,
146 const int16_t excess = kMarkExcess);
147 #ifndef UNIT_TEST
148
149 private:
150 #endif
151 irparams_t *irparams_save;
152 uint8_t _tolerance;
153 #if defined(ESP32)
154 uint8_t _timer_num;
155 #endif // defined(ESP32)
156 #if DECODE_HASH
157 uint16_t _unknown_threshold;
158 #endif
159 // These are called by decode
160 uint8_t _validTolerance(const uint8_t percentage);
161 void copyIrParams(volatile irparams_t *src, irparams_t *dst);
162 uint16_t compare(const uint16_t oldval, const uint16_t newval);
163 uint32_t ticksLow(const uint32_t usecs,
164 const uint8_t tolerance = kUseDefTol,
165 const uint16_t delta = 0);
166 uint32_t ticksHigh(const uint32_t usecs,
167 const uint8_t tolerance = kUseDefTol,
168 const uint16_t delta = 0);
169 bool matchAtLeast(const uint32_t measured, const uint32_t desired,
170 const uint8_t tolerance = kUseDefTol,
171 const uint16_t delta = 0);
172 uint16_t _matchGeneric(volatile uint16_t *data_ptr,
173 uint64_t *result_bits_ptr,
174 uint8_t *result_ptr,
175 const bool use_bits,
176 const uint16_t remaining,
177 const uint16_t required,
178 const uint16_t hdrmark,
179 const uint32_t hdrspace,
180 const uint16_t onemark,
181 const uint32_t onespace,
182 const uint16_t zeromark,
183 const uint32_t zerospace,
184 const uint16_t footermark,
185 const uint32_t footerspace,
186 const bool atleast = false,
187 const uint8_t tolerance = kUseDefTol,
188 const int16_t excess = kMarkExcess,
189 const bool MSBfirst = true);
190 match_result_t matchData(volatile uint16_t *data_ptr, const uint16_t nbits,
191 const uint16_t onemark, const uint32_t onespace,
192 const uint16_t zeromark, const uint32_t zerospace,
193 const uint8_t tolerance = kUseDefTol,
194 const int16_t excess = kMarkExcess,
195 const bool MSBfirst = true,
196 const bool expectlastspace = true);
197 uint16_t matchBytes(volatile uint16_t *data_ptr, uint8_t *result_ptr,
198 const uint16_t remaining, const uint16_t nbytes,
199 const uint16_t onemark, const uint32_t onespace,
200 const uint16_t zeromark, const uint32_t zerospace,
201 const uint8_t tolerance = kUseDefTol,
202 const int16_t excess = kMarkExcess,
203 const bool MSBfirst = true,
204 const bool expectlastspace = true);
205 uint16_t matchGeneric(volatile uint16_t *data_ptr,
206 uint64_t *result_ptr,
207 const uint16_t remaining, const uint16_t nbits,
208 const uint16_t hdrmark, const uint32_t hdrspace,
209 const uint16_t onemark, const uint32_t onespace,
210 const uint16_t zeromark, const uint32_t zerospace,
211 const uint16_t footermark, const uint32_t footerspace,
212 const bool atleast = false,
213 const uint8_t tolerance = kUseDefTol,
214 const int16_t excess = kMarkExcess,
215 const bool MSBfirst = true);
216 uint16_t matchGeneric(volatile uint16_t *data_ptr, uint8_t *result_ptr,
217 const uint16_t remaining, const uint16_t nbits,
218 const uint16_t hdrmark, const uint32_t hdrspace,
219 const uint16_t onemark, const uint32_t onespace,
220 const uint16_t zeromark, const uint32_t zerospace,
221 const uint16_t footermark,
222 const uint32_t footerspace,
223 const bool atleast = false,
224 const uint8_t tolerance = kUseDefTol,
225 const int16_t excess = kMarkExcess,
226 const bool MSBfirst = true);
227 uint16_t matchGenericConstBitTime(volatile uint16_t *data_ptr,
228 uint64_t *result_ptr,
229 const uint16_t remaining,
230 const uint16_t nbits,
231 const uint16_t hdrmark,
232 const uint32_t hdrspace,
233 const uint16_t one,
234 const uint32_t zero,
235 const uint16_t footermark,
236 const uint32_t footerspace,
237 const bool atleast = false,
238 const uint8_t tolerance = kUseDefTol,
239 const int16_t excess = kMarkExcess,
240 const bool MSBfirst = true);
241 uint16_t matchManchesterData(volatile const uint16_t *data_ptr,
242 uint64_t *result_ptr,
243 const uint16_t remaining,
244 const uint16_t nbits,
245 const uint16_t half_period,
246 const uint16_t starting_balance = 0,
247 const uint8_t tolerance = kUseDefTol,
248 const int16_t excess = kMarkExcess,
249 const bool MSBfirst = true,
250 const bool GEThomas = true);
251 uint16_t matchManchester(volatile const uint16_t *data_ptr,
252 uint64_t *result_ptr,
253 const uint16_t remaining,
254 const uint16_t nbits,
255 const uint16_t hdrmark,
256 const uint32_t hdrspace,
257 const uint16_t clock_period,
258 const uint16_t footermark,
259 const uint32_t footerspace,
260 const bool atleast = false,
261 const uint8_t tolerance = kUseDefTol,
262 const int16_t excess = kMarkExcess,
263 const bool MSBfirst = true,
264 const bool GEThomas = true);
265 void crudeNoiseFilter(decode_results *results, const uint16_t floor = 0);
266 bool decodeHash(decode_results *results);
267 #if DECODE_VOLTAS
268 bool decodeVoltas(decode_results *results,
269 uint16_t offset = kStartOffset,
270 const uint16_t nbits = kVoltasBits,
271 const bool strict = true);
272 #endif // DECODE_VOLTAS
273 #if (DECODE_NEC || DECODE_SHERWOOD || DECODE_AIWA_RC_T501 || DECODE_SANYO)
274 bool decodeNEC(decode_results *results, uint16_t offset = kStartOffset,
275 const uint16_t nbits = kNECBits, const bool strict = true);
276 #endif
277 #if DECODE_ARGO
278 bool decodeArgo(decode_results *results, uint16_t offset = kStartOffset,
279 const uint16_t nbits = kArgoBits, const bool strict = true);
280 #endif // DECODE_ARGO
281 #if DECODE_SONY
282 bool decodeSony(decode_results *results, uint16_t offset = kStartOffset,
283 const uint16_t nbits = kSonyMinBits,
284 const bool strict = false);
285 #endif
286 #if DECODE_SANYO
287 // DISABLED due to poor quality.
288 // bool decodeSanyo(decode_results *results, uint16_t offset = kStartOffset,
289 // uint16_t nbits = kSanyoSA8650BBits,
290 // bool strict = false);
291 bool decodeSanyoLC7461(decode_results *results,
292 uint16_t offset = kStartOffset,
293 const uint16_t nbits = kSanyoLC7461Bits,
294 const bool strict = true);
295 #endif
296 #if DECODE_SANYO_AC
297 bool decodeSanyoAc(decode_results *results,
298 uint16_t offset = kStartOffset,
299 const uint16_t nbits = kSanyoAcBits,
300 const bool strict = true);
301 #endif // DECODE_SANYO_AC
302 #if DECODE_MITSUBISHI
303 bool decodeMitsubishi(decode_results *results, uint16_t offset = kStartOffset,
304 const uint16_t nbits = kMitsubishiBits,
305 const bool strict = true);
306 #endif
307 #if DECODE_MITSUBISHI2
308 bool decodeMitsubishi2(decode_results *results,
309 uint16_t offset = kStartOffset,
310 const uint16_t nbits = kMitsubishiBits,
311 const bool strict = true);
312 #endif
313 #if DECODE_MITSUBISHI_AC
314 bool decodeMitsubishiAC(decode_results *results,
315 uint16_t offset = kStartOffset,
316 const uint16_t nbits = kMitsubishiACBits,
317 const bool strict = false);
318 #endif
319 #if DECODE_MITSUBISHI136
320 bool decodeMitsubishi136(decode_results *results,
321 uint16_t offset = kStartOffset,
322 const uint16_t nbits = kMitsubishi136Bits,
323 const bool strict = true);
324 #endif
325 #if DECODE_MITSUBISHI112
326 bool decodeMitsubishi112(decode_results *results,
327 uint16_t offset = kStartOffset,
328 const uint16_t nbits = kMitsubishi112Bits,
329 const bool strict = true);
330 #endif
331 #if DECODE_MITSUBISHIHEAVY
332 bool decodeMitsubishiHeavy(decode_results *results,
333 uint16_t offset = kStartOffset,
334 const uint16_t nbits = kMitsubishiHeavy152Bits,
335 const bool strict = true);
336 #endif
337 #if (DECODE_RC5 || DECODE_RC6 || DECODE_LASERTAG || DECODE_MWM)
338 int16_t getRClevel(decode_results *results, uint16_t *offset, uint16_t *used,
339 uint16_t bitTime, const uint8_t tolerance = kUseDefTol,
340 const int16_t excess = kMarkExcess,
341 const uint16_t delta = 0, const uint8_t maxwidth = 3);
342 #endif
343 #if DECODE_RC5
344 bool decodeRC5(decode_results *results, uint16_t offset = kStartOffset,
345 const uint16_t nbits = kRC5XBits,
346 const bool strict = true);
347 #endif
348 #if DECODE_RC6
349 bool decodeRC6(decode_results *results, uint16_t offset = kStartOffset,
350 const uint16_t nbits = kRC6Mode0Bits,
351 const bool strict = false);
352 #endif
353 #if DECODE_RCMM
354 bool decodeRCMM(decode_results *results, uint16_t offset = kStartOffset,
355 const uint16_t nbits = kRCMMBits,
356 const bool strict = false);
357 #endif
358 #if (DECODE_PANASONIC || DECODE_DENON)
359 bool decodePanasonic(decode_results *results, uint16_t offset = kStartOffset,
360 const uint16_t nbits = kPanasonicBits,
361 const bool strict = false,
362 const uint32_t manufacturer = kPanasonicManufacturer);
363 #endif
364 #if DECODE_LG
365 bool decodeLG(decode_results *results, uint16_t offset = kStartOffset,
366 const uint16_t nbits = kLgBits,
367 const bool strict = false);
368 #endif
369 #if DECODE_INAX
370 bool decodeInax(decode_results *results, uint16_t offset = kStartOffset,
371 const uint16_t nbits = kInaxBits,
372 const bool strict = true);
373 #endif // DECODE_INAX
374 #if DECODE_JVC
375 bool decodeJVC(decode_results *results, uint16_t offset = kStartOffset,
376 const uint16_t nbits = kJvcBits,
377 const bool strict = true);
378 #endif
379 #if DECODE_SAMSUNG
380 bool decodeSAMSUNG(decode_results *results, uint16_t offset = kStartOffset,
381 const uint16_t nbits = kSamsungBits,
382 const bool strict = true);
383 #endif
384 #if DECODE_SAMSUNG
385 bool decodeSamsung36(decode_results *results, uint16_t offset = kStartOffset,
386 const uint16_t nbits = kSamsung36Bits,
387 const bool strict = true);
388 #endif
389 #if DECODE_SAMSUNG_AC
390 bool decodeSamsungAC(decode_results *results, uint16_t offset = kStartOffset,
391 const uint16_t nbits = kSamsungAcBits,
392 const bool strict = true);
393 #endif
394 #if DECODE_WHYNTER
395 bool decodeWhynter(decode_results *results, uint16_t offset = kStartOffset,
396 const uint16_t nbits = kWhynterBits,
397 const bool strict = true);
398 #endif
399 #if DECODE_COOLIX
400 bool decodeCOOLIX(decode_results *results, uint16_t offset = kStartOffset,
401 const uint16_t nbits = kCoolixBits,
402 const bool strict = true);
403 #endif
404 #if DECODE_DENON
405 bool decodeDenon(decode_results *results, uint16_t offset = kStartOffset,
406 const uint16_t nbits = kDenonBits,
407 const bool strict = true);
408 #endif
409 #if DECODE_DISH
410 bool decodeDISH(decode_results *results, uint16_t offset = kStartOffset,
411 const uint16_t nbits = kDishBits,
412 const bool strict = true);
413 #endif
414 #if (DECODE_SHARP || DECODE_DENON)
415 bool decodeSharp(decode_results *results, uint16_t offset = kStartOffset,
416 const uint16_t nbits = kSharpBits,
417 const bool strict = true, const bool expansion = true);
418 #endif
419 #if DECODE_SHARP_AC
420 bool decodeSharpAc(decode_results *results, uint16_t offset = kStartOffset,
421 const uint16_t nbits = kSharpAcBits,
422 const bool strict = true);
423 #endif
424 #if DECODE_AIWA_RC_T501
425 bool decodeAiwaRCT501(decode_results *results, uint16_t offset = kStartOffset,
426 const uint16_t nbits = kAiwaRcT501Bits,
427 const bool strict = true);
428 #endif
429 #if DECODE_NIKAI
430 bool decodeNikai(decode_results *results, uint16_t offset = kStartOffset,
431 const uint16_t nbits = kNikaiBits,
432 const bool strict = true);
433 #endif
434 #if DECODE_MAGIQUEST
435 bool decodeMagiQuest(decode_results *results, uint16_t offset = kStartOffset,
436 const uint16_t nbits = kMagiquestBits,
437 const bool strict = true);
438 #endif
439 #if DECODE_KELVINATOR
440 bool decodeKelvinator(decode_results *results, uint16_t offset = kStartOffset,
441 const uint16_t nbits = kKelvinatorBits,
442 const bool strict = true);
443 #endif
444 #if DECODE_DAIKIN
445 bool decodeDaikin(decode_results *results, uint16_t offset = kStartOffset,
446 const uint16_t nbits = kDaikinBits,
447 const bool strict = true);
448 #endif
449 #if DECODE_DAIKIN64
450 bool decodeDaikin64(decode_results *results, uint16_t offset = kStartOffset,
451 const uint16_t nbits = kDaikin64Bits,
452 const bool strict = true);
453 #endif // DECODE_DAIKIN64
454 #if DECODE_DAIKIN128
455 bool decodeDaikin128(decode_results *results, uint16_t offset = kStartOffset,
456 const uint16_t nbits = kDaikin128Bits,
457 const bool strict = true);
458 #endif // DECODE_DAIKIN128
459 #if DECODE_DAIKIN152
460 bool decodeDaikin152(decode_results *results, uint16_t offset = kStartOffset,
461 const uint16_t nbits = kDaikin152Bits,
462 const bool strict = true);
463 #endif // DECODE_DAIKIN152
464 #if DECODE_DAIKIN160
465 bool decodeDaikin160(decode_results *results, uint16_t offset = kStartOffset,
466 const uint16_t nbits = kDaikin160Bits,
467 const bool strict = true);
468 #endif // DECODE_DAIKIN160
469 #if DECODE_DAIKIN176
470 bool decodeDaikin176(decode_results *results, uint16_t offset = kStartOffset,
471 const uint16_t nbits = kDaikin176Bits,
472 const bool strict = true);
473 #endif // DECODE_DAIKIN176
474 #if DECODE_DAIKIN2
475 bool decodeDaikin2(decode_results *results, uint16_t offset = kStartOffset,
476 const uint16_t nbits = kDaikin2Bits,
477 const bool strict = true);
478 #endif
479 #if DECODE_DAIKIN216
480 bool decodeDaikin216(decode_results *results, uint16_t offset = kStartOffset,
481 const uint16_t nbits = kDaikin216Bits,
482 const bool strict = true);
483 #endif
484 #if DECODE_TOSHIBA_AC
485 bool decodeToshibaAC(decode_results *results, uint16_t offset = kStartOffset,
486 const uint16_t nbits = kToshibaACBits,
487 const bool strict = true);
488 #endif
489 #if DECODE_TROTEC
490 bool decodeTrotec(decode_results *results, uint16_t offset = kStartOffset,
491 const uint16_t nbits = kTrotecBits,
492 const bool strict = true);
493 #endif // DECODE_TROTEC
494 #if DECODE_MIDEA
495 bool decodeMidea(decode_results *results, uint16_t offset = kStartOffset,
496 const uint16_t nbits = kMideaBits,
497 const bool strict = true);
498 #endif // DECODE_MIDEA
499 #if DECODE_MIDEA24
500 bool decodeMidea24(decode_results *results, uint16_t offset = kStartOffset,
501 const uint16_t nbits = kMidea24Bits,
502 const bool strict = true);
503 #endif // DECODE_MIDEA24
504 #if DECODE_FUJITSU_AC
505 bool decodeFujitsuAC(decode_results *results, uint16_t offset = kStartOffset,
506 const uint16_t nbits = kFujitsuAcBits,
507 const bool strict = false);
508 #endif
509 #if DECODE_LASERTAG
510 bool decodeLasertag(decode_results *results, uint16_t offset = kStartOffset,
511 const uint16_t nbits = kLasertagBits,
512 const bool strict = true);
513 #endif
514 #if DECODE_MILESTAG2
515 bool decodeMilestag2(decode_results *results, uint16_t offset = kStartOffset,
516 const uint16_t nbits = kMilesTag2ShotBits,
517 const bool strict = true);
518 #endif
519 #if DECODE_CARRIER_AC
520 bool decodeCarrierAC(decode_results *results, uint16_t offset = kStartOffset,
521 const uint16_t nbits = kCarrierAcBits,
522 const bool strict = true);
523 #endif // DECODE_CARRIER_AC
524 #if DECODE_CARRIER_AC40
525 bool decodeCarrierAC40(decode_results *results,
526 uint16_t offset = kStartOffset,
527 const uint16_t nbits = kCarrierAc40Bits,
528 const bool strict = true);
529 #endif // DECODE_CARRIER_AC40
530 #if DECODE_CARRIER_AC64
531 bool decodeCarrierAC64(decode_results *results,
532 uint16_t offset = kStartOffset,
533 const uint16_t nbits = kCarrierAc64Bits,
534 const bool strict = true);
535 #endif // DECODE_CARRIER_AC64
536 #if DECODE_GOODWEATHER
537 bool decodeGoodweather(decode_results *results,
538 uint16_t offset = kStartOffset,
539 const uint16_t nbits = kGoodweatherBits,
540 const bool strict = true);
541 #endif // DECODE_GOODWEATHER
542 #if DECODE_GREE
543 bool decodeGree(decode_results *results, uint16_t offset = kStartOffset,
544 const uint16_t nbits = kGreeBits,
545 const bool strict = true);
546 #endif
547 #if (DECODE_HAIER_AC | DECODE_HAIER_AC_YRW02)
548 bool decodeHaierAC(decode_results *results, uint16_t offset = kStartOffset,
549 const uint16_t nbits = kHaierACBits,
550 const bool strict = true);
551 #endif
552 #if DECODE_HAIER_AC_YRW02
553 bool decodeHaierACYRW02(decode_results *results,
554 uint16_t offset = kStartOffset,
555 const uint16_t nbits = kHaierACYRW02Bits,
556 const bool strict = true);
557 #endif
558 #if (DECODE_HITACHI_AC || DECODE_HITACHI_AC2 || DECODE_HITACHI_AC344)
559 bool decodeHitachiAC(decode_results *results, uint16_t offset = kStartOffset,
560 const uint16_t nbits = kHitachiAcBits,
561 const bool strict = true, const bool MSBfirst = true);
562 #endif
563 #if DECODE_HITACHI_AC1
564 bool decodeHitachiAC1(decode_results *results, uint16_t offset = kStartOffset,
565 const uint16_t nbits = kHitachiAc1Bits,
566 const bool strict = true);
567 #endif
568 #if DECODE_HITACHI_AC3
569 bool decodeHitachiAc3(decode_results *results,
570 uint16_t offset = kStartOffset,
571 const uint16_t nbits = kHitachiAc3Bits,
572 const bool strict = true);
573 #endif // DECODE_HITACHI_AC3
574 #if DECODE_HITACHI_AC424
575 bool decodeHitachiAc424(decode_results *results,
576 uint16_t offset = kStartOffset,
577 const uint16_t nbits = kHitachiAc424Bits,
578 const bool strict = true);
579 #endif // DECODE_HITACHI_AC424
580 #if DECODE_GICABLE
581 bool decodeGICable(decode_results *results, uint16_t offset = kStartOffset,
582 const uint16_t nbits = kGicableBits,
583 const bool strict = true);
584 #endif
585 #if DECODE_WHIRLPOOL_AC
586 bool decodeWhirlpoolAC(decode_results *results,
587 uint16_t offset = kStartOffset,
588 const uint16_t nbits = kWhirlpoolAcBits,
589 const bool strict = true);
590 #endif
591 #if DECODE_LUTRON
592 bool decodeLutron(decode_results *results, uint16_t offset = kStartOffset,
593 const uint16_t nbits = kLutronBits,
594 const bool strict = true);
595 #endif
596 #if DECODE_ELECTRA_AC
597 bool decodeElectraAC(decode_results *results, uint16_t offset = kStartOffset,
598 const uint16_t nbits = kElectraAcBits,
599 const bool strict = true);
600 #endif
601 #if DECODE_PANASONIC_AC
602 bool decodePanasonicAC(decode_results *results,
603 uint16_t offset = kStartOffset,
604 const uint16_t nbits = kPanasonicAcBits,
605 const bool strict = true);
606 #endif // DECODE_PANASONIC_AC
607 #if DECODE_PANASONIC_AC32
608 bool decodePanasonicAC32(decode_results *results,
609 uint16_t offset = kStartOffset,
610 const uint16_t nbits = kPanasonicAc32Bits,
611 const bool strict = true);
612 #endif // DECODE_PANASONIC_AC32
613 #if DECODE_PIONEER
614 bool decodePioneer(decode_results *results, uint16_t offset = kStartOffset,
615 const uint16_t nbits = kPioneerBits,
616 const bool strict = true);
617 #endif
618 #if DECODE_MWM
619 bool decodeMWM(decode_results *results, uint16_t offset = kStartOffset,
620 const uint16_t nbits = 24,
621 const bool strict = true);
622 #endif
623 #if DECODE_VESTEL_AC
624 bool decodeVestelAc(decode_results *results, uint16_t offset = kStartOffset,
625 const uint16_t nbits = kVestelAcBits,
626 const bool strict = true);
627 #endif
628 #if DECODE_TECO
629 bool decodeTeco(decode_results *results, uint16_t offset = kStartOffset,
630 const uint16_t nbits = kTecoBits,
631 const bool strict = false);
632 #endif
633 #if DECODE_LEGOPF
634 bool decodeLegoPf(decode_results *results, uint16_t offset = kStartOffset,
635 const uint16_t nbits = kLegoPfBits,
636 const bool strict = true);
637 #endif
638 #if DECODE_NEOCLIMA
639 bool decodeNeoclima(decode_results *results, uint16_t offset = kStartOffset,
640 const uint16_t nbits = kNeoclimaBits,
641 const bool strict = true);
642 #endif // DECODE_NEOCLIMA
643 #if DECODE_AMCOR
644 bool decodeAmcor(decode_results *results, uint16_t offset = kStartOffset,
645 const uint16_t nbits = kAmcorBits,
646 const bool strict = true);
647 #endif // DECODE_AMCOR
648 #if DECODE_EPSON
649 bool decodeEpson(decode_results *results, uint16_t offset = kStartOffset,
650 const uint16_t nbits = kEpsonBits,
651 const bool strict = true);
652 #endif // DECODE_EPSON
653 #if DECODE_SYMPHONY
654 bool decodeSymphony(decode_results *results, uint16_t offset = kStartOffset,
655 const uint16_t nbits = kSymphonyBits,
656 const bool strict = true);
657 #endif // DECODE_SYMPHONY
658 #if DECODE_AIRWELL
659 bool decodeAirwell(decode_results *results, uint16_t offset = kStartOffset,
660 const uint16_t nbits = kAirwellBits,
661 const bool strict = true);
662 #endif // DECODE_AIRWELL
663 #if DECODE_DELONGHI_AC
664 bool decodeDelonghiAc(decode_results *results, uint16_t offset = kStartOffset,
665 const uint16_t nbits = kDelonghiAcBits,
666 const bool strict = true);
667 #endif // DECODE_DELONGHI_AC
668 #if DECODE_DOSHISHA
669 bool decodeDoshisha(decode_results *results, uint16_t offset = kStartOffset,
670 const uint16_t nbits = kDoshishaBits,
671 const bool strict = true);
672 #endif // DECODE_DOSHISHA
673 #if DECODE_MULTIBRACKETS
674 bool decodeMultibrackets(decode_results *results,
675 uint16_t offset = kStartOffset,
676 const uint16_t nbits = kMultibracketsBits,
677 const bool strict = true);
678 #endif // DECODE_MULTIBRACKETS
679 #if DECODE_TECHNIBEL_AC
680 bool decodeTechnibelAc(decode_results *results,
681 uint16_t offset = kStartOffset,
682 const uint16_t nbits = kTechnibelAcBits,
683 const bool strict = true);
684 #endif // DECODE_TECHNIBEL_AC
685 #if DECODE_CORONA_AC
686 bool decodeCoronaAc(decode_results *results, uint16_t offset = kStartOffset,
687 const uint16_t nbits = kCoronaAcBitsShort,
688 const bool strict = true);
689 #endif // DECODE_CORONA_AC
690 #if DECODE_ZEPEAL
691 bool decodeZepeal(decode_results *results, uint16_t offset = kStartOffset,
692 const uint16_t nbits = kZepealBits,
693 const bool strict = true);
694 #endif // DECODE_ZEPEAL
695 #if DECODE_METZ
696 bool decodeMetz(decode_results *results, uint16_t offset = kStartOffset,
697 const uint16_t nbits = kMetzBits,
698 const bool strict = true);
699 #endif // DECODE_METZ
700 #if DECODE_TRANSCOLD
701 bool decodeTranscold(decode_results *results, uint16_t offset = kStartOffset,
702 const uint16_t nbits = kTranscoldBits,
703 const bool strict = true);
704 #endif // DECODE_TRANSCOLD
705 #if DECODE_MIRAGE
706 bool decodeMirage(decode_results *results,
707 uint16_t offset = kStartOffset,
708 const uint16_t nbits = kMirageBits,
709 const bool strict = true);
710 #endif // DECODE_MIRAGE
711 #if DECODE_ELITESCREENS
712 bool decodeElitescreens(decode_results *results,
713 uint16_t offset = kStartOffset,
714 const uint16_t nbits = kEliteScreensBits,
715 const bool strict = true);
716 #endif // DECODE_ELITESCREENS
717 #if DECODE_ECOCLIM
718 bool decodeEcoclim(decode_results *results, uint16_t offset = kStartOffset,
719 const uint16_t nbits = kEcoclimBits,
720 const bool strict = true);
721 #endif // DECODE_ECOCLIM
722 };
723
724 #endif // IRRECV_H_
IRrecv::decodeMultibrackets
bool decodeMultibrackets(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMultibracketsBits, const bool strict=true)
Decode the Multibrackets message. Status: BETA / Appears to be working.
Definition: ir_Multibrackets.cpp:59
IRrecv::matchBytes
uint16_t matchBytes(volatile uint16_t *data_ptr, uint8_t *result_ptr, const uint16_t remaining, const uint16_t nbytes, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true, const bool expectlastspace=true)
Match & decode the typical data section of an IR message. The bytes are stored at result_ptr....
Definition: IRrecv.cpp:1282
kDelonghiAcBits
const uint16_t kDelonghiAcBits
Definition: IRremoteESP8266.h:942
IRrecv::decodeMitsubishi
bool decodeMitsubishi(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishiBits, const bool strict=true)
Decode the supplied Mitsubishi 16-bit message. Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:126
kMirageBits
const uint16_t kMirageBits
Definition: IRremoteESP8266.h:1016
IRrecv::decodeHaierAC
bool decodeHaierAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHaierACBits, const bool strict=true)
Decode the supplied Haier HSU07-HEA03 remote message. Status: STABLE / Known to be working.
Definition: ir_Haier.cpp:974
IRrecv::decodeNEC
bool decodeNEC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kNECBits, const bool strict=true)
Decode the supplied NEC (Renesas) message. Status: STABLE / Known good.
Definition: ir_NEC.cpp:81
kFnvPrime32
const uint32_t kFnvPrime32
Definition: IRrecv.h:52
decode_results::overflow
bool overflow
Definition: IRrecv.h:109
IRrecv::decodeDaikin128
bool decodeDaikin128(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin128Bits, const bool strict=true)
Decode the supplied Daikin 128-bit message. (DAIKIN128) Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:3001
kGicableBits
const uint16_t kGicableBits
Definition: IRremoteESP8266.h:966
IRrecv::matchGeneric
uint16_t matchGeneric(volatile uint16_t *data_ptr, uint64_t *result_ptr, const uint16_t remaining, const uint16_t nbits, const uint16_t hdrmark, const uint32_t hdrspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t footerspace, const bool atleast=false, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true)
Match & decode a generic/typical <= 64bit IR message. The data is stored at result_ptr.
Definition: IRrecv.cpp:1436
decode_type_t
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:785
kCarrierAcBits
const uint16_t kCarrierAcBits
Definition: IRremoteESP8266.h:907
IRrecv::decodeTranscold
bool decodeTranscold(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kTranscoldBits, const bool strict=true)
Decode the supplied Transcold A/C message. Status: STABLE / Known Working.
Definition: ir_Transcold.cpp:447
IRrecv::getRClevel
int16_t getRClevel(decode_results *results, uint16_t *offset, uint16_t *used, uint16_t bitTime, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const uint16_t delta=0, const uint8_t maxwidth=3)
Gets one undecoded level at a time from the raw buffer. The RC5/6 decoding is easier if the data is b...
Definition: ir_RC5_RC6.cpp:243
kMultibracketsBits
const uint16_t kMultibracketsBits
Definition: IRremoteESP8266.h:1037
kSharpAcBits
const uint16_t kSharpAcBits
Definition: IRremoteESP8266.h:1078
kWhynterBits
const uint16_t kWhynterBits
Definition: IRremoteESP8266.h:1109
IRrecv::decodeSanyoAc
bool decodeSanyoAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSanyoAcBits, const bool strict=true)
Decode the supplied SanyoAc message. Status: STABLE / Reported as working.
Definition: ir_Sanyo.cpp:273
irparams_t::overflow
uint8_t overflow
Definition: IRrecv.h:78
IRrecv::decodeMitsubishi2
bool decodeMitsubishi2(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishiBits, const bool strict=true)
Decode the supplied second variation of a Mitsubishi 16-bit message. Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:191
IRrecv::decodeGree
bool decodeGree(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kGreeBits, const bool strict=true)
Decode the supplied Gree HVAC message. Status: STABLE / Working.
Definition: ir_Gree.cpp:659
kAirwellBits
const uint16_t kAirwellBits
Definition: IRremoteESP8266.h:894
IRrecv::irparams_save
irparams_t * irparams_save
Definition: IRrecv.h:151
kMitsubishiACBits
const uint16_t kMitsubishiACBits
Definition: IRremoteESP8266.h:1023
IRrecv::decodeFujitsuAC
bool decodeFujitsuAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kFujitsuAcBits, const bool strict=false)
Decode the supplied Fujitsu AC IR message if possible. Status: STABLE / Working.
Definition: ir_Fujitsu.cpp:897
kTechnibelAcBits
const uint16_t kTechnibelAcBits
Definition: IRremoteESP8266.h:944
IRrecv::decodeTrotec
bool decodeTrotec(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kTrotecBits, const bool strict=true)
Decode the supplied Trotec message. Status: STABLE / Works. Untested on real devices.
Definition: ir_Trotec.cpp:313
IRrecv::decodeNeoclima
bool decodeNeoclima(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kNeoclimaBits, const bool strict=true)
Decode the supplied Neoclima message. Status: STABLE / Known working.
Definition: ir_Neoclima.cpp:571
kVoltasBits
const uint16_t kVoltasBits
Definition: IRremoteESP8266.h:1113
IRrecv::decodeMitsubishi112
bool decodeMitsubishi112(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishi112Bits, const bool strict=true)
Decode the supplied Mitsubishi/TCL 112-bit A/C message. (MITSUBISHI112, TCL112AC) Status: STABLE / Re...
Definition: ir_Mitsubishi.cpp:1243
IRrecv::decodeSamsungAC
bool decodeSamsungAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSamsungAcBits, const bool strict=true)
Decode the supplied Samsung A/C message. Status: Stable / Known to be working.
Definition: ir_Samsung.cpp:772
IRrecv::decodeAirwell
bool decodeAirwell(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kAirwellBits, const bool strict=true)
Decode the supplied Airwell "Manchester code" message.
Definition: ir_Airwell.cpp:53
kRC5XBits
const uint16_t kRC5XBits
Definition: IRremoteESP8266.h:1056
IRrecv::decodeMagiQuest
bool decodeMagiQuest(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMagiquestBits, const bool strict=true)
Decode the supplied MagiQuest message. Status: Beta / Should work.
Definition: ir_Magiquest.cpp:69
irparams_t::rawlen
uint16_t rawlen
Definition: IRrecv.h:77
kUseDefTol
const uint8_t kUseDefTol
Definition: IRrecv.h:36
IRrecv::decodeDelonghiAc
bool decodeDelonghiAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDelonghiAcBits, const bool strict=true)
Decode the supplied Delonghi A/C message. Status: STABLE / Expected to be working.
Definition: ir_Delonghi.cpp:58
IRrecv
Class for receiving IR messages.
Definition: IRrecv.h:114
irparams_t::bufsize
uint16_t bufsize
Definition: IRrecv.h:73
decode_results
Results returned from the decoder.
Definition: IRrecv.h:92
IRrecv::matchGenericConstBitTime
uint16_t matchGenericConstBitTime(volatile uint16_t *data_ptr, uint64_t *result_ptr, const uint16_t remaining, const uint16_t nbits, const uint16_t hdrmark, const uint32_t hdrspace, const uint16_t one, const uint32_t zero, const uint16_t footermark, const uint32_t footerspace, const bool atleast=false, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true)
Match & decode a generic/typical constant bit time <= 64bit IR message. The data is stored at result_...
Definition: IRrecv.cpp:1530
IRrecv::decodeCarrierAC64
bool decodeCarrierAC64(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kCarrierAc64Bits, const bool strict=true)
Decode the supplied Carrier 64-bit HVAC message. Status: STABLE / Known to be working.
Definition: ir_Carrier.cpp:195
kCoolixBits
const uint16_t kCoolixBits
Definition: IRremoteESP8266.h:905
IRrecv::decodeArgo
bool decodeArgo(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kArgoBits, const bool strict=true)
Decode the supplied Argo message. Status: BETA / Probably works.
Definition: ir_Argo.cpp:445
kCoronaAcBitsShort
const uint16_t kCoronaAcBitsShort
Definition: IRremoteESP8266.h:915
match_result_t::data
uint64_t data
Definition: IRrecv.h:85
kSamsung36Bits
const uint16_t kSamsung36Bits
Definition: IRremoteESP8266.h:1061
kMagiquestBits
const uint16_t kMagiquestBits
Definition: IRremoteESP8266.h:1008
irparams_t::rawbuf
uint16_t * rawbuf
Definition: IRrecv.h:74
irparams_t
Information for the interrupt handler.
Definition: IRrecv.h:69
IRrecv::getBufSize
uint16_t getBufSize(void)
Obtain the maximum number of entries possible in the capture buffer. i.e. It's size.
Definition: IRrecv.cpp:411
kSanyoLC7461Bits
const uint16_t kSanyoLC7461Bits
Definition: IRremoteESP8266.h:1072
decode_results::repeat
bool repeat
Definition: IRrecv.h:110
IRrecv::decodeHitachiAC
bool decodeHitachiAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHitachiAcBits, const bool strict=true, const bool MSBfirst=true)
Decode the supplied Hitachi A/C message. Status: STABLE / Expected to work.
Definition: ir_Hitachi.cpp:846
kTrotecBits
const uint16_t kTrotecBits
Definition: IRremoteESP8266.h:1104
IRrecv::decodeVestelAc
bool decodeVestelAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kVestelAcBits, const bool strict=true)
Decode the supplied Vestel message. Status: Alpha / Needs testing against a real device.
Definition: ir_Vestel.cpp:572
kIdleState
const uint8_t kIdleState
Definition: IRrecv.h:31
IRrecv::decodeAmcor
bool decodeAmcor(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kAmcorBits, const bool strict=true)
Decode the supplied Amcor HVAC message. Status: STABLE / Reported as working.
Definition: ir_Amcor.cpp:58
IRrecv::decodeDaikin
bool decodeDaikin(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikinBits, const bool strict=true)
Decode the supplied Daikin 280-bit message. (DAIKIN) Status: STABLE / Reported as working.
Definition: ir_Daikin.cpp:597
kEliteScreensBits
const uint16_t kEliteScreensBits
Definition: IRremoteESP8266.h:959
irparams_t::recvpin
uint8_t recvpin
Definition: IRrecv.h:70
irparams_t::timer
uint16_t timer
Definition: IRrecv.h:72
IRrecv::decodeDaikin64
bool decodeDaikin64(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin64Bits, const bool strict=true)
Decode the supplied Daikin 64-bit message. (DAIKIN64) Status: Beta / Probably Working.
Definition: ir_Daikin.cpp:3473
IRrecv::decodeMetz
bool decodeMetz(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMetzBits, const bool strict=true)
Decode the supplied Metz message. Status: BETA / Probably works.
Definition: ir_Metz.cpp:67
match_result_t::success
bool success
Definition: IRrecv.h:84
IRrecv::decodeDaikin2
bool decodeDaikin2(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin2Bits, const bool strict=true)
Decode the supplied Daikin 312-bit message. (DAIKIN2) Status: STABLE / Works as expected.
Definition: ir_Daikin.cpp:1352
kElectraAcBits
const uint16_t kElectraAcBits
Definition: IRremoteESP8266.h:957
IRrecv::matchSpace
bool matchSpace(const uint32_t measured, const uint32_t desired, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess)
Check if we match a space signal(measured) with the desired within +/-tolerance percent,...
Definition: IRrecv.cpp:1144
kSonyMinBits
const uint16_t kSonyMinBits
Definition: IRremoteESP8266.h:1085
kStopState
const uint8_t kStopState
Definition: IRrecv.h:34
decode_results::rawlen
uint16_t rawlen
Definition: IRrecv.h:108
kMaxTimeoutMs
const uint16_t kMaxTimeoutMs
Definition: IRrecv.h:49
IRrecv::decodePanasonicAC32
bool decodePanasonicAC32(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kPanasonicAc32Bits, const bool strict=true)
Decode the supplied Panasonic AC 32/16bit message. Status: STABLE / Confirmed working.
Definition: ir_Panasonic.cpp:980
kDaikin2Bits
const uint16_t kDaikin2Bits
Definition: IRremoteESP8266.h:923
IRrecv::decodePanasonic
bool decodePanasonic(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kPanasonicBits, const bool strict=false, const uint32_t manufacturer=kPanasonicManufacturer)
Decode the supplied Panasonic message. Status: STABLE / Should be working.
Definition: ir_Panasonic.cpp:128
kHitachiAc1Bits
const uint16_t kHitachiAc1Bits
Definition: IRremoteESP8266.h:983
IRrecv::decodeElectraAC
bool decodeElectraAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kElectraAcBits, const bool strict=true)
Decode the supplied Electra A/C message. Status: STABLE / Known working.
Definition: ir_Electra.cpp:370
IRrecv::decodeDaikin216
bool decodeDaikin216(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin216Bits, const bool strict=true)
Decode the supplied Daikin 216-bit message. (DAIKIN216) Status: STABLE / Should be working.
Definition: ir_Daikin.cpp:1715
IRrecv::decodeDaikin152
bool decodeDaikin152(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin152Bits, const bool strict=true)
Decode the supplied Daikin 152-bit message. (DAIKIN152) Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:3090
IRrecv::decodeElitescreens
bool decodeElitescreens(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kEliteScreensBits, const bool strict=true)
Decode the supplied Elite Screens message. Status: STABLE / Confirmed working.
Definition: ir_EliteScreens.cpp:63
IRrecv::decodeDenon
bool decodeDenon(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDenonBits, const bool strict=true)
Decode the supplied Delonghi A/C message. Status: STABLE / Should work fine.
Definition: ir_Denon.cpp:70
kPanasonicBits
const uint16_t kPanasonicBits
Definition: IRremoteESP8266.h:1044
kMilesTag2ShotBits
const uint16_t kMilesTag2ShotBits
Definition: IRremoteESP8266.h:1115
decode_results::decode_type
decode_type_t decode_type
Definition: IRrecv.h:94
kPanasonicAcBits
const uint16_t kPanasonicAcBits
Definition: IRremoteESP8266.h:1048
IRrecv::decodeTechnibelAc
bool decodeTechnibelAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kTechnibelAcBits, const bool strict=true)
Status: STABLE / Reported as working on a real device.
Definition: ir_Technibel.cpp:54
kRepeat
const uint64_t kRepeat
Definition: IRrecv.h:26
IRrecv::setTolerance
void setTolerance(const uint8_t percent=kTolerance)
Set the base tolerance percentage for matching incoming IR messages.
Definition: IRrecv.cpp:424
IRrecv::decodeMidea
bool decodeMidea(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMideaBits, const bool strict=true)
Decode the supplied Midea message. Status: Alpha / Needs testing against a real device.
Definition: ir_Midea.cpp:666
IRrecv::decodeVoltas
bool decodeVoltas(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kVoltasBits, const bool strict=true)
Decode the supplied Voltas message. Status: STABLE / Working on real device.
Definition: ir_Voltas.cpp:61
kDaikin160Bits
const uint16_t kDaikin160Bits
Definition: IRremoteESP8266.h:928
IRrecv::copyIrParams
void copyIrParams(volatile irparams_t *src, irparams_t *dst)
Make a copy of the interrupt state & buffer data. Needed because irparams is marked as volatile,...
Definition: IRrecv.cpp:387
IRrecv::decodeKelvinator
bool decodeKelvinator(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kKelvinatorBits, const bool strict=true)
Decode the supplied Kelvinator message. Status: STABLE / Known working.
Definition: ir_Kelvinator.cpp:459
kGoodweatherBits
const uint16_t kGoodweatherBits
Definition: IRremoteESP8266.h:968
IRrecv::decodeMWM
bool decodeMWM(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=24, const bool strict=true)
Decode the supplied MWM message. Status: Implemented.
Definition: ir_MWM.cpp:81
IRrecv::enableIRIn
void enableIRIn(const bool pullup=false)
Set up and (re)start the IR capture mechanism.
Definition: IRrecv.cpp:319
kDaikin152Bits
const uint16_t kDaikin152Bits
Definition: IRremoteESP8266.h:934
IRrecv::decodePanasonicAC
bool decodePanasonicAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kPanasonicAcBits, const bool strict=true)
Decode the supplied Panasonic AC message. Status: STABLE / Works with real device(s).
Definition: ir_Panasonic.cpp:851
IRrecv::decodeDoshisha
bool decodeDoshisha(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDoshishaBits, const bool strict=true)
Decode the supplied Doshisha message. Status: STABLE / Works on real device.
Definition: ir_Doshisha.cpp:85
IRrecv::decodeZepeal
bool decodeZepeal(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kZepealBits, const bool strict=true)
Decode the supplied Zepeal message. Status: STABLE / Works on real device.
Definition: ir_Zepeal.cpp:67
IRrecv::decodeDaikin160
bool decodeDaikin160(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin160Bits, const bool strict=true)
Decode the supplied Daikin 160-bit message. (DAIKIN160) Status: STABLE / Confirmed working.
Definition: ir_Daikin.cpp:2080
IRrecv::decodeLasertag
bool decodeLasertag(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kLasertagBits, const bool strict=true)
Decode the supplied Lasertag message. Status: BETA / Appears to be working 90% of the time.
Definition: ir_Lasertag.cpp:70
IRremoteESP8266.h
kTimeoutMs
const uint8_t kTimeoutMs
Definition: IRrecv.h:47
IRrecv::_matchGeneric
uint16_t _matchGeneric(volatile uint16_t *data_ptr, uint64_t *result_bits_ptr, uint8_t *result_ptr, const bool use_bits, const uint16_t remaining, const uint16_t required, const uint16_t hdrmark, const uint32_t hdrspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t footerspace, const bool atleast=false, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true)
Match & decode a generic/typical IR message. The data is stored in result_bits_ptr or result_bytes_pt...
Definition: IRrecv.cpp:1334
kMarkState
const uint8_t kMarkState
Definition: IRrecv.h:32
IRrecv::setUnknownThreshold
void setUnknownThreshold(const uint16_t length)
Set the minimum length we will consider for reporting UNKNOWN message types.
Definition: IRrecv.cpp:416
kSymphonyBits
const uint16_t kSymphonyBits
Definition: IRremoteESP8266.h:1087
IRrecv::decodeMirage
bool decodeMirage(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMirageBits, const bool strict=true)
Decode the supplied Mirage message. Status: STABLE / Reported as working.
Definition: ir_Mirage.cpp:50
kRC6Mode0Bits
const uint16_t kRC6Mode0Bits
Definition: IRremoteESP8266.h:1057
kStateSizeMax
const uint16_t kStateSizeMax
Definition: IRrecv.h:60
match_result_t
Results from a data match.
Definition: IRrecv.h:83
irparams_t::rcvstate
uint8_t rcvstate
Definition: IRrecv.h:71
kMetzBits
const uint16_t kMetzBits
Definition: IRremoteESP8266.h:1009
IRrecv::decodeRC6
bool decodeRC6(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kRC6Mode0Bits, const bool strict=false)
Decode the supplied RC6 message. Status: Stable.
Definition: ir_RC5_RC6.cpp:383
IRrecv::decodeRC5
bool decodeRC5(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kRC5XBits, const bool strict=true)
Decode the supplied RC-5/RC5X message. Status: RC-5 (stable), RC-5X (alpha)
Definition: ir_RC5_RC6.cpp:309
IRrecv::~IRrecv
~IRrecv(void)
Class destructor Cleans up after the object is no longer needed. e.g. Frees up all memory used by the...
Definition: IRrecv.cpp:304
IRrecv::decodeHitachiAc3
bool decodeHitachiAc3(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHitachiAc3Bits, const bool strict=true)
Decode the supplied Hitachi 15to27-byte/120to216-bit A/C message. Status: STABLE / Works fine.
Definition: ir_Hitachi.cpp:1425
IRrecv::decodeWhynter
bool decodeWhynter(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kWhynterBits, const bool strict=true)
Decode the supplied Whynter message. Status: STABLE / Working. Strict mode is ALPHA.
Definition: ir_Whynter.cpp:74
IRrecv::decodeCarrierAC
bool decodeCarrierAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kCarrierAcBits, const bool strict=true)
Decode the supplied Carrier HVAC message.
Definition: ir_Carrier.cpp:82
kMitsubishiHeavy152Bits
const uint16_t kMitsubishiHeavy152Bits
Definition: IRremoteESP8266.h:1035
kDoshishaBits
const uint16_t kDoshishaBits
Definition: IRremoteESP8266.h:951
kCarrierAc40Bits
const uint16_t kCarrierAc40Bits
Definition: IRremoteESP8266.h:909
kStartOffset
const uint16_t kStartOffset
Definition: IRrecv.h:20
kAmcorBits
const uint16_t kAmcorBits
Definition: IRremoteESP8266.h:900
IRrecv::decodeRCMM
bool decodeRCMM(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kRCMMBits, const bool strict=false)
Decode a Philips RC-MM packet (between 12 & 32 bits) if possible. Status: STABLE / Should be working.
Definition: ir_RCMM.cpp:96
IRrecv::IRrecv
IRrecv(const uint16_t recvpin, const uint16_t bufsize=kRawBuf, const uint8_t timeout=kTimeoutMs, const bool save_buffer=false, const uint8_t timer_num=kDefaultESP32Timer)
Class constructor Args:
Definition: IRrecv.cpp:243
IRrecv::decodeMitsubishi136
bool decodeMitsubishi136(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishi136Bits, const bool strict=true)
Decode the supplied Mitsubishi 136-bit A/C message. (MITSUBISHI136) Status: STABLE / Reported as work...
Definition: ir_Mitsubishi.cpp:869
decode_results::rawbuf
volatile uint16_t * rawbuf
Definition: IRrecv.h:107
kTolerance
const uint8_t kTolerance
Definition: IRrecv.h:35
IRrecv::decodeSharp
bool decodeSharp(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSharpBits, const bool strict=true, const bool expansion=true)
Decode the supplied Sharp message. Status: STABLE / Working fine.
Definition: ir_Sharp.cpp:155
match_result_t::used
uint16_t used
Definition: IRrecv.h:86
kPanasonicManufacturer
const uint32_t kPanasonicManufacturer
Definition: IRremoteESP8266.h:1045
decode_results::address
uint32_t address
Definition: IRrecv.h:101
IRrecv::decodeNikai
bool decodeNikai(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kNikaiBits, const bool strict=true)
Decode the supplied Nikai message. Status: STABLE / Working.
Definition: ir_Nikai.cpp:52
kMitsubishiBits
const uint16_t kMitsubishiBits
Definition: IRremoteESP8266.h:1018
IRrecv::match
bool match(const uint32_t measured, const uint32_t desired, const uint8_t tolerance=kUseDefTol, const uint16_t delta=0)
Check if we match a pulse(measured) with the desired within +/-tolerance percent and/or +/- a fixed d...
Definition: IRrecv.cpp:1052
IRrecv::decodeSymphony
bool decodeSymphony(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSymphonyBits, const bool strict=true)
Decode the supplied Symphony packet/message. Status: STABLE / Should be working.
Definition: ir_Symphony.cpp:60
kSamsungAcBits
const uint16_t kSamsungAcBits
Definition: IRremoteESP8266.h:1063
kUnknownThreshold
const uint16_t kUnknownThreshold
Definition: IRrecv.h:28
kMideaBits
const uint16_t kMideaBits
Definition: IRremoteESP8266.h:1011
IRrecv::decodeAiwaRCT501
bool decodeAiwaRCT501(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kAiwaRcT501Bits, const bool strict=true)
Decode the supplied Aiwa RC T501 message. Status: BETA / Should work.
Definition: ir_Aiwa.cpp:61
kKelvinatorBits
const uint16_t kKelvinatorBits
Definition: IRremoteESP8266.h:998
IRrecv::decodeGICable
bool decodeGICable(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kGicableBits, const bool strict=true)
Decode the supplied G.I. Cable message. Status: Alpha / Not tested against a real device.
Definition: ir_GICable.cpp:63
IRrecv::decodeTeco
bool decodeTeco(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kTecoBits, const bool strict=false)
Decode the supplied Teco message. Status: STABLE / Tested.
Definition: ir_Teco.cpp:353
IRrecv::decodeSanyoLC7461
bool decodeSanyoLC7461(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSanyoLC7461Bits, const bool strict=true)
Decode the supplied SANYO LC7461 message. Status: BETA / Probably works.
Definition: ir_Sanyo.cpp:136
IRrecv::decodeCarrierAC40
bool decodeCarrierAC40(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kCarrierAc40Bits, const bool strict=true)
Decode the supplied Carrier 40-bit HVAC message. Carrier HVAC messages contain only 40 bits,...
Definition: ir_Carrier.cpp:147
kNECBits
const uint16_t kNECBits
Definition: IRremoteESP8266.h:1040
kDenonBits
const uint16_t kDenonBits
Definition: IRremoteESP8266.h:946
kHaierACBits
const uint16_t kHaierACBits
Definition: IRremoteESP8266.h:974
IRrecv::matchAtLeast
bool matchAtLeast(const uint32_t measured, const uint32_t desired, const uint8_t tolerance=kUseDefTol, const uint16_t delta=0)
Check if we match a pulse(measured) of at least desired within tolerance percent and/or a fixed delta...
Definition: IRrecv.cpp:1083
kZepealBits
const uint16_t kZepealBits
Definition: IRremoteESP8266.h:1111
kMidea24Bits
const uint16_t kMidea24Bits
Definition: IRremoteESP8266.h:1013
IRrecv::decodeDaikin176
bool decodeDaikin176(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDaikin176Bits, const bool strict=true)
Decode the supplied Daikin 176-bit message. (DAIKIN176) Status: STABLE / Expected to work.
Definition: ir_Daikin.cpp:2472
kNeoclimaBits
const uint16_t kNeoclimaBits
Definition: IRremoteESP8266.h:1042
kWhirlpoolAcBits
const uint16_t kWhirlpoolAcBits
Definition: IRremoteESP8266.h:1107
IRrecv::decodeSharpAc
bool decodeSharpAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSharpAcBits, const bool strict=true)
Decode the supplied Sharp A/C message. Status: STABLE / Known working.
Definition: ir_Sharp.cpp:855
IRrecv::decodeJVC
bool decodeJVC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kJvcBits, const bool strict=true)
Decode the supplied JVC message. Status: Stable / Known working.
Definition: ir_JVC.cpp:94
IRrecv::decodeEcoclim
bool decodeEcoclim(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kEcoclimBits, const bool strict=true)
Decode the supplied EcoClim A/C message. Status: STABLE / Confirmed working on real remote.
Definition: ir_EcoClim.cpp:62
IRrecv::decodeMitsubishiAC
bool decodeMitsubishiAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishiACBits, const bool strict=false)
Decode the supplied Mitsubish 144-bit A/C message. Status: BETA / Probably works.
Definition: ir_Mitsubishi.cpp:257
kCarrierAc64Bits
const uint16_t kCarrierAc64Bits
Definition: IRremoteESP8266.h:911
kPioneerBits
const uint16_t kPioneerBits
Definition: IRremoteESP8266.h:1052
decode_results::bits
uint16_t bits
Definition: IRrecv.h:106
kGreeBits
const uint16_t kGreeBits
Definition: IRremoteESP8266.h:971
kJvcBits
const uint16_t kJvcBits
Definition: IRremoteESP8266.h:996
kLasertagBits
const uint16_t kLasertagBits
Definition: IRremoteESP8266.h:1000
kDaikin128Bits
const uint16_t kDaikin128Bits
Definition: IRremoteESP8266.h:931
kAiwaRcT501Bits
const uint16_t kAiwaRcT501Bits
Definition: IRremoteESP8266.h:896
IRrecv::ticksLow
uint32_t ticksLow(const uint32_t usecs, const uint8_t tolerance=kUseDefTol, const uint16_t delta=0)
Calculate the lower bound of the nr. of ticks.
Definition: IRrecv.cpp:1026
kTecoBits
const uint16_t kTecoBits
Definition: IRremoteESP8266.h:1092
IRrecv::decodeEpson
bool decodeEpson(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kEpsonBits, const bool strict=true)
Decode the supplied Epson message. Status: Beta / Probably works.
Definition: ir_Epson.cpp:45
kToshibaACBits
const uint16_t kToshibaACBits
Definition: IRremoteESP8266.h:1095
IRrecv::decodeSony
bool decodeSony(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSonyMinBits, const bool strict=false)
Decode the supplied Sony/SIRC message. Status: STABLE / Should be working. strict mode is ALPHA / Unt...
Definition: ir_Sony.cpp:121
kDaikinBits
const uint16_t kDaikinBits
Definition: IRremoteESP8266.h:918
IRrecv::matchMark
bool matchMark(const uint32_t measured, const uint32_t desired, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess)
Check if we match a mark signal(measured) with the desired within +/-tolerance percent,...
Definition: IRrecv.cpp:1125
kHitachiAcBits
const uint16_t kHitachiAcBits
Definition: IRremoteESP8266.h:980
kHitachiAc3Bits
const uint16_t kHitachiAc3Bits
Definition: IRremoteESP8266.h:987
kRawBuf
const uint16_t kRawBuf
Definition: IRrecv.h:25
IRrecv::decode
bool decode(decode_results *results, irparams_t *save=NULL, uint8_t max_skip=0, uint16_t noise_floor=0)
Decodes the received IR message. If the interrupt state is saved, we will immediately resume waiting ...
Definition: IRrecv.cpp:501
IRrecv::decodePioneer
bool decodePioneer(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kPioneerBits, const bool strict=true)
Decode the supplied Pioneer message. Status: STABLE / Should be working. (Self decodes & real example...
Definition: ir_Pioneer.cpp:92
IRrecv::getTolerance
uint8_t getTolerance(void)
Get the base tolerance percentage for matching incoming IR messages.
Definition: IRrecv.cpp:430
kDishBits
const uint16_t kDishBits
Definition: IRremoteESP8266.h:949
IRrecv::compare
uint16_t compare(const uint16_t oldval, const uint16_t newval)
Compare two tick values.
Definition: IRrecv.cpp:1162
decode_results::command
uint32_t command
Definition: IRrecv.h:102
kFujitsuAcBits
const uint16_t kFujitsuAcBits
Definition: IRremoteESP8266.h:964
decode_results::value
uint64_t value
Definition: IRrecv.h:100
kArgoBits
const uint16_t kArgoBits
Definition: IRremoteESP8266.h:903
kHitachiAc2StateLength
const uint16_t kHitachiAc2StateLength
Definition: IRremoteESP8266.h:984
IRrecv::decodeSamsung36
bool decodeSamsung36(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSamsung36Bits, const bool strict=true)
Decode the supplied Samsung36 message. Status: STABLE / Expected to work.
Definition: ir_Samsung.cpp:192
kFooter
const uint16_t kFooter
Definition: IRrecv.h:19
kNikaiBits
const uint16_t kNikaiBits
Definition: IRremoteESP8266.h:1039
kLutronBits
const uint16_t kLutronBits
Definition: IRremoteESP8266.h:1007
irparams_t::timeout
uint8_t timeout
Definition: IRrecv.h:79
IRrecv::decodeCoronaAc
bool decodeCoronaAc(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kCoronaAcBitsShort, const bool strict=true)
Decode the supplied CoronaAc message. Status: STABLE / Appears to be working.
Definition: ir_Corona.cpp:88
IRrecv::decodeLutron
bool decodeLutron(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kLutronBits, const bool strict=true)
Decode the supplied Lutron message. Status: STABLE / Working.
Definition: ir_Lutron.cpp:65
IRrecv::decodeDISH
bool decodeDISH(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kDishBits, const bool strict=true)
Decode the supplied DISH NETWORK message. Status: ALPHA (untested and unconfirmed....
Definition: ir_Dish.cpp:77
kRawTick
const uint16_t kRawTick
Definition: IRrecv.h:37
IRrecv::matchManchesterData
uint16_t matchManchesterData(volatile const uint16_t *data_ptr, uint64_t *result_ptr, const uint16_t remaining, const uint16_t nbits, const uint16_t half_period, const uint16_t starting_balance=0, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true, const bool GEThomas=true)
Match & decode a Manchester Code data (<= 64bits.
Definition: IRrecv.cpp:1724
IRrecv::resume
void resume(void)
Resume collection of received IR data.
Definition: IRrecv.cpp:372
IRrecv::decodeMilestag2
bool decodeMilestag2(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMilesTag2ShotBits, const bool strict=true)
Decode the supplied MilesTag2 message. Status: ALPHA / Probably works but needs testing with a real d...
Definition: ir_MilesTag2.cpp:63
kEcoclimBits
const uint16_t kEcoclimBits
Definition: IRremoteESP8266.h:952
kHaierACYRW02Bits
const uint16_t kHaierACYRW02Bits
Definition: IRremoteESP8266.h:977
IRrecv::matchData
match_result_t matchData(volatile uint16_t *data_ptr, const uint16_t nbits, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true, const bool expectlastspace=true)
Match & decode the typical data section of an IR message. The data value is stored in the least signi...
Definition: IRrecv.cpp:1221
kHitachiAc424Bits
const uint16_t kHitachiAc424Bits
Definition: IRremoteESP8266.h:993
IRrecv::decodeWhirlpoolAC
bool decodeWhirlpoolAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kWhirlpoolAcBits, const bool strict=true)
Decode the supplied Whirlpool A/C message. Status: STABLE / Working as intended.
Definition: ir_Whirlpool.cpp:652
kMarkExcess
const uint16_t kMarkExcess
Definition: IRrecv.h:24
IRrecv::decodeHaierACYRW02
bool decodeHaierACYRW02(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHaierACYRW02Bits, const bool strict=true)
Decode the supplied Haier YR-W02 remote A/C message. Status: BETA / Appears to be working.
Definition: ir_Haier.cpp:1020
IRrecv::decodeLG
bool decodeLG(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kLgBits, const bool strict=false)
Decode the supplied LG message. Status: STABLE / Working.
Definition: ir_LG.cpp:139
IRrecv::decodeCOOLIX
bool decodeCOOLIX(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kCoolixBits, const bool strict=true)
Decode the supplied Coolix A/C message. Status: STABLE / Known Working.
Definition: ir_Coolix.cpp:628
kLegoPfBits
const uint16_t kLegoPfBits
Definition: IRremoteESP8266.h:1002
kSharpBits
const uint16_t kSharpBits
Definition: IRremoteESP8266.h:1076
IRrecv::decodeGoodweather
bool decodeGoodweather(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kGoodweatherBits, const bool strict=true)
Decode the supplied Goodweather message. Status: BETA / Probably works.
Definition: ir_Goodweather.cpp:424
IRrecv::_tolerance
uint8_t _tolerance
Definition: IRrecv.h:152
kDefaultESP32Timer
const uint8_t kDefaultESP32Timer
Definition: IRrecv.h:56
IRrecv::matchManchester
uint16_t matchManchester(volatile const uint16_t *data_ptr, uint64_t *result_ptr, const uint16_t remaining, const uint16_t nbits, const uint16_t hdrmark, const uint32_t hdrspace, const uint16_t clock_period, const uint16_t footermark, const uint32_t footerspace, const bool atleast=false, const uint8_t tolerance=kUseDefTol, const int16_t excess=kMarkExcess, const bool MSBfirst=true, const bool GEThomas=true)
Match & decode a Manchester Code <= 64bit IR message. The data is stored at result_ptr.
Definition: IRrecv.cpp:1617
IRrecv::decodeInax
bool decodeInax(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kInaxBits, const bool strict=true)
Decode the supplied Inax Toilet message. Status: Stable / Known working.
Definition: ir_Inax.cpp:51
IRrecv::crudeNoiseFilter
void crudeNoiseFilter(decode_results *results, const uint16_t floor=0)
Remove or merge pulses in the capture buffer that are too short.
Definition: IRrecv.cpp:437
IRrecv::decodeHitachiAC1
bool decodeHitachiAC1(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHitachiAc1Bits, const bool strict=true)
IRrecv::decodeSAMSUNG
bool decodeSAMSUNG(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kSamsungBits, const bool strict=true)
Decode the supplied Samsung 32-bit message. Status: STABLE.
Definition: ir_Samsung.cpp:118
IRrecv::decodeLegoPf
bool decodeLegoPf(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kLegoPfBits, const bool strict=true)
Decode the supplied LEGO Power Functions message. Status: STABLE / Appears to work.
Definition: ir_Lego.cpp:71
kRCMMBits
const uint16_t kRCMMBits
Definition: IRremoteESP8266.h:1059
kVestelAcBits
const uint8_t kVestelAcBits
Definition: IRremoteESP8266.h:1110
kTranscoldBits
const uint16_t kTranscoldBits
Definition: IRremoteESP8266.h:1101
kInaxBits
const uint16_t kInaxBits
Definition: IRremoteESP8266.h:994
IRrecv::decodeMitsubishiHeavy
bool decodeMitsubishiHeavy(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMitsubishiHeavy152Bits, const bool strict=true)
Decode the supplied Mitsubishi Heavy Industries A/C message. Status: BETA / Appears to be working....
Definition: ir_MitsubishiHeavy.cpp:1003
IRrecv::_unknown_threshold
uint16_t _unknown_threshold
Definition: IRrecv.h:157
kDaikin176Bits
const uint16_t kDaikin176Bits
Definition: IRremoteESP8266.h:937
IRrecv::decodeMidea24
bool decodeMidea24(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kMidea24Bits, const bool strict=true)
Decode the supplied Midea24 message. Status: STABLE / Confirmed working on a real device.
Definition: ir_Midea.cpp:759
IRrecv::disableIRIn
void disableIRIn(void)
Stop collection of any received IR data. Disable any timers and interrupts.
Definition: IRrecv.cpp:356
IRrecv::decodeHitachiAc424
bool decodeHitachiAc424(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHitachiAc424Bits, const bool strict=true)
Decode the supplied Hitachi 53-byte/424-bit A/C message. Status: STABLE / Reported as working.
Definition: ir_Hitachi.cpp:959
IRrecv::decodeToshibaAC
bool decodeToshibaAC(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kToshibaACBits, const bool strict=true)
Decode the supplied Toshiba A/C message. Status: STABLE / Working.
Definition: ir_Toshiba.cpp:463
IRrecv::ticksHigh
uint32_t ticksHigh(const uint32_t usecs, const uint8_t tolerance=kUseDefTol, const uint16_t delta=0)
Calculate the upper bound of the nr. of ticks.
Definition: IRrecv.cpp:1039
kSamsungBits
const uint16_t kSamsungBits
Definition: IRremoteESP8266.h:1060
IRrecv::_timer_num
uint8_t _timer_num
Definition: IRrecv.h:154
kDaikin64Bits
const uint16_t kDaikin64Bits
Definition: IRremoteESP8266.h:925
kPanasonicAc32Bits
const uint16_t kPanasonicAc32Bits
Definition: IRremoteESP8266.h:1051
kDaikin216Bits
const uint16_t kDaikin216Bits
Definition: IRremoteESP8266.h:940
kMitsubishi136Bits
const uint16_t kMitsubishi136Bits
Definition: IRremoteESP8266.h:1026
kSanyoAcBits
const uint16_t kSanyoAcBits
Definition: IRremoteESP8266.h:1068
kMitsubishi112Bits
const uint16_t kMitsubishi112Bits
Definition: IRremoteESP8266.h:1029
kEpsonBits
const uint16_t kEpsonBits
Definition: IRremoteESP8266.h:954
decode_results::state
uint8_t state[kStateSizeMax]
Definition: IRrecv.h:104
IRrecv::decodeHash
bool decodeHash(decode_results *results)
Decode any arbitrary IR message into a 32-bit code value. Instead of decoding using a standard encodi...
Definition: IRrecv.cpp:1183
kSpaceState
const uint8_t kSpaceState
Definition: IRrecv.h:33
kLgBits
const uint16_t kLgBits
Definition: IRremoteESP8266.h:1004
IRrecv::_validTolerance
uint8_t _validTolerance(const uint8_t percentage)
Convert the tolerance percentage into something valid.
Definition: IRrecv.cpp:1017
kHeader
const uint16_t kHeader
Definition: IRrecv.h:18
kFnvBasis32
const uint32_t kFnvBasis32
Definition: IRrecv.h:53