Go to the documentation of this file.
13 #define __STDC_LIMIT_MACROS
21 #define MS_TO_USEC(x) (x * 1000U) // Convert milli-Seconds to micro-Seconds.
38 #define RAWTICK kRawTick // Deprecated. For legacy user code support only.
48 #define TIMEOUT_MS kTimeoutMs // For legacy documentation.
117 explicit IRrecv(
const uint16_t recvpin,
const uint16_t bufsize =
kRawBuf,
119 const bool save_buffer =
false,
122 explicit IRrecv(
const uint16_t recvpin,
const uint16_t bufsize =
kRawBuf,
124 const bool save_buffer =
false);
130 uint8_t max_skip = 0, uint16_t noise_floor = 0);
138 bool match(
const uint32_t measured,
const uint32_t desired,
140 const uint16_t delta = 0);
141 bool matchMark(
const uint32_t measured,
const uint32_t desired,
144 bool matchSpace(
const uint32_t measured,
const uint32_t desired,
155 #endif // defined(ESP32)
162 uint16_t
compare(
const uint16_t oldval,
const uint16_t newval);
163 uint32_t
ticksLow(
const uint32_t usecs,
165 const uint16_t delta = 0);
168 const uint16_t delta = 0);
169 bool matchAtLeast(
const uint32_t measured,
const uint32_t desired,
171 const uint16_t delta = 0);
173 uint64_t *result_bits_ptr,
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,
189 const bool MSBfirst =
true);
191 const uint16_t onemark,
const uint32_t onespace,
192 const uint16_t zeromark,
const uint32_t zerospace,
195 const bool MSBfirst =
true);
196 uint16_t
matchBytes(
volatile uint16_t *data_ptr, uint8_t *result_ptr,
197 const uint16_t remaining,
const uint16_t nbytes,
198 const uint16_t onemark,
const uint32_t onespace,
199 const uint16_t zeromark,
const uint32_t zerospace,
202 const bool MSBfirst =
true);
204 uint64_t *result_ptr,
205 const uint16_t remaining,
const uint16_t nbits,
206 const uint16_t hdrmark,
const uint32_t hdrspace,
207 const uint16_t onemark,
const uint32_t onespace,
208 const uint16_t zeromark,
const uint32_t zerospace,
209 const uint16_t footermark,
const uint32_t footerspace,
210 const bool atleast =
false,
213 const bool MSBfirst =
true);
214 uint16_t
matchGeneric(
volatile uint16_t *data_ptr, uint8_t *result_ptr,
215 const uint16_t remaining,
const uint16_t nbits,
216 const uint16_t hdrmark,
const uint32_t hdrspace,
217 const uint16_t onemark,
const uint32_t onespace,
218 const uint16_t zeromark,
const uint32_t zerospace,
219 const uint16_t footermark,
220 const uint32_t footerspace,
221 const bool atleast =
false,
224 const bool MSBfirst =
true);
226 uint64_t *result_ptr,
227 const uint16_t remaining,
228 const uint16_t nbits,
229 const uint16_t hdrmark,
230 const uint32_t hdrspace,
233 const uint16_t footermark,
234 const uint32_t footerspace,
235 const bool atleast =
false,
238 const bool MSBfirst =
true);
240 uint64_t *result_ptr,
241 const uint16_t remaining,
242 const uint16_t nbits,
243 const uint16_t half_period,
244 const uint16_t starting_balance = 0,
247 const bool MSBfirst =
true,
248 const bool GEThomas =
true);
250 uint64_t *result_ptr,
251 const uint16_t remaining,
252 const uint16_t nbits,
253 const uint16_t hdrmark,
254 const uint32_t hdrspace,
255 const uint16_t clock_period,
256 const uint16_t footermark,
257 const uint32_t footerspace,
258 const bool atleast =
false,
261 const bool MSBfirst =
true,
262 const bool GEThomas =
true);
269 const bool strict =
true);
270 #endif // DECODE_VOLTAS
271 #if (DECODE_NEC || DECODE_SHERWOOD || DECODE_AIWA_RC_T501 || DECODE_SANYO)
273 const uint16_t nbits =
kNECBits,
const bool strict =
true);
277 const uint16_t nbits =
kArgoBits,
const bool strict =
true);
278 #endif // DECODE_ARGO
282 const bool strict =
false);
292 const bool strict =
true);
298 const bool strict =
true);
299 #endif // DECODE_SANYO_AC
300 #if DECODE_MITSUBISHI
303 const bool strict =
true);
305 #if DECODE_MITSUBISHI2
309 const bool strict =
true);
311 #if DECODE_MITSUBISHI_AC
315 const bool strict =
false);
317 #if DECODE_MITSUBISHI136
321 const bool strict =
true);
323 #if DECODE_MITSUBISHI112
327 const bool strict =
true);
329 #if DECODE_MITSUBISHIHEAVY
333 const bool strict =
true);
335 #if (DECODE_RC5 || DECODE_R6 || DECODE_LASERTAG || DECODE_MWM)
337 uint16_t bitTime,
const uint8_t tolerance =
kUseDefTol,
339 const uint16_t delta = 0,
const uint8_t maxwidth = 3);
344 const bool strict =
true);
349 const bool strict =
false);
354 const bool strict =
false);
356 #if (DECODE_PANASONIC || DECODE_DENON)
359 const bool strict =
false,
364 const uint16_t nbits =
kLgBits,
365 const bool strict =
false);
370 const bool strict =
true);
371 #endif // DECODE_INAX
375 const bool strict =
true);
380 const bool strict =
true);
385 const bool strict =
true);
387 #if DECODE_SAMSUNG_AC
390 const bool strict =
true);
395 const bool strict =
true);
400 const bool strict =
true);
405 const bool strict =
true);
410 const bool strict =
true);
412 #if (DECODE_SHARP || DECODE_DENON)
415 const bool strict =
true,
const bool expansion =
true);
420 const bool strict =
true);
422 #if DECODE_AIWA_RC_T501
425 const bool strict =
true);
430 const bool strict =
true);
435 const bool strict =
true);
437 #if DECODE_KELVINATOR
440 const bool strict =
true);
445 const bool strict =
true);
450 const bool strict =
true);
451 #endif // DECODE_DAIKIN64
455 const bool strict =
true);
456 #endif // DECODE_DAIKIN128
460 const bool strict =
true);
461 #endif // DECODE_DAIKIN152
465 const bool strict =
true);
466 #endif // DECODE_DAIKIN160
470 const bool strict =
true);
471 #endif // DECODE_DAIKIN176
475 const bool strict =
true);
480 const bool strict =
true);
482 #if DECODE_TOSHIBA_AC
485 const bool strict =
true);
490 const bool strict =
true);
491 #endif // DECODE_TROTEC
495 const bool strict =
true);
496 #endif // DECODE_MIDEA
500 const bool strict =
true);
501 #endif // DECODE_MIDEA24
502 #if DECODE_FUJITSU_AC
505 const bool strict =
false);
510 const bool strict =
true);
512 #if DECODE_CARRIER_AC
515 const bool strict =
true);
516 #endif // DECODE_CARRIER_AC
517 #if DECODE_CARRIER_AC40
521 const bool strict =
true);
522 #endif // DECODE_CARRIER_AC40
523 #if DECODE_CARRIER_AC64
527 const bool strict =
true);
528 #endif // DECODE_CARRIER_AC64
529 #if DECODE_GOODWEATHER
533 const bool strict =
true);
534 #endif // DECODE_GOODWEATHER
538 const bool strict =
true);
540 #if (DECODE_HAIER_AC | DECODE_HAIER_AC_YRW02)
543 const bool strict =
true);
545 #if DECODE_HAIER_AC_YRW02
549 const bool strict =
true);
551 #if (DECODE_HITACHI_AC || DECODE_HITACHI_AC2 || DECODE_HITACHI_AC344)
554 const bool strict =
true,
const bool MSBfirst =
true);
556 #if DECODE_HITACHI_AC1
559 const bool strict =
true);
561 #if DECODE_HITACHI_AC3
565 const bool strict =
true);
566 #endif // DECODE_HITACHI_AC3
567 #if DECODE_HITACHI_AC424
571 const bool strict =
true);
572 #endif // DECODE_HITACHI_AC424
576 const bool strict =
true);
578 #if DECODE_WHIRLPOOL_AC
582 const bool strict =
true);
587 const bool strict =
true);
589 #if DECODE_ELECTRA_AC
592 const bool strict =
true);
594 #if DECODE_PANASONIC_AC
598 const bool strict =
true);
603 const bool strict =
true);
607 const uint16_t nbits = 24,
608 const bool strict =
true);
613 const bool strict =
true);
618 const bool strict =
false);
623 const bool strict =
true);
628 const bool strict =
true);
629 #endif // DECODE_NEOCLIMA
633 const bool strict =
true);
634 #endif // DECODE_AMCOR
638 const bool strict =
true);
639 #endif // DECODE_EPSON
643 const bool strict =
true);
644 #endif // DECODE_SYMPHONY
648 const bool strict =
true);
649 #endif // DECODE_AIRWELL
650 #if DECODE_DELONGHI_AC
653 const bool strict =
true);
654 #endif // DECODE_DELONGHI_AC
658 const bool strict =
true);
659 #endif // DECODE_DOSHISHA
660 #if DECODE_MULTIBRACKETS
664 const bool strict =
true);
665 #endif // DECODE_MULTIBRACKETS
669 const bool strict =
true);
670 #endif // DECODE_CORONA_AC
674 const bool strict =
true);
675 #endif // DECODE_ZEPEAL
679 const bool strict =
true);
680 #endif // DECODE_METZ
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
const uint16_t kDelonghiAcBits
Definition: IRremoteESP8266.h:886
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:123
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
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
const uint32_t kFnvPrime32
Definition: IRrecv.h:52
bool overflow
Definition: IRrecv.h:109
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:3119
const uint16_t kGicableBits
Definition: IRremoteESP8266.h:904
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:1284
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:736
const uint16_t kCarrierAcBits
Definition: IRremoteESP8266.h:851
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
const uint16_t kMultibracketsBits
Definition: IRremoteESP8266.h:972
const uint16_t kSharpAcBits
Definition: IRremoteESP8266.h:1012
const uint16_t kWhynterBits
Definition: IRremoteESP8266.h:1041
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:274
uint8_t overflow
Definition: IRrecv.h:78
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:188
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
const uint16_t kAirwellBits
Definition: IRremoteESP8266.h:838
irparams_t * irparams_save
Definition: IRrecv.h:151
const uint16_t kMitsubishiACBits
Definition: IRremoteESP8266.h:958
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:745
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
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:548
const uint16_t kVoltasBits
Definition: IRremoteESP8266.h:1045
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:1216
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:789
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
const uint16_t kRC5XBits
Definition: IRremoteESP8266.h:990
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
uint16_t rawlen
Definition: IRrecv.h:77
const uint8_t kUseDefTol
Definition: IRrecv.h:36
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:60
Class for receiving IR messages.
Definition: IRrecv.h:114
uint16_t bufsize
Definition: IRrecv.h:73
Results returned from the decoder.
Definition: IRrecv.h:92
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:1378
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:197
const uint16_t kCoolixBits
Definition: IRremoteESP8266.h:849
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:459
const uint16_t kCoronaAcBitsShort
Definition: IRremoteESP8266.h:859
uint64_t data
Definition: IRrecv.h:85
const uint16_t kSamsung36Bits
Definition: IRremoteESP8266.h:995
const uint16_t kMagiquestBits
Definition: IRremoteESP8266.h:946
uint16_t * rawbuf
Definition: IRrecv.h:74
Information for the interrupt handler.
Definition: IRrecv.h:69
uint16_t getBufSize(void)
Obtain the maximum number of entries possible in the capture buffer. i.e. It's size.
Definition: IRrecv.cpp:319
const uint16_t kSanyoLC7461Bits
Definition: IRremoteESP8266.h:1006
bool repeat
Definition: IRrecv.h:110
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:870
const uint16_t kTrotecBits
Definition: IRremoteESP8266.h:1036
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
const uint8_t kIdleState
Definition: IRrecv.h:31
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:59
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:619
uint8_t recvpin
Definition: IRrecv.h:70
uint16_t timer
Definition: IRrecv.h:72
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:3601
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
bool success
Definition: IRrecv.h:84
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:1415
const uint16_t kElectraAcBits
Definition: IRremoteESP8266.h:897
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:1016
const uint16_t kSonyMinBits
Definition: IRremoteESP8266.h:1019
const uint8_t kStopState
Definition: IRrecv.h:34
uint16_t rawlen
Definition: IRrecv.h:108
const uint16_t kMaxTimeoutMs
Definition: IRrecv.h:49
const uint16_t kDaikin2Bits
Definition: IRremoteESP8266.h:867
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:130
const uint16_t kHitachiAc1Bits
Definition: IRremoteESP8266.h:921
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:377
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:1789
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:3208
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
const uint16_t kPanasonicBits
Definition: IRremoteESP8266.h:979
decode_type_t decode_type
Definition: IRrecv.h:94
const uint16_t kPanasonicAcBits
Definition: IRremoteESP8266.h:983
const uint64_t kRepeat
Definition: IRrecv.h:26
void setTolerance(const uint8_t percent=kTolerance)
Set the base tolerance percentage for matching incoming IR messages.
Definition: IRrecv.cpp:332
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:440
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
const uint16_t kDaikin160Bits
Definition: IRremoteESP8266.h:872
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:295
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:489
const uint16_t kGoodweatherBits
Definition: IRremoteESP8266.h:906
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
void enableIRIn(const bool pullup=false)
Set up and (re)start the IR capture mechanism.
Definition: IRrecv.cpp:228
const uint16_t kDaikin152Bits
Definition: IRremoteESP8266.h:878
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:879
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
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
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:2162
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
const uint8_t kTimeoutMs
Definition: IRrecv.h:47
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:1184
const uint8_t kMarkState
Definition: IRrecv.h:32
void setUnknownThreshold(const uint16_t length)
Set the minimum length we will consider for reporting UNKNOWN message types.
Definition: IRrecv.cpp:324
const uint16_t kSymphonyBits
Definition: IRremoteESP8266.h:1021
const uint16_t kRC6Mode0Bits
Definition: IRremoteESP8266.h:991
const uint16_t kStateSizeMax
Definition: IRrecv.h:60
Results from a data match.
Definition: IRrecv.h:83
uint8_t rcvstate
Definition: IRrecv.h:71
const uint16_t kMetzBits
Definition: IRremoteESP8266.h:947
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
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(void)
Class destructor Cleans up after the object is no longer needed. e.g. Frees up all memory used by the...
Definition: IRrecv.cpp:213
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:1454
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
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:84
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)
Match & decode the typical data section of an IR message. The data value is stored in the least signi...
Definition: IRrecv.cpp:1092
const uint16_t kMitsubishiHeavy152Bits
Definition: IRremoteESP8266.h:970
const uint16_t kDoshishaBits
Definition: IRremoteESP8266.h:893
const uint16_t kCarrierAc40Bits
Definition: IRremoteESP8266.h:853
const uint16_t kStartOffset
Definition: IRrecv.h:20
const uint16_t kAmcorBits
Definition: IRremoteESP8266.h:844
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(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:152
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:835
volatile uint16_t * rawbuf
Definition: IRrecv.h:107
const uint8_t kTolerance
Definition: IRrecv.h:35
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:156
uint16_t used
Definition: IRrecv.h:86
const uint32_t kPanasonicManufacturer
Definition: IRremoteESP8266.h:980
uint32_t address
Definition: IRrecv.h:101
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
const uint16_t kMitsubishiBits
Definition: IRremoteESP8266.h:953
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:924
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
const uint16_t kSamsungAcBits
Definition: IRremoteESP8266.h:997
const uint16_t kUnknownThreshold
Definition: IRrecv.h:28
const uint16_t kMideaBits
Definition: IRremoteESP8266.h:949
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
const uint16_t kKelvinatorBits
Definition: IRremoteESP8266.h:936
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
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:365
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:137
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:149
const uint16_t kNECBits
Definition: IRremoteESP8266.h:975
const uint16_t kDenonBits
Definition: IRremoteESP8266.h:888
const uint16_t kHaierACBits
Definition: IRremoteESP8266.h:912
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:955
const uint16_t kZepealBits
Definition: IRremoteESP8266.h:1043
const uint16_t kMidea24Bits
Definition: IRremoteESP8266.h:951
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:2563
const uint16_t kNeoclimaBits
Definition: IRremoteESP8266.h:977
const uint16_t kWhirlpoolAcBits
Definition: IRremoteESP8266.h:1039
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:723
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
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:254
const uint16_t kCarrierAc64Bits
Definition: IRremoteESP8266.h:855
const uint16_t kPioneerBits
Definition: IRremoteESP8266.h:986
uint16_t bits
Definition: IRrecv.h:106
const uint16_t kGreeBits
Definition: IRremoteESP8266.h:909
const uint16_t kJvcBits
Definition: IRremoteESP8266.h:934
const uint16_t kLasertagBits
Definition: IRremoteESP8266.h:938
const uint16_t kDaikin128Bits
Definition: IRremoteESP8266.h:875
const uint16_t kAiwaRcT501Bits
Definition: IRremoteESP8266.h:840
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:898
const uint16_t kTecoBits
Definition: IRremoteESP8266.h:1026
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
const uint16_t kToshibaACBits
Definition: IRremoteESP8266.h:1029
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
const uint16_t kDaikinBits
Definition: IRremoteESP8266.h:862
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:997
const uint16_t kHitachiAcBits
Definition: IRremoteESP8266.h:918
const uint16_t kHitachiAc3Bits
Definition: IRremoteESP8266.h:925
const uint16_t kRawBuf
Definition: IRrecv.h:25
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:409
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
uint8_t getTolerance(void)
Get the base tolerance percentage for matching incoming IR messages.
Definition: IRrecv.cpp:338
const uint16_t kDishBits
Definition: IRremoteESP8266.h:891
uint16_t compare(const uint16_t oldval, const uint16_t newval)
Compare two tick values.
Definition: IRrecv.cpp:1034
uint32_t command
Definition: IRrecv.h:102
const uint16_t kFujitsuAcBits
Definition: IRremoteESP8266.h:902
uint64_t value
Definition: IRrecv.h:100
const uint16_t kArgoBits
Definition: IRremoteESP8266.h:847
const uint16_t kHitachiAc2StateLength
Definition: IRremoteESP8266.h:922
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:194
const uint16_t kFooter
Definition: IRrecv.h:19
const uint16_t kNikaiBits
Definition: IRremoteESP8266.h:974
const uint16_t kLutronBits
Definition: IRremoteESP8266.h:945
uint8_t timeout
Definition: IRrecv.h:79
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:89
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
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
const uint16_t kRawTick
Definition: IRrecv.h:37
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:1572
void resume(void)
Resume collection of received IR data.
Definition: IRrecv.cpp:280
const uint16_t kHaierACYRW02Bits
Definition: IRremoteESP8266.h:915
const uint16_t kHitachiAc424Bits
Definition: IRremoteESP8266.h:931
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:642
const uint16_t kMarkExcess
Definition: IRrecv.h:24
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
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:154
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:650
const uint16_t kLegoPfBits
Definition: IRremoteESP8266.h:940
const uint16_t kSharpBits
Definition: IRremoteESP8266.h:1010
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:429
uint8_t _tolerance
Definition: IRrecv.h:152
const uint8_t kDefaultESP32Timer
Definition: IRrecv.h:56
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:1465
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
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:345
bool decodeHitachiAC1(decode_results *results, uint16_t offset=kStartOffset, const uint16_t nbits=kHitachiAc1Bits, const bool strict=true)
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:120
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
const uint16_t kRCMMBits
Definition: IRremoteESP8266.h:993
const uint8_t kVestelAcBits
Definition: IRremoteESP8266.h:1042
const uint16_t kInaxBits
Definition: IRremoteESP8266.h:932
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:1113
uint16_t _unknown_threshold
Definition: IRrecv.h:157
const uint16_t kDaikin176Bits
Definition: IRremoteESP8266.h:881
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:531
void disableIRIn(void)
Stop collection of any received IR data. Disable any timers and interrupts.
Definition: IRrecv.cpp:264
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:983
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:472
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:911
const uint16_t kSamsungBits
Definition: IRremoteESP8266.h:994
uint8_t _timer_num
Definition: IRrecv.h:154
const uint16_t kDaikin64Bits
Definition: IRremoteESP8266.h:869
const uint16_t kDaikin216Bits
Definition: IRremoteESP8266.h:884
const uint16_t kMitsubishi136Bits
Definition: IRremoteESP8266.h:961
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)
Match & decode the typical data section of an IR message. The bytes are stored at result_ptr....
Definition: IRrecv.cpp:1134
const uint16_t kSanyoAcBits
Definition: IRremoteESP8266.h:1002
const uint16_t kMitsubishi112Bits
Definition: IRremoteESP8266.h:964
const uint16_t kEpsonBits
Definition: IRremoteESP8266.h:894
uint8_t state[kStateSizeMax]
Definition: IRrecv.h:104
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:1055
const uint8_t kSpaceState
Definition: IRrecv.h:33
const uint16_t kLgBits
Definition: IRremoteESP8266.h:942
uint8_t _validTolerance(const uint8_t percentage)
Convert the tolerance percentage into something valid.
Definition: IRrecv.cpp:889
const uint16_t kHeader
Definition: IRrecv.h:18
const uint32_t kFnvBasis32
Definition: IRrecv.h:53