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.
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.
88 
89 // Classes
90 
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 matchMarkRange(const uint32_t measured, const uint32_t desired,
145  const uint16_t range = 100,
146  const int16_t excess = kMarkExcess);
147  bool matchSpace(const uint32_t measured, const uint32_t desired,
148  const uint8_t tolerance = kUseDefTol,
149  const int16_t excess = kMarkExcess);
150  bool matchSpaceRange(const uint32_t measured, const uint32_t desired,
151  const uint16_t range = 100,
152  const int16_t excess = kMarkExcess);
153 #ifndef UNIT_TEST
154 
155  private:
156 #endif
158  uint8_t _tolerance;
159 #if defined(ESP32)
160  uint8_t _timer_num;
161 #endif // defined(ESP32)
162 #if DECODE_HASH
164 #endif
165  // These are called by decode
166  uint8_t _validTolerance(const uint8_t percentage);
167  void copyIrParams(volatile irparams_t *src, irparams_t *dst);
168  uint16_t compare(const uint16_t oldval, const uint16_t newval);
169  uint32_t ticksLow(const uint32_t usecs,
170  const uint8_t tolerance = kUseDefTol,
171  const uint16_t delta = 0);
172  uint32_t ticksHigh(const uint32_t usecs,
173  const uint8_t tolerance = kUseDefTol,
174  const uint16_t delta = 0);
175  bool matchAtLeast(const uint32_t measured, const uint32_t desired,
176  const uint8_t tolerance = kUseDefTol,
177  const uint16_t delta = 0);
178  uint16_t _matchGeneric(volatile uint16_t *data_ptr,
179  uint64_t *result_bits_ptr,
180  uint8_t *result_ptr,
181  const bool use_bits,
182  const uint16_t remaining,
183  const uint16_t required,
184  const uint16_t hdrmark,
185  const uint32_t hdrspace,
186  const uint16_t onemark,
187  const uint32_t onespace,
188  const uint16_t zeromark,
189  const uint32_t zerospace,
190  const uint16_t footermark,
191  const uint32_t footerspace,
192  const bool atleast = false,
193  const uint8_t tolerance = kUseDefTol,
194  const int16_t excess = kMarkExcess,
195  const bool MSBfirst = true);
196  match_result_t matchData(volatile uint16_t *data_ptr, const uint16_t nbits,
197  const uint16_t onemark, const uint32_t onespace,
198  const uint16_t zeromark, const uint32_t zerospace,
199  const uint8_t tolerance = kUseDefTol,
200  const int16_t excess = kMarkExcess,
201  const bool MSBfirst = true,
202  const bool expectlastspace = true);
203  uint16_t matchBytes(volatile uint16_t *data_ptr, uint8_t *result_ptr,
204  const uint16_t remaining, const uint16_t nbytes,
205  const uint16_t onemark, const uint32_t onespace,
206  const uint16_t zeromark, const uint32_t zerospace,
207  const uint8_t tolerance = kUseDefTol,
208  const int16_t excess = kMarkExcess,
209  const bool MSBfirst = true,
210  const bool expectlastspace = true);
211  uint16_t matchGeneric(volatile uint16_t *data_ptr,
212  uint64_t *result_ptr,
213  const uint16_t remaining, const uint16_t nbits,
214  const uint16_t hdrmark, const uint32_t hdrspace,
215  const uint16_t onemark, const uint32_t onespace,
216  const uint16_t zeromark, const uint32_t zerospace,
217  const uint16_t footermark, const uint32_t footerspace,
218  const bool atleast = false,
219  const uint8_t tolerance = kUseDefTol,
220  const int16_t excess = kMarkExcess,
221  const bool MSBfirst = true);
222  uint16_t matchGeneric(volatile uint16_t *data_ptr, uint8_t *result_ptr,
223  const uint16_t remaining, const uint16_t nbits,
224  const uint16_t hdrmark, const uint32_t hdrspace,
225  const uint16_t onemark, const uint32_t onespace,
226  const uint16_t zeromark, const uint32_t zerospace,
227  const uint16_t footermark,
228  const uint32_t footerspace,
229  const bool atleast = false,
230  const uint8_t tolerance = kUseDefTol,
231  const int16_t excess = kMarkExcess,
232  const bool MSBfirst = true);
233  uint16_t matchGenericConstBitTime(volatile uint16_t *data_ptr,
234  uint64_t *result_ptr,
235  const uint16_t remaining,
236  const uint16_t nbits,
237  const uint16_t hdrmark,
238  const uint32_t hdrspace,
239  const uint16_t one,
240  const uint32_t zero,
241  const uint16_t footermark,
242  const uint32_t footerspace,
243  const bool atleast = false,
244  const uint8_t tolerance = kUseDefTol,
245  const int16_t excess = kMarkExcess,
246  const bool MSBfirst = true);
247  uint16_t matchManchesterData(volatile const uint16_t *data_ptr,
248  uint64_t *result_ptr,
249  const uint16_t remaining,
250  const uint16_t nbits,
251  const uint16_t half_period,
252  const uint16_t starting_balance = 0,
253  const uint8_t tolerance = kUseDefTol,
254  const int16_t excess = kMarkExcess,
255  const bool MSBfirst = true,
256  const bool GEThomas = true);
257  uint16_t matchManchester(volatile const uint16_t *data_ptr,
258  uint64_t *result_ptr,
259  const uint16_t remaining,
260  const uint16_t nbits,
261  const uint16_t hdrmark,
262  const uint32_t hdrspace,
263  const uint16_t clock_period,
264  const uint16_t footermark,
265  const uint32_t footerspace,
266  const bool atleast = false,
267  const uint8_t tolerance = kUseDefTol,
268  const int16_t excess = kMarkExcess,
269  const bool MSBfirst = true,
270  const bool GEThomas = true);
271  void crudeNoiseFilter(decode_results *results, const uint16_t floor = 0);
272  bool decodeHash(decode_results *results);
273 #if DECODE_VOLTAS
274  bool decodeVoltas(decode_results *results,
275  uint16_t offset = kStartOffset,
276  const uint16_t nbits = kVoltasBits,
277  const bool strict = true);
278 #endif // DECODE_VOLTAS
279 #if (DECODE_NEC || DECODE_SHERWOOD || DECODE_AIWA_RC_T501 || DECODE_SANYO)
280  bool decodeNEC(decode_results *results, uint16_t offset = kStartOffset,
281  const uint16_t nbits = kNECBits, const bool strict = true);
282 #endif
283 #if DECODE_ARGO
284  bool decodeArgo(decode_results *results, uint16_t offset = kStartOffset,
285  const uint16_t nbits = kArgoBits, const bool strict = true);
286 #endif // DECODE_ARGO
287 #if DECODE_SONY
288  bool decodeSony(decode_results *results, uint16_t offset = kStartOffset,
289  const uint16_t nbits = kSonyMinBits,
290  const bool strict = false);
291 #endif
292 #if DECODE_SANYO
293  // DISABLED due to poor quality.
294  // bool decodeSanyo(decode_results *results, uint16_t offset = kStartOffset,
295  // uint16_t nbits = kSanyoSA8650BBits,
296  // bool strict = false);
297  bool decodeSanyoLC7461(decode_results *results,
298  uint16_t offset = kStartOffset,
299  const uint16_t nbits = kSanyoLC7461Bits,
300  const bool strict = true);
301 #endif
302 #if DECODE_SANYO_AC
303  bool decodeSanyoAc(decode_results *results,
304  uint16_t offset = kStartOffset,
305  const uint16_t nbits = kSanyoAcBits,
306  const bool strict = true);
307 #endif // DECODE_SANYO_AC
308 #if DECODE_MITSUBISHI
309  bool decodeMitsubishi(decode_results *results, uint16_t offset = kStartOffset,
310  const uint16_t nbits = kMitsubishiBits,
311  const bool strict = true);
312 #endif
313 #if DECODE_MITSUBISHI2
314  bool decodeMitsubishi2(decode_results *results,
315  uint16_t offset = kStartOffset,
316  const uint16_t nbits = kMitsubishiBits,
317  const bool strict = true);
318 #endif
319 #if DECODE_MITSUBISHI_AC
320  bool decodeMitsubishiAC(decode_results *results,
321  uint16_t offset = kStartOffset,
322  const uint16_t nbits = kMitsubishiACBits,
323  const bool strict = false);
324 #endif
325 #if DECODE_MITSUBISHI136
326  bool decodeMitsubishi136(decode_results *results,
327  uint16_t offset = kStartOffset,
328  const uint16_t nbits = kMitsubishi136Bits,
329  const bool strict = true);
330 #endif
331 #if DECODE_MITSUBISHI112
332  bool decodeMitsubishi112(decode_results *results,
333  uint16_t offset = kStartOffset,
334  const uint16_t nbits = kMitsubishi112Bits,
335  const bool strict = true);
336 #endif
337 #if DECODE_MITSUBISHIHEAVY
339  uint16_t offset = kStartOffset,
340  const uint16_t nbits = kMitsubishiHeavy152Bits,
341  const bool strict = true);
342 #endif
343 #if (DECODE_RC5 || DECODE_RC6 || DECODE_LASERTAG || DECODE_MWM)
344  int16_t getRClevel(decode_results *results, uint16_t *offset, uint16_t *used,
345  uint16_t bitTime, const uint8_t tolerance = kUseDefTol,
346  const int16_t excess = kMarkExcess,
347  const uint16_t delta = 0, const uint8_t maxwidth = 3);
348 #endif
349 #if DECODE_RC5
350  bool decodeRC5(decode_results *results, uint16_t offset = kStartOffset,
351  const uint16_t nbits = kRC5XBits,
352  const bool strict = true);
353 #endif
354 #if DECODE_RC6
355  bool decodeRC6(decode_results *results, uint16_t offset = kStartOffset,
356  const uint16_t nbits = kRC6Mode0Bits,
357  const bool strict = false);
358 #endif
359 #if DECODE_RCMM
360  bool decodeRCMM(decode_results *results, uint16_t offset = kStartOffset,
361  const uint16_t nbits = kRCMMBits,
362  const bool strict = false);
363 #endif
364 #if (DECODE_PANASONIC || DECODE_DENON)
365  bool decodePanasonic(decode_results *results, uint16_t offset = kStartOffset,
366  const uint16_t nbits = kPanasonicBits,
367  const bool strict = false,
368  const uint32_t manufacturer = kPanasonicManufacturer);
369 #endif
370 #if DECODE_LG
371  bool decodeLG(decode_results *results, uint16_t offset = kStartOffset,
372  const uint16_t nbits = kLgBits,
373  const bool strict = false);
374 #endif
375 #if DECODE_INAX
376  bool decodeInax(decode_results *results, uint16_t offset = kStartOffset,
377  const uint16_t nbits = kInaxBits,
378  const bool strict = true);
379 #endif // DECODE_INAX
380 #if DECODE_JVC
381  bool decodeJVC(decode_results *results, uint16_t offset = kStartOffset,
382  const uint16_t nbits = kJvcBits,
383  const bool strict = true);
384 #endif
385 #if DECODE_SAMSUNG
386  bool decodeSAMSUNG(decode_results *results, uint16_t offset = kStartOffset,
387  const uint16_t nbits = kSamsungBits,
388  const bool strict = true);
389 #endif
390 #if DECODE_SAMSUNG
391  bool decodeSamsung36(decode_results *results, uint16_t offset = kStartOffset,
392  const uint16_t nbits = kSamsung36Bits,
393  const bool strict = true);
394 #endif
395 #if DECODE_SAMSUNG_AC
396  bool decodeSamsungAC(decode_results *results, uint16_t offset = kStartOffset,
397  const uint16_t nbits = kSamsungAcBits,
398  const bool strict = true);
399 #endif
400 #if DECODE_WHYNTER
401  bool decodeWhynter(decode_results *results, uint16_t offset = kStartOffset,
402  const uint16_t nbits = kWhynterBits,
403  const bool strict = true);
404 #endif
405 #if DECODE_COOLIX
406  bool decodeCOOLIX(decode_results *results, uint16_t offset = kStartOffset,
407  const uint16_t nbits = kCoolixBits,
408  const bool strict = true);
409 #endif
410 #if DECODE_DENON
411  bool decodeDenon(decode_results *results, uint16_t offset = kStartOffset,
412  const uint16_t nbits = kDenonBits,
413  const bool strict = true);
414 #endif
415 #if DECODE_DISH
416  bool decodeDISH(decode_results *results, uint16_t offset = kStartOffset,
417  const uint16_t nbits = kDishBits,
418  const bool strict = true);
419 #endif
420 #if (DECODE_SHARP || DECODE_DENON)
421  bool decodeSharp(decode_results *results, uint16_t offset = kStartOffset,
422  const uint16_t nbits = kSharpBits,
423  const bool strict = true, const bool expansion = true);
424 #endif
425 #if DECODE_SHARP_AC
426  bool decodeSharpAc(decode_results *results, uint16_t offset = kStartOffset,
427  const uint16_t nbits = kSharpAcBits,
428  const bool strict = true);
429 #endif
430 #if DECODE_AIWA_RC_T501
431  bool decodeAiwaRCT501(decode_results *results, uint16_t offset = kStartOffset,
432  const uint16_t nbits = kAiwaRcT501Bits,
433  const bool strict = true);
434 #endif
435 #if DECODE_NIKAI
436  bool decodeNikai(decode_results *results, uint16_t offset = kStartOffset,
437  const uint16_t nbits = kNikaiBits,
438  const bool strict = true);
439 #endif
440 #if DECODE_MAGIQUEST
441  bool decodeMagiQuest(decode_results *results, uint16_t offset = kStartOffset,
442  const uint16_t nbits = kMagiquestBits,
443  const bool strict = true);
444 #endif
445 #if DECODE_KELVINATOR
446  bool decodeKelvinator(decode_results *results, uint16_t offset = kStartOffset,
447  const uint16_t nbits = kKelvinatorBits,
448  const bool strict = true);
449 #endif
450 #if DECODE_DAIKIN
451  bool decodeDaikin(decode_results *results, uint16_t offset = kStartOffset,
452  const uint16_t nbits = kDaikinBits,
453  const bool strict = true);
454 #endif
455 #if DECODE_DAIKIN64
456  bool decodeDaikin64(decode_results *results, uint16_t offset = kStartOffset,
457  const uint16_t nbits = kDaikin64Bits,
458  const bool strict = true);
459 #endif // DECODE_DAIKIN64
460 #if DECODE_DAIKIN128
461  bool decodeDaikin128(decode_results *results, uint16_t offset = kStartOffset,
462  const uint16_t nbits = kDaikin128Bits,
463  const bool strict = true);
464 #endif // DECODE_DAIKIN128
465 #if DECODE_DAIKIN152
466  bool decodeDaikin152(decode_results *results, uint16_t offset = kStartOffset,
467  const uint16_t nbits = kDaikin152Bits,
468  const bool strict = true);
469 #endif // DECODE_DAIKIN152
470 #if DECODE_DAIKIN160
471  bool decodeDaikin160(decode_results *results, uint16_t offset = kStartOffset,
472  const uint16_t nbits = kDaikin160Bits,
473  const bool strict = true);
474 #endif // DECODE_DAIKIN160
475 #if DECODE_DAIKIN176
476  bool decodeDaikin176(decode_results *results, uint16_t offset = kStartOffset,
477  const uint16_t nbits = kDaikin176Bits,
478  const bool strict = true);
479 #endif // DECODE_DAIKIN176
480 #if DECODE_DAIKIN2
481  bool decodeDaikin2(decode_results *results, uint16_t offset = kStartOffset,
482  const uint16_t nbits = kDaikin2Bits,
483  const bool strict = true);
484 #endif
485 #if DECODE_DAIKIN216
486  bool decodeDaikin216(decode_results *results, uint16_t offset = kStartOffset,
487  const uint16_t nbits = kDaikin216Bits,
488  const bool strict = true);
489 #endif
490 #if DECODE_TOSHIBA_AC
491  bool decodeToshibaAC(decode_results *results, uint16_t offset = kStartOffset,
492  const uint16_t nbits = kToshibaACBits,
493  const bool strict = true);
494 #endif
495 #if DECODE_TROTEC
496  bool decodeTrotec(decode_results *results, uint16_t offset = kStartOffset,
497  const uint16_t nbits = kTrotecBits,
498  const bool strict = true);
499 #endif // DECODE_TROTEC
500 #if DECODE_MIDEA
501  bool decodeMidea(decode_results *results, uint16_t offset = kStartOffset,
502  const uint16_t nbits = kMideaBits,
503  const bool strict = true);
504 #endif // DECODE_MIDEA
505 #if DECODE_MIDEA24
506  bool decodeMidea24(decode_results *results, uint16_t offset = kStartOffset,
507  const uint16_t nbits = kMidea24Bits,
508  const bool strict = true);
509 #endif // DECODE_MIDEA24
510 #if DECODE_FUJITSU_AC
511  bool decodeFujitsuAC(decode_results *results, uint16_t offset = kStartOffset,
512  const uint16_t nbits = kFujitsuAcBits,
513  const bool strict = false);
514 #endif
515 #if DECODE_LASERTAG
516  bool decodeLasertag(decode_results *results, uint16_t offset = kStartOffset,
517  const uint16_t nbits = kLasertagBits,
518  const bool strict = true);
519 #endif
520 #if DECODE_MILESTAG2
521  bool decodeMilestag2(decode_results *results, uint16_t offset = kStartOffset,
522  const uint16_t nbits = kMilesTag2ShotBits,
523  const bool strict = true);
524 #endif
525 #if DECODE_CARRIER_AC
526  bool decodeCarrierAC(decode_results *results, uint16_t offset = kStartOffset,
527  const uint16_t nbits = kCarrierAcBits,
528  const bool strict = true);
529 #endif // DECODE_CARRIER_AC
530 #if DECODE_CARRIER_AC40
531  bool decodeCarrierAC40(decode_results *results,
532  uint16_t offset = kStartOffset,
533  const uint16_t nbits = kCarrierAc40Bits,
534  const bool strict = true);
535 #endif // DECODE_CARRIER_AC40
536 #if DECODE_CARRIER_AC64
537  bool decodeCarrierAC64(decode_results *results,
538  uint16_t offset = kStartOffset,
539  const uint16_t nbits = kCarrierAc64Bits,
540  const bool strict = true);
541 #endif // DECODE_CARRIER_AC64
542 #if DECODE_GOODWEATHER
543  bool decodeGoodweather(decode_results *results,
544  uint16_t offset = kStartOffset,
545  const uint16_t nbits = kGoodweatherBits,
546  const bool strict = true);
547 #endif // DECODE_GOODWEATHER
548 #if DECODE_GREE
549  bool decodeGree(decode_results *results, uint16_t offset = kStartOffset,
550  const uint16_t nbits = kGreeBits,
551  const bool strict = true);
552 #endif
553 #if (DECODE_HAIER_AC | DECODE_HAIER_AC_YRW02)
554  bool decodeHaierAC(decode_results *results, uint16_t offset = kStartOffset,
555  const uint16_t nbits = kHaierACBits,
556  const bool strict = true);
557 #endif
558 #if DECODE_HAIER_AC_YRW02
559  bool decodeHaierACYRW02(decode_results *results,
560  uint16_t offset = kStartOffset,
561  const uint16_t nbits = kHaierACYRW02Bits,
562  const bool strict = true);
563 #endif
564 #if (DECODE_HITACHI_AC || DECODE_HITACHI_AC2 || DECODE_HITACHI_AC344)
565  bool decodeHitachiAC(decode_results *results, uint16_t offset = kStartOffset,
566  const uint16_t nbits = kHitachiAcBits,
567  const bool strict = true, const bool MSBfirst = true);
568 #endif
569 #if DECODE_HITACHI_AC1
570  bool decodeHitachiAC1(decode_results *results, uint16_t offset = kStartOffset,
571  const uint16_t nbits = kHitachiAc1Bits,
572  const bool strict = true);
573 #endif
574 #if DECODE_HITACHI_AC3
575  bool decodeHitachiAc3(decode_results *results,
576  uint16_t offset = kStartOffset,
577  const uint16_t nbits = kHitachiAc3Bits,
578  const bool strict = true);
579 #endif // DECODE_HITACHI_AC3
580 #if DECODE_HITACHI_AC424
581  bool decodeHitachiAc424(decode_results *results,
582  uint16_t offset = kStartOffset,
583  const uint16_t nbits = kHitachiAc424Bits,
584  const bool strict = true);
585 #endif // DECODE_HITACHI_AC424
586 #if DECODE_GICABLE
587  bool decodeGICable(decode_results *results, uint16_t offset = kStartOffset,
588  const uint16_t nbits = kGicableBits,
589  const bool strict = true);
590 #endif
591 #if DECODE_WHIRLPOOL_AC
592  bool decodeWhirlpoolAC(decode_results *results,
593  uint16_t offset = kStartOffset,
594  const uint16_t nbits = kWhirlpoolAcBits,
595  const bool strict = true);
596 #endif
597 #if DECODE_LUTRON
598  bool decodeLutron(decode_results *results, uint16_t offset = kStartOffset,
599  const uint16_t nbits = kLutronBits,
600  const bool strict = true);
601 #endif
602 #if DECODE_ELECTRA_AC
603  bool decodeElectraAC(decode_results *results, uint16_t offset = kStartOffset,
604  const uint16_t nbits = kElectraAcBits,
605  const bool strict = true);
606 #endif
607 #if DECODE_PANASONIC_AC
608  bool decodePanasonicAC(decode_results *results,
609  uint16_t offset = kStartOffset,
610  const uint16_t nbits = kPanasonicAcBits,
611  const bool strict = true);
612 #endif // DECODE_PANASONIC_AC
613 #if DECODE_PANASONIC_AC32
614  bool decodePanasonicAC32(decode_results *results,
615  uint16_t offset = kStartOffset,
616  const uint16_t nbits = kPanasonicAc32Bits,
617  const bool strict = true);
618 #endif // DECODE_PANASONIC_AC32
619 #if DECODE_PIONEER
620  bool decodePioneer(decode_results *results, uint16_t offset = kStartOffset,
621  const uint16_t nbits = kPioneerBits,
622  const bool strict = true);
623 #endif
624 #if DECODE_MWM
625  bool decodeMWM(decode_results *results, uint16_t offset = kStartOffset,
626  const uint16_t nbits = 24,
627  const bool strict = true);
628 #endif
629 #if DECODE_VESTEL_AC
630  bool decodeVestelAc(decode_results *results, uint16_t offset = kStartOffset,
631  const uint16_t nbits = kVestelAcBits,
632  const bool strict = true);
633 #endif
634 #if DECODE_TECO
635  bool decodeTeco(decode_results *results, uint16_t offset = kStartOffset,
636  const uint16_t nbits = kTecoBits,
637  const bool strict = false);
638 #endif
639 #if DECODE_LEGOPF
640  bool decodeLegoPf(decode_results *results, uint16_t offset = kStartOffset,
641  const uint16_t nbits = kLegoPfBits,
642  const bool strict = true);
643 #endif
644 #if DECODE_NEOCLIMA
645  bool decodeNeoclima(decode_results *results, uint16_t offset = kStartOffset,
646  const uint16_t nbits = kNeoclimaBits,
647  const bool strict = true);
648 #endif // DECODE_NEOCLIMA
649 #if DECODE_AMCOR
650  bool decodeAmcor(decode_results *results, uint16_t offset = kStartOffset,
651  const uint16_t nbits = kAmcorBits,
652  const bool strict = true);
653 #endif // DECODE_AMCOR
654 #if DECODE_EPSON
655  bool decodeEpson(decode_results *results, uint16_t offset = kStartOffset,
656  const uint16_t nbits = kEpsonBits,
657  const bool strict = true);
658 #endif // DECODE_EPSON
659 #if DECODE_SYMPHONY
660  bool decodeSymphony(decode_results *results, uint16_t offset = kStartOffset,
661  const uint16_t nbits = kSymphonyBits,
662  const bool strict = true);
663 #endif // DECODE_SYMPHONY
664 #if DECODE_AIRWELL
665  bool decodeAirwell(decode_results *results, uint16_t offset = kStartOffset,
666  const uint16_t nbits = kAirwellBits,
667  const bool strict = true);
668 #endif // DECODE_AIRWELL
669 #if DECODE_DELONGHI_AC
670  bool decodeDelonghiAc(decode_results *results, uint16_t offset = kStartOffset,
671  const uint16_t nbits = kDelonghiAcBits,
672  const bool strict = true);
673 #endif // DECODE_DELONGHI_AC
674 #if DECODE_DOSHISHA
675  bool decodeDoshisha(decode_results *results, uint16_t offset = kStartOffset,
676  const uint16_t nbits = kDoshishaBits,
677  const bool strict = true);
678 #endif // DECODE_DOSHISHA
679 #if DECODE_MULTIBRACKETS
680  bool decodeMultibrackets(decode_results *results,
681  uint16_t offset = kStartOffset,
682  const uint16_t nbits = kMultibracketsBits,
683  const bool strict = true);
684 #endif // DECODE_MULTIBRACKETS
685 #if DECODE_TECHNIBEL_AC
686  bool decodeTechnibelAc(decode_results *results,
687  uint16_t offset = kStartOffset,
688  const uint16_t nbits = kTechnibelAcBits,
689  const bool strict = true);
690 #endif // DECODE_TECHNIBEL_AC
691 #if DECODE_CORONA_AC
692  bool decodeCoronaAc(decode_results *results, uint16_t offset = kStartOffset,
693  const uint16_t nbits = kCoronaAcBitsShort,
694  const bool strict = true);
695 #endif // DECODE_CORONA_AC
696 #if DECODE_ZEPEAL
697  bool decodeZepeal(decode_results *results, uint16_t offset = kStartOffset,
698  const uint16_t nbits = kZepealBits,
699  const bool strict = true);
700 #endif // DECODE_ZEPEAL
701 #if DECODE_METZ
702  bool decodeMetz(decode_results *results, uint16_t offset = kStartOffset,
703  const uint16_t nbits = kMetzBits,
704  const bool strict = true);
705 #endif // DECODE_METZ
706 #if DECODE_TRANSCOLD
707  bool decodeTranscold(decode_results *results, uint16_t offset = kStartOffset,
708  const uint16_t nbits = kTranscoldBits,
709  const bool strict = true);
710 #endif // DECODE_TRANSCOLD
711 #if DECODE_MIRAGE
712  bool decodeMirage(decode_results *results,
713  uint16_t offset = kStartOffset,
714  const uint16_t nbits = kMirageBits,
715  const bool strict = true);
716 #endif // DECODE_MIRAGE
717 #if DECODE_ELITESCREENS
718  bool decodeElitescreens(decode_results *results,
719  uint16_t offset = kStartOffset,
720  const uint16_t nbits = kEliteScreensBits,
721  const bool strict = true);
722 #endif // DECODE_ELITESCREENS
723 #if DECODE_ECOCLIM
724  bool decodeEcoclim(decode_results *results, uint16_t offset = kStartOffset,
725  const uint16_t nbits = kEcoclimBits,
726  const bool strict = true);
727 #endif // DECODE_ECOCLIM
728 #if DECODE_XMP
729  bool decodeXmp(decode_results *results, uint16_t offset = kStartOffset,
730  const uint16_t nbits = kXmpBits, const bool strict = true);
731 #endif // DECODE_XMP
732 };
733 
734 #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:1327
kDelonghiAcBits
const uint16_t kDelonghiAcBits
Definition: IRremoteESP8266.h:950
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:1024
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:974
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:1481
decode_type_t
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:792
kCarrierAcBits
const uint16_t kCarrierAcBits
Definition: IRremoteESP8266.h:915
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:1045
kSharpAcBits
const uint16_t kSharpAcBits
Definition: IRremoteESP8266.h:1086
kWhynterBits
const uint16_t kWhynterBits
Definition: IRremoteESP8266.h:1117
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:902
IRrecv::irparams_save
irparams_t * irparams_save
Definition: IRrecv.h:157
kMitsubishiACBits
const uint16_t kMitsubishiACBits
Definition: IRremoteESP8266.h:1031
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:840
IRrecv::matchMarkRange
bool matchMarkRange(const uint32_t measured, const uint32_t desired, const uint16_t range=100, const int16_t excess=kMarkExcess)
Check if we match a mark signal(measured) with the desired within a range (in uSeconds) either side o...
Definition: IRrecv.cpp:1150
kTechnibelAcBits
const uint16_t kTechnibelAcBits
Definition: IRremoteESP8266.h:952
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:307
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:1122
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:1064
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:1575
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:913
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:923
match_result_t::data
uint64_t data
Definition: IRrecv.h:85
kSamsung36Bits
const uint16_t kSamsung36Bits
Definition: IRremoteESP8266.h:1069
kMagiquestBits
const uint16_t kMagiquestBits
Definition: IRremoteESP8266.h:1016
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:412
kSanyoLC7461Bits
const uint16_t kSanyoLC7461Bits
Definition: IRremoteESP8266.h:1080
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:1112
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:537
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:967
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:965
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:1169
kSonyMinBits
const uint16_t kSonyMinBits
Definition: IRremoteESP8266.h:1093
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:931
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:991
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:1052
kMilesTag2ShotBits
const uint16_t kMilesTag2ShotBits
Definition: IRremoteESP8266.h:1124
decode_results::decode_type
decode_type_t decode_type
Definition: IRrecv.h:94
kPanasonicAcBits
const uint16_t kPanasonicAcBits
Definition: IRremoteESP8266.h:1056
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:425
kXmpBits
const uint16_t kXmpBits
Definition: IRremoteESP8266.h:1119
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:936
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:388
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:976
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:942
IRrecv::matchSpaceRange
bool matchSpaceRange(const uint32_t measured, const uint32_t desired, const uint16_t range=100, const int16_t excess=kMarkExcess)
Check if we match a space signal(measured) with the desired within a range (in uSeconds) either side ...
Definition: IRrecv.cpp:1189
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:1379
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:417
kSymphonyBits
const uint16_t kSymphonyBits
Definition: IRremoteESP8266.h:1095
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:1065
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:1017
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:1043
kDoshishaBits
const uint16_t kDoshishaBits
Definition: IRremoteESP8266.h:959
kCarrierAc40Bits
const uint16_t kCarrierAc40Bits
Definition: IRremoteESP8266.h:917
kStartOffset
const uint16_t kStartOffset
Definition: IRrecv.h:20
kAmcorBits
const uint16_t kAmcorBits
Definition: IRremoteESP8266.h:908
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:1053
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:1026
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:1057
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:1071
kUnknownThreshold
const uint16_t kUnknownThreshold
Definition: IRrecv.h:28
kMideaBits
const uint16_t kMideaBits
Definition: IRremoteESP8266.h:1019
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:1006
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:1048
kDenonBits
const uint16_t kDenonBits
Definition: IRremoteESP8266.h:954
kHaierACBits
const uint16_t kHaierACBits
Definition: IRremoteESP8266.h:982
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:1088
kZepealBits
const uint16_t kZepealBits
Definition: IRremoteESP8266.h:1120
kMidea24Bits
const uint16_t kMidea24Bits
Definition: IRremoteESP8266.h:1021
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:1050
kWhirlpoolAcBits
const uint16_t kWhirlpoolAcBits
Definition: IRremoteESP8266.h:1115
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:68
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:919
kPioneerBits
const uint16_t kPioneerBits
Definition: IRremoteESP8266.h:1060
decode_results::bits
uint16_t bits
Definition: IRrecv.h:106
kGreeBits
const uint16_t kGreeBits
Definition: IRremoteESP8266.h:979
kJvcBits
const uint16_t kJvcBits
Definition: IRremoteESP8266.h:1004
kLasertagBits
const uint16_t kLasertagBits
Definition: IRremoteESP8266.h:1008
kDaikin128Bits
const uint16_t kDaikin128Bits
Definition: IRremoteESP8266.h:939
kAiwaRcT501Bits
const uint16_t kAiwaRcT501Bits
Definition: IRremoteESP8266.h:904
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:1031
kTecoBits
const uint16_t kTecoBits
Definition: IRremoteESP8266.h:1100
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:1103
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:926
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:1130
kHitachiAcBits
const uint16_t kHitachiAcBits
Definition: IRremoteESP8266.h:988
kHitachiAc3Bits
const uint16_t kHitachiAc3Bits
Definition: IRremoteESP8266.h:995
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:502
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:431
kDishBits
const uint16_t kDishBits
Definition: IRremoteESP8266.h:957
IRrecv::compare
uint16_t compare(const uint16_t oldval, const uint16_t newval)
Compare two tick values.
Definition: IRrecv.cpp:1207
decode_results::command
uint32_t command
Definition: IRrecv.h:102
kFujitsuAcBits
const uint16_t kFujitsuAcBits
Definition: IRremoteESP8266.h:972
decode_results::value
uint64_t value
Definition: IRrecv.h:100
kArgoBits
const uint16_t kArgoBits
Definition: IRremoteESP8266.h:911
kHitachiAc2StateLength
const uint16_t kHitachiAc2StateLength
Definition: IRremoteESP8266.h:992
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:1047
kLutronBits
const uint16_t kLutronBits
Definition: IRremoteESP8266.h:1015
IRrecv::decodeXmp
bool decodeXmp(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kXmpBits, const bool strict=true)
Decode the supplied XMP packet/message. Status: BETA / Probably works.
Definition: ir_Xmp.cpp:160
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:1769
IRrecv::resume
void resume(void)
Resume collection of received IR data.
Definition: IRrecv.cpp:373
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:960
kHaierACYRW02Bits
const uint16_t kHaierACYRW02Bits
Definition: IRremoteESP8266.h:985
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:1266
kHitachiAc424Bits
const uint16_t kHitachiAc424Bits
Definition: IRremoteESP8266.h:1001
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:607
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:1010
kSharpBits
const uint16_t kSharpBits
Definition: IRremoteESP8266.h:1084
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:158
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:1662
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:438
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:1067
kVestelAcBits
const uint8_t kVestelAcBits
Definition: IRremoteESP8266.h:1118
kTranscoldBits
const uint16_t kTranscoldBits
Definition: IRremoteESP8266.h:1109
kInaxBits
const uint16_t kInaxBits
Definition: IRremoteESP8266.h:1002
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:163
kDaikin176Bits
const uint16_t kDaikin176Bits
Definition: IRremoteESP8266.h:945
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:493
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:1044
kSamsungBits
const uint16_t kSamsungBits
Definition: IRremoteESP8266.h:1068
IRrecv::_timer_num
uint8_t _timer_num
Definition: IRrecv.h:160
kDaikin64Bits
const uint16_t kDaikin64Bits
Definition: IRremoteESP8266.h:933
kPanasonicAc32Bits
const uint16_t kPanasonicAc32Bits
Definition: IRremoteESP8266.h:1059
kDaikin216Bits
const uint16_t kDaikin216Bits
Definition: IRremoteESP8266.h:948
kMitsubishi136Bits
const uint16_t kMitsubishi136Bits
Definition: IRremoteESP8266.h:1034
kSanyoAcBits
const uint16_t kSanyoAcBits
Definition: IRremoteESP8266.h:1076
kMitsubishi112Bits
const uint16_t kMitsubishi112Bits
Definition: IRremoteESP8266.h:1037
kEpsonBits
const uint16_t kEpsonBits
Definition: IRremoteESP8266.h:962
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:1228
kSpaceState
const uint8_t kSpaceState
Definition: IRrecv.h:33
kLgBits
const uint16_t kLgBits
Definition: IRremoteESP8266.h:1012
IRrecv::_validTolerance
uint8_t _validTolerance(const uint8_t percentage)
Convert the tolerance percentage into something valid.
Definition: IRrecv.cpp:1022
kHeader
const uint16_t kHeader
Definition: IRrecv.h:18
kFnvBasis32
const uint32_t kFnvBasis32
Definition: IRrecv.h:53