IRremote
IRremoteInt.h
Go to the documentation of this file.
1 
33 #ifndef _IR_REMOTE_INT_H
34 #define _IR_REMOTE_INT_H
35 
36 #include <Arduino.h>
37 
38 #define MARK 1
39 #define SPACE 0
40 
41 #if defined(PARTICLE)
42 #define F_CPU 16000000 // definition for a board for which F_CPU is not defined
43 #endif
44 #if defined(F_CPU) // F_CPU is used to generate the receive send timings in some CPU's
45 #define CLOCKS_PER_MICRO (F_CPU / MICROS_IN_ONE_SECOND)
46 #endif
47 
48 /*
49  * For backwards compatibility
50  */
51 #if defined(SYSCLOCK) // allow for processor specific code to define F_CPU
52 #undef F_CPU
53 #define F_CPU SYSCLOCK // Clock frequency to be used for timing.
54 #endif
55 
56 //#define DEBUG // Activate this for lots of lovely debug output from the IRremote core and all protocol decoders.
57 //#define TRACE // Activate this for more debug output.
58 
68 #if !defined(RAW_BUFFER_LENGTH)
69 # if (defined(RAMEND) && RAMEND <= 0x2FF) || (defined(RAMSIZE) && RAMSIZE < 0x2FF)
70 // for RAMsize <= 512 bytes
71 #define RAW_BUFFER_LENGTH 100
72 # elif (defined(RAMEND) && RAMEND <= 0x8FF) || (defined(RAMSIZE) && RAMSIZE < 0x8FF)
73 // for RAMsize <= 2k
74 #define RAW_BUFFER_LENGTH 200
75 # else
76 // For undefined or bigger RAMsize
77 #define RAW_BUFFER_LENGTH 750 // The value for air condition remotes.
78 # endif
79 #endif
80 #if RAW_BUFFER_LENGTH % 2 == 1
81 #error RAW_BUFFER_LENGTH must be even, since the array consists of space / mark pairs.
82 #endif
83 
84 #if RAW_BUFFER_LENGTH <= 254 // saves around 75 bytes program memory and speeds up ISR
85 typedef uint_fast8_t IRRawlenType;
86 #else
87 typedef unsigned int IRRawlenType;
88 #endif
89 
90 /*
91  * Use 8 bit buffer for IR timing in 50 ticks units.
92  * It is save to use 8 bit if RECORD_GAP_TICKS < 256, since any value greater 255 is interpreted as frame gap of 12750 us.
93  * The default for frame gap is currently 8000!
94  * But if we assume that for most protocols the frame gap is way greater than the biggest mark or space duration,
95  * we can choose to use a 8 bit buffer even for frame gaps up to 200000 us.
96  * This enables the use of 8 bit buffer even for more some protocols like B&O or LG air conditioner etc.
97  */
98 #if RECORD_GAP_TICKS <= 400 // Corresponds to RECORD_GAP_MICROS of 200000. A value of 255 is foolproof, but we assume, that the frame gap is way greater than the biggest mark or space duration.
99 typedef uint8_t IRRawbufType; // all timings up to the gap fit into 8 bit.
100 #else
101 typedef uint16_t IRRawbufType; // The gap does not fit into 8 bit ticks value. This must not be a reason to use 16 bit for buffer, but it is at least save.
102 #endif
103 
104 #if (__INT_WIDTH__ < 32)
105 typedef uint32_t IRRawDataType;
106 #define BITS_IN_RAW_DATA_TYPE 32
107 #else
108 typedef uint64_t IRRawDataType;
109 #define BITS_IN_RAW_DATA_TYPE 64
110 #endif
111 
112 /**********************************************************
113  * Declarations for the receiver Interrupt Service Routine
114  **********************************************************/
115 // ISR State-Machine : Receiver States
116 #define IR_REC_STATE_IDLE 0 // Counting the gap time and waiting for the start bit to arrive
117 #define IR_REC_STATE_MARK 1 // A mark was received and we are counting the duration of it.
118 #define IR_REC_STATE_SPACE 2 // A space was received and we are counting the duration of it. If space is too long, we assume end of frame.
119 #define IR_REC_STATE_STOP 3 // Stopped until set to IR_REC_STATE_IDLE which can only be done by resume()
120 
126  // The fields are ordered to reduce memory overflow caused by struct-padding
127  volatile uint8_t StateForISR;
128  uint_fast8_t IRReceivePin;
129 #if defined(__AVR__)
130  volatile uint8_t *IRReceivePinPortInputRegister;
131  uint8_t IRReceivePinMask;
132 #endif
133  volatile uint_fast16_t TickCounterForISR;
134 #if !defined(IR_REMOTE_DISABLE_RECEIVE_COMPLETE_CALLBACK)
136 #endif
139  uint16_t initialGapTicks;
141 };
142 
143 extern unsigned long sMicrosAtLastStopTimer; // Used to adjust TickCounterForISR with uncounted ticks between stopTimer() and restartTimer()
144 
145 #define DECODED_RAW_DATA_ARRAY_SIZE ((((RAW_BUFFER_LENGTH - 2) - 1) / (2 * BITS_IN_RAW_DATA_TYPE)) + 1) // The -2 is for initial gap + stop bit mark, 128 mark + spaces for 64 bit.
146 
150 struct IRData {
152  uint16_t address;
153  uint16_t command;
154  uint16_t extra;
156 #if defined(DECODE_DISTANCE_WIDTH)
157  // This replaces the address, command, extra and decodedRawData in case of protocol == PULSE_DISTANCE or -rather seldom- protocol == PULSE_WIDTH.
158  DistanceWidthTimingInfoStruct DistanceWidthTimingInfo; // 12 bytes
159  IRRawDataType decodedRawDataArray[DECODED_RAW_DATA_ARRAY_SIZE];
160 #endif
161  uint16_t numberOfBits;
162  uint8_t flags;
163 
164  /*
165  * These 2 variables allow to call resume() directly after decode.
166  * After resume(), irparams.initialGapTicks and irparams.rawlen are
167  * the first variables, which are overwritten by the next received frame.
168  * since 4.3.0.
169  */
171  uint16_t initialGapTicks;
172 };
173 
174 /*
175  * Debug directives
176  * Outputs with IR_DEBUG_PRINT can only be activated by defining DEBUG!
177  * If LOCAL_DEBUG is defined in one file, all outputs with IR_DEBUG_PRINT are still suppressed.
178  */
179 #if defined(DEBUG) || defined(TRACE)
180 # define IR_DEBUG_PRINT(...) Serial.print(__VA_ARGS__)
181 # define IR_DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__)
182 #else
183 
186 # define IR_DEBUG_PRINT(...) void()
187 
190 # define IR_DEBUG_PRINTLN(...) void()
191 #endif
192 
193 #if defined(TRACE)
194 # define IR_TRACE_PRINT(...) Serial.print(__VA_ARGS__)
195 # define IR_TRACE_PRINTLN(...) Serial.println(__VA_ARGS__)
196 #else
197 # define IR_TRACE_PRINT(...) void()
198 # define IR_TRACE_PRINTLN(...) void()
199 #endif
200 
201 /****************************************************
202  * RECEIVING
203  ****************************************************/
204 
209  decode_type_t decode_type; // deprecated, moved to decodedIRData.protocol ///< UNKNOWN, NEC, SONY, RC5, ...
210  uint16_t address; // Used by Panasonic & Sharp [16-bits]
211  uint32_t value; // deprecated, moved to decodedIRData.decodedRawData ///< Decoded value / command [max 32-bits]
212  uint8_t bits; // deprecated, moved to decodedIRData.numberOfBits ///< Number of bits in decoded value
213  uint16_t magnitude; // deprecated, moved to decodedIRData.extra ///< Used by MagiQuest [16-bits]
214  bool isRepeat; // deprecated, moved to decodedIRData.flags ///< True if repeat of value is detected
215 
216 // next 3 values are copies of irparams_struct values - see above
217  uint16_t *rawbuf; // deprecated, moved to irparams.rawbuf ///< Raw intervals in 50uS ticks
218  uint_fast8_t rawlen; // deprecated, moved to irparams.rawlen ///< Number of records in rawbuf
219  bool overflow; // deprecated, moved to decodedIRData.flags ///< true if IR raw code too long
220 };
221 
225 #define USE_DEFAULT_FEEDBACK_LED_PIN 0 // we need it here
226 class IRrecv {
227 public:
228 
229  IRrecv();
230 #if defined(SUPPORT_MULTIPLE_RECEIVER_INSTANCES)
231  IRrecv(uint_fast8_t aReceivePin);
232  IRrecv(uint_fast8_t aReceivePin, uint_fast8_t aFeedbackLEDPin);
233 #else
234  IRrecv(
235  uint_fast8_t aReceivePin)
236  __attribute__ ((deprecated ("Please use the default IRrecv instance \"IrReceiver\" and IrReceiver.begin(), and not your own IRrecv instance.")));
237  IRrecv(uint_fast8_t aReceivePin,
238  uint_fast8_t aFeedbackLEDPin)
239  __attribute__ ((deprecated ("Please use the default IRrecv instance \"IrReceiver\" and IrReceiver.begin(), and not your own IRrecv instance..")));
240 #endif
241  void setReceivePin(uint_fast8_t aReceivePinNumber);
242 #if !defined(IR_REMOTE_DISABLE_RECEIVE_COMPLETE_CALLBACK)
243  void registerReceiveCompleteCallback(void (*aReceiveCompleteCallbackFunction)(void));
244 #endif
246 
247  /*
248  * Stream like API
249  */
250  void begin(uint_fast8_t aReceivePin, bool aEnableLEDFeedback = false, uint_fast8_t aFeedbackLEDPin =
252  void start();
253  void enableIRIn(); // alias for start
254  void restartTimer();
255  void restartTimer(uint32_t aMicrosecondsToAddToGapCounter);
256  void restartTimerWithTicksToAdd(uint16_t aTicksToAddToGapCounter);
257  void restartAfterSend();
258 
259  bool available();
260  IRData* read(); // returns decoded data
261  // write is a method of class IRsend below
262  // size_t write(IRData *aIRSendData, int_fast8_t aNumberOfRepeats = NO_REPEATS);
263  void stopTimer();
264  void stop();
265  void disableIRIn(); // alias for stop
266  void end(); // alias for stop
267 
268  bool isIdle();
269 
270  /*
271  * The main functions
272  */
273  bool decode(); // Check if available and try to decode
274  void resume(); // Enable receiving of the next value
275 
276  /*
277  * Useful info and print functions
278  */
279  void printIRResultMinimal(Print *aSerial);
280  void printIRDuration(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks);
281  void printIRResultRawFormatted(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks = true);
282  void printIRResultAsCVariables(Print *aSerial);
285  uint8_t getMaximumTicksFromRawData(bool aSearchSpaceInsteadOfMark);
286  uint32_t getTotalDurationOfRawData();
287 
288  /*
289  * Next 4 functions are also available as non member functions
290  */
291  bool printIRResultShort(Print *aSerial, bool aPrintRepeatGap, bool aCheckForRecordGapsMicros)
292  __attribute__ ((deprecated ("Remove second parameter, it is not supported any more.")));
293  bool printIRResultShort(Print *aSerial, bool aCheckForRecordGapsMicros = true);
294  void printDistanceWidthTimingInfo(Print *aSerial, DistanceWidthTimingInfoStruct *aDistanceWidthTimingInfo);
295  void printIRSendUsage(Print *aSerial);
296 #if defined(__AVR__)
297  const __FlashStringHelper* getProtocolString();
298 #else
299  const char* getProtocolString();
300 #endif
301  static void printActiveIRProtocols(Print *aSerial);
302 
303  void printIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks = true, bool aDoCompensate = true);
304  void compensateAndPrintIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks = true);
305  void compensateAndPrintIRResultAsPronto(Print *aSerial, uint16_t frequency = 38000U);
306 
307  /*
308  * Store the data for further processing
309  */
310  void compensateAndStoreIRResultInArray(uint8_t *aArrayPtr);
311  size_t compensateAndStorePronto(String *aString, uint16_t frequency = 38000U);
312 
313  /*
314  * The main decoding functions used by the individual decoders
315  */
316 #if defined(USE_STRICT_DECODER)
317  bool
318 #else
319  void
320 #endif
321  decodePulseDistanceWidthData(PulseDistanceWidthProtocolConstants *aProtocolConstants, uint_fast8_t aNumberOfBits,
322  IRRawlenType aStartOffset = 3);
323 
325  uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset = 3);
326 
327  void decodePulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneMicros,
328  bool aIsPulseWidthProtocol, bool aMSBfirst);
329 
330  void decodeWithThresholdPulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset,
331  uint16_t aOneThresholdMicros, bool aIsPulseWidthProtocol, bool aMSBfirst);
332 
333  void decodePulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneMarkMicros,
334  uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, bool aMSBfirst);
335 
336  void decodePulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneMarkMicros,
337  uint16_t aZeroMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroSpaceMicros, bool aMSBfirst)
338  __attribute__ ((deprecated ("Please use decodePulseDistanceWidthData() with 6 parameters.")));
339 
340  bool decodeStrictPulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneMarkMicros,
341  uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros, bool aMSBfirst);
342 
343  bool decodeBiPhaseData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint_fast8_t aStartClockCount,
344  uint_fast8_t aValueOfSpaceToMarkTransition, uint16_t aBiphaseTimeUnit);
345 
346  void initBiphaselevel(uint_fast8_t aRCDecodeRawbuffOffset, uint16_t aBiphaseTimeUnit);
347  uint_fast8_t getBiphaselevel();
348 
349  /*
350  * All standard (decode address + command) protocol decoders
351  */
352  bool decodeBangOlufsen();
353  bool decodeBoseWave();
354  bool decodeDenon();
355  bool decodeFAST();
356  bool decodeJVC();
357  bool decodeKaseikyo();
359  bool decodeLG();
360  bool decodeMagiQuest(); // not completely standard
361  bool decodeNEC();
362  bool decodeRC5();
363  bool decodeRC6();
364  bool decodeSamsung();
365  bool decodeSharp(); // redirected to decodeDenon()
366  bool decodeSony();
367  bool decodeWhynter();
368 
369  bool decodeDistanceWidth();
370 
371  bool decodeHash();
372 
373  // Template function :-)
374  bool decodeShuzu();
375 
376  /*
377  * Old functions
378  */
379  bool decodeDenonOld(decode_results *aResults);
380  bool decodeJVCMSB(decode_results *aResults);
381  bool decodeLGMSB(decode_results *aResults);
382  bool decodeNECMSB(decode_results *aResults);
384  bool decodeSonyMSB(decode_results *aResults);
385  bool decodeSAMSUNG(decode_results *aResults);
386  bool decodeHashOld(decode_results *aResults);
387 
388  bool decode_old(decode_results *aResults);
389 
390  bool decode(
391  decode_results *aResults)
392  __attribute__ ((deprecated ("Please use IrReceiver.decode() without a parameter and IrReceiver.decodedIRData.<fieldname> .")));
393 
394  // for backward compatibility. Now in IRFeedbackLED.hpp
395  void blink13(uint8_t aEnableLEDFeedback)
396  __attribute__ ((deprecated ("Please use setLEDFeedback() or enableLEDFeedback() / disableLEDFeedback().")));
397 
398  /*
399  * Internal functions
400  */
401  void initDecodedIRData();
402  uint_fast8_t compare(uint16_t oldval, uint16_t newval);
403  bool checkHeader(PulseDistanceWidthProtocolConstants *aProtocolConstants);
404  bool checkHeader_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM);
405  void checkForRepeatSpaceTicksAndSetFlag(uint16_t aMaximumRepeatSpaceTicks);
406  bool checkForRecordGapsMicros(Print *aSerial);
407 
409  IRData decodedIRData; // Decoded IR data for the application
410 
411  // Last decoded IR data for repeat detection and to fill in JVC, LG, NEC repeat values. Parity for Denon autorepeat
415 #if defined(DECODE_DISTANCE_WIDTH)
416  IRRawDataType lastDecodedRawData;
417 #endif
418 
419  uint8_t repeatCount; // Used e.g. for Denon decode for autorepeat decoding.
420 };
421 
422 void printIRResultShort(Print *aSerial, IRData *aIRDataPtr, bool aPrintRepeatGap)
423  __attribute__ ((deprecated ("Remove last parameter, it is not supported any more.")));
424 void printIRResultShort(Print *aSerial, IRData *aIRDataPtr)
425  __attribute__ ((deprecated ("Use member function or printIRDataShort() instead.")));
426 ;
427 // A static function to be able to print send or copied received data.
428 void printIRDataShort(Print *aSerial, IRData *aIRDataPtr);
429 
430 extern uint_fast8_t sBiphaseDecodeRawbuffOffset;
431 
432 /*
433  * Mark & Space matching functions
434  */
435 bool matchTicks(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros);
436 bool matchTicks(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros, int16_t aCompensationMicrosForTicks);
437 bool matchMark(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros);
438 bool matchSpace(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros);
439 
440 /*
441  * Old function names
442  */
443 bool MATCH(uint16_t measured, uint16_t desired);
444 bool MATCH_MARK(uint16_t measured_ticks, uint16_t desired_us);
445 bool MATCH_SPACE(uint16_t measured_ticks, uint16_t desired_us);
446 
447 int getMarkExcessMicros();
448 
449 void printActiveIRProtocols(Print *aSerial);
450 
451 /****************************************************
452  * Feedback LED related functions
453  ****************************************************/
454 #define DISABLE_LED_FEEDBACK false
455 #define ENABLE_LED_FEEDBACK true
456 //#define USE_DEFAULT_FEEDBACK_LED_PIN 0 // repeated definition for info
457 void setLEDFeedback(bool aEnableLEDFeedback); // Direct replacement for blink13()
458 void setLEDFeedbackPin(uint8_t aFeedbackLEDPin);
459 void setFeedbackLED(bool aSwitchLedOn);
460 void enableLEDFeedback();
461 constexpr auto enableLEDFeedbackForReceive = enableLEDFeedback; // alias for enableLEDFeedback
462 void disableLEDFeedback();
463 constexpr auto disableLEDFeedbackForReceive = disableLEDFeedback; // alias for enableLEDFeedback
466 
467 void setBlinkPin(uint8_t aFeedbackLEDPin) __attribute__ ((deprecated ("Please use setLEDFeedback()."))); // deprecated
468 
469 /*
470  * Pulse parms are ((X*50)-MARK_EXCESS_MICROS) for the Mark and ((X*50)+MARK_EXCESS_MICROS) for the Space.
471  * First MARK is the one after the long gap
472  * Pulse parameters in microseconds
473  */
474 #if !defined(TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING_PERCENT)
475 #define TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING_PERCENT 25 // Relative tolerance (in percent) for matchTicks(), matchMark() and matchSpace() functions used for protocol decoding.
476 #endif
477 
478 #define TICKS(us) ((us)/MICROS_PER_TICK) // (us)/50
479 #if MICROS_PER_TICK == 50 && TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING_PERCENT == 25 // Defaults
480 #define TICKS_LOW(us) ((us)/67 ) // =(us * 0.75 /MICROS_PER_TICK), 67 = MICROS_PER_TICK / ((100-25)/100) = (MICROS_PER_TICK * 100) / (100-25)
481 #define TICKS_HIGH(us) (((us)/40) + 1) // =(us * 1,25 /MICROS_PER_TICK), 40 = MICROS_PER_TICK / ((100+25)/100) = (MICROS_PER_TICK * 100) / (100+25)
482 #else
483 
484 //#define LTOL (1.0 - (TOLERANCE/100.))
485 #define LTOL (100 - TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING_PERCENT)
486 
487 //#define UTOL (1.0 + (TOLERANCE/100.))
488 #define UTOL (100 + TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING_PERCENT)
489 #define TICKS_LOW(us) ((uint16_t ) ((long) (us) * LTOL / (MICROS_PER_TICK * 100) ))
490 #define TICKS_HIGH(us) ((uint16_t ) ((long) (us) * UTOL / (MICROS_PER_TICK * 100) + 1))
491 #endif
492 
493 /*
494  * The receiver instance
495  */
496 extern IRrecv IrReceiver;
497 
498 /*
499  * The receiver interrupt handler for timer interrupt
500  */
502 
503 /****************************************************
504  * SENDING
505  ****************************************************/
506 
510 #define NO_REPEATS 0
511 #define SEND_REPEAT_COMMAND true
512 
513 
516 class IRsend {
517 public:
518  IRsend();
519 
520  /*
521  * IR_SEND_PIN is defined or fixed by timer, value of IR_SEND_PIN is then "DeterminedByTimer"
522  */
523 #if defined(IR_SEND_PIN)
524  void begin();
525  // The default parameter allowed to specify IrSender.begin(7); without errors, if IR_SEND_PIN was defined. But the semantics is not the one the user expect.
526  void begin(uint_fast8_t aFeedbackLEDPin);
527 #else
528  IRsend(uint_fast8_t aSendPin);
529  void begin(uint_fast8_t aSendPin);
530  void setSendPin(uint_fast8_t aSendPin); // required if we use IRsend() as constructor
531 #endif
532  void begin(uint_fast8_t aSendPin, uint_fast8_t aFeedbackLEDPin); // aFeedbackLEDPin is by default USE_DEFAULT_FEEDBACK_LED_PIN
533  void begin(uint_fast8_t aSendPin, bool aEnableLEDFeedback, uint_fast8_t aFeedbackLEDPin)
534 # if !defined (DOXYGEN)
535  __attribute__ ((deprecated ("Use begin(aSendPin, aFeedbackLEDPin) instead.")));
536 # endif
537 
538  size_t write(IRData *aIRSendData, int_fast8_t aNumberOfRepeats = NO_REPEATS);
539  size_t write(decode_type_t aProtocol, uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats = NO_REPEATS);
540 
541  void enableIROut(uint_fast8_t aFrequencyKHz);
542 #if defined(SEND_PWM_BY_TIMER)
543  void enableHighFrequencyIROut(uint_fast16_t aFrequencyKHz); // Used for Bang&Olufsen
544 #endif
545 
546  /*
547  * Array functions
548  */
549  void sendPulseDistanceWidthFromArray(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros,
550  uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros,
551  IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis,
552  int_fast8_t aNumberOfRepeats);
553  void sendPulseDistanceWidthFromPGMArray(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros,
554  uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros,
555  IRRawDataType const *aDecodedRawDataPGMArray, uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis,
556  int_fast8_t aNumberOfRepeats);
558  IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
560  IRRawDataType const *aDecodedRawDataPGMArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
562  IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
564  IRRawDataType const *aDecodedRawDataPGMArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
565 
566  void sendPulseDistanceWidthFromArray(uint_fast8_t aFrequencyKHz, DistanceWidthTimingInfoStruct *aDistanceWidthTimingInfo,
567  IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis,
568  int_fast8_t aNumberOfRepeats);
569  void sendPulseDistanceWidthFromArray_P(uint_fast8_t aFrequencyKHz,
570  DistanceWidthTimingInfoStruct const *aDistanceWidthTimingInfoPGM, IRRawDataType *aDecodedRawDataArray,
571  uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis, int_fast8_t aNumberOfRepeats);
572 
574  uint_fast8_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
575  void sendPulseDistanceWidth_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType aData,
576  uint_fast8_t aNumberOfBits, int_fast8_t aNumberOfRepeats);
578  uint_fast8_t aNumberOfBits);
579  void sendPulseDistanceWidthData_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType aData,
580  uint_fast8_t aNumberOfBits);
581  void sendPulseDistanceWidth(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros,
582  uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros,
583  IRRawDataType aData, uint_fast8_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis,
584  int_fast8_t aNumberOfRepeats, void (*aSpecialSendRepeatFunction)() = nullptr);
585  void sendPulseDistanceWidth(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros,
586  uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros,
587  IRRawDataType aData, uint_fast8_t aNumberOfBits, bool aMSBFirst, bool aSendStopBit, uint16_t aRepeatPeriodMillis,
588  int_fast8_t aNumberOfRepeats, void (*aSpecialSendRepeatFunction)() = nullptr)
589  __attribute__ ((deprecated ("Since version 4.1.0 parameter aSendStopBit is not longer required.")));
590  void sendPulseDistanceWidthData(uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros,
591  uint16_t aZeroSpaceMicros, IRRawDataType aData, uint_fast8_t aNumberOfBits, uint8_t aFlags);
592  void sendBiphaseData(uint16_t aBiphaseTimeUnit, uint32_t aData, uint_fast8_t aNumberOfBits);
593 
594  void mark(uint16_t aMarkMicros);
595  static void space(uint16_t aSpaceMicros);
596  void IRLedOff();
597 
598 // 8 Bit array
599  void sendRaw(const uint8_t aBufferWithTicks[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz);
600  void sendRaw_P(const uint8_t aBufferWithTicks[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz);
601 
602 // 16 Bit array
603  void sendRaw(const uint16_t aBufferWithMicroseconds[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz);
604  void sendRaw_P(const uint16_t aBufferWithMicroseconds[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz);
605 
606  /*
607  * New send functions
608  */
609  void sendBangOlufsen(uint16_t aHeader, uint8_t aData, int_fast8_t aNumberOfRepeats = NO_REPEATS,
610  int8_t aNumberOfHeaderBits = 8);
611  void sendBangOlufsenDataLink(uint32_t aHeader, uint8_t aData, int_fast8_t aNumberOfRepeats = NO_REPEATS,
612  int8_t aNumberOfHeaderBits = 8);
613  void sendBangOlufsenRaw(uint32_t aRawData, int_fast8_t aBits, bool aBackToBack = false);
614  void sendBangOlufsenRawDataLink(uint64_t aRawData, int_fast8_t aBits, bool aBackToBack = false,
615  bool aUseDatalinkTiming = false);
616  void sendBoseWave(uint8_t aCommand, int_fast8_t aNumberOfRepeats = NO_REPEATS);
617  void sendDenon(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint8_t aSendSharpFrameMarker = 0);
618  void sendDenonRaw(uint16_t aRawData, int_fast8_t aNumberOfRepeats = NO_REPEATS)
619 #if !defined (DOXYGEN)
620  __attribute__ ((deprecated ("Please use sendDenon(aAddress, aCommand, aNumberOfRepeats).")));
621 #endif
622  void sendFAST(uint8_t aCommand, int_fast8_t aNumberOfRepeats);
623  void sendJVC(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats);
624 
625  void sendLG2Repeat();
626  uint32_t computeLGRawDataAndChecksum(uint8_t aAddress, uint16_t aCommand);
627  void sendLG(uint8_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
628  void sendLG2(uint8_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
629  void sendLGRaw(uint32_t aRawData, int_fast8_t aNumberOfRepeats = NO_REPEATS);
630 
631  void sendNECRepeat();
632  uint32_t computeNECRawDataAndChecksum(uint16_t aAddress, uint16_t aCommand);
633  void sendNEC(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
634  void sendNEC2(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
635  void sendNECRaw(uint32_t aRawData, int_fast8_t aNumberOfRepeats = NO_REPEATS);
636  // NEC variants
637  void sendOnkyo(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
638  void sendApple(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats);
639 
640  void sendKaseikyo(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats, uint16_t aVendorCode); // LSB first
641  void sendPanasonic(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats); // LSB first
642  void sendKaseikyo_Denon(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats); // LSB first
643  void sendKaseikyo_Mitsubishi(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats); // LSB first
644  void sendKaseikyo_Sharp(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats); // LSB first
645  void sendKaseikyo_JVC(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats); // LSB first
646 
647  void sendRC5(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, bool aEnableAutomaticToggle = true);
648  void sendRC6(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, bool aEnableAutomaticToggle = true);
649  void sendRC6A(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint16_t aCustomer,
650  bool aEnableAutomaticToggle = true);
651  void sendSamsungLGRepeat();
652  void sendSamsung(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
653  void sendSamsung16BitAddressAnd8BitCommand(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats);
654  void sendSamsung16BitAddressAndCommand(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
655  void sendSamsung48(uint16_t aAddress, uint32_t aCommand, int_fast8_t aNumberOfRepeats);
656  void sendSamsungLG(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats);
657  void sendSharp(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats); // redirected to sendDenon
658  void sendSharp2(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats); // redirected to sendDenon
659  void sendSony(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint8_t numberOfBits = 12); // SIRCS_12_PROTOCOL
660 
661  void sendLegoPowerFunctions(uint8_t aChannel, uint8_t tCommand, uint8_t aMode, bool aDoSend5Times = true);
662  void sendLegoPowerFunctions(uint16_t aRawData, bool aDoSend5Times = true);
663  void sendLegoPowerFunctions(uint16_t aRawData, uint8_t aChannel, bool aDoSend5Times = true);
664 
665  void sendMagiQuest(uint32_t aWandId, uint16_t aMagnitude);
666 
667  void sendPronto(const __FlashStringHelper *str, int_fast8_t aNumberOfRepeats = NO_REPEATS);
668  void sendPronto(const char *prontoHexString, int_fast8_t aNumberOfRepeats = NO_REPEATS);
669  void sendPronto(const uint16_t *data, uint16_t length, int_fast8_t aNumberOfRepeats = NO_REPEATS);
670 
671 #if defined(__AVR__)
672  void sendPronto_PF(uint_farptr_t str, int_fast8_t aNumberOfRepeats = NO_REPEATS);
673  void sendPronto_P(const char *str, int_fast8_t aNumberOfRepeats);
674 #endif
675 
676 // Template protocol :-)
677  void sendShuzu(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats);
678 
679  /*
680  * OLD send functions
681  */
682  void sendDenon(unsigned long data,
683  int nbits)
684  __attribute__ ((deprecated ("The function sendDenon(data, nbits) is deprecated and may not work as expected! Use sendDenonRaw(data, NumberOfRepeats) or better sendDenon(Address, Command, NumberOfRepeats).")));
685  void sendDish(uint16_t aData);
686  void sendJVC(unsigned long data, int nbits,
687  bool repeat)
688  __attribute__ ((deprecated ("This old function sends MSB first! Please use sendJVC(aAddress, aCommand, aNumberOfRepeats)."))) {
689  sendJVCMSB(data, nbits, repeat);
690  }
691  void sendJVCMSB(unsigned long data, int nbits, bool repeat = false);
692 
693  void sendLG(unsigned long data,
694  int nbits)
695  __attribute__ ((deprecated ("The function sendLG(data, nbits) is deprecated and may not work as expected! Use sendLGRaw(data, NumberOfRepeats) or better sendLG(Address, Command, NumberOfRepeats).")));
696 
697  void sendNEC(uint32_t aRawData,
698  uint8_t nbits)
699  __attribute__ ((deprecated ("This old function sends MSB first! Please use sendNECMSB() or sendNEC(aAddress, aCommand, aNumberOfRepeats)."))) {
700  sendNECMSB(aRawData, nbits);
701  }
702  void sendNECMSB(uint32_t data, uint8_t nbits, bool repeat = false);
703  void sendRC5(uint32_t data, uint8_t nbits);
704  void sendRC5ext(uint8_t addr, uint8_t cmd, bool toggle);
705  void sendRC6Raw(uint32_t data, uint8_t nbits);
706  void sendRC6(uint32_t data, uint8_t nbits) __attribute__ ((deprecated ("Please use sendRC6Raw().")));
707  void sendRC6Raw(uint64_t data, uint8_t nbits);
708  void sendRC6(uint64_t data, uint8_t nbits) __attribute__ ((deprecated ("Please use sendRC6Raw().")));
709 
710  void sendSharpRaw(unsigned long data, int nbits);
711  void sendSharp(uint16_t address, uint16_t command);
712  void sendSAMSUNG(unsigned long data, int nbits);
713  __attribute__ ((deprecated ("This old function sends MSB first! Please use sendSamsung().")));
714  void sendSamsungMSB(unsigned long data, int nbits);
715  void sendSonyMSB(unsigned long data, int nbits);
716  void sendSony(unsigned long data,
717  int nbits)
718  __attribute__ ((deprecated ("This old function sends MSB first! Please use sendSony(aAddress, aCommand, aNumberOfRepeats).")));
719 
720  void sendWhynter(uint32_t aData, int_fast8_t aNumberOfRepeats);
721  void sendVelux(uint8_t aCommand, uint8_t aMotorNumber, uint8_t aMotorSet, uint16_t aSecurityCode, uint8_t aCRC,
722  int_fast8_t aNumberOfRepeats);
723  void sendVelux(uint32_t aData, int_fast8_t aNumberOfRepeats);
724 
725 #if !defined(IR_SEND_PIN)
726  uint8_t sendPin;
727 #endif
729  uint16_t periodOnTimeMicros; // compensated with PULSE_CORRECTION_NANOS for duration of digitalWrite. Around 8 microseconds for 38 kHz.
730  uint16_t getPulseCorrectionNanos();
731 
732  static void customDelayMicroseconds(unsigned long aMicroseconds);
733 };
734 
735 /*
736  * The sender instance
737  */
738 extern IRsend IrSender;
739 
740 void sendNECSpecialRepeat();
741 void sendLG2SpecialRepeat();
743 
744 #endif // _IR_REMOTE_INT_H
IRData::address
uint16_t address
Decoded address, Distance protocol (tMarkTicksLong (if tMarkTicksLong == 0, then tMarkTicksShort) << ...
Definition: IRremoteInt.h:152
IRrecv::decodeHash
bool decodeHash()
Decodes an arbitrary IR code to a 32-bit value.
Definition: IRReceive.hpp:1236
IRsend::sendShuzu
void sendShuzu(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
Definition: ir_Template.hpp:134
IRsend::sendLGRaw
void sendLGRaw(uint32_t aRawData, int_fast8_t aNumberOfRepeats=NO_REPEATS)
Here you can put your raw data, even one with "wrong" checksum.
Definition: ir_LG.hpp:280
decode_results
Results returned from old decoders !!!deprecated!!!
Definition: IRremoteInt.h:208
decode_results::rawbuf
uint16_t * rawbuf
Definition: IRremoteInt.h:219
IRsend::sendApple
void sendApple(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
Apple: Send NEC with fixed 16 bit Apple address 0x87EE.
Definition: ir_NEC.hpp:212
IRsend::sendMagiQuest
void sendMagiQuest(uint32_t aWandId, uint16_t aMagnitude)
Definition: ir_MagiQuest.hpp:122
IRrecv::decodePulseDistanceWidthData
void decodePulseDistanceWidthData(PulseDistanceWidthProtocolConstants *aProtocolConstants, uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset=3)
Decode pulse distance protocols for PulseDistanceWidthProtocolConstants.
Definition: IRReceive.hpp:1081
IRsend::sendSamsungMSB
void sendSamsungMSB(unsigned long data, int nbits)
Definition: ir_Samsung.hpp:402
setLEDFeedbackPin
void setLEDFeedbackPin(uint8_t aFeedbackLEDPin)
Definition: IRFeedbackLED.hpp:53
setFeedbackLED
void setFeedbackLED(bool aSwitchLedOn)
Flash LED while receiving or sending IR data.
Definition: IRFeedbackLED.hpp:82
IRsend::sendDish
void sendDish(uint16_t aData)
Definition: ir_Others.hpp:64
IRsend::sendNECRaw
void sendNECRaw(uint32_t aRawData, int_fast8_t aNumberOfRepeats=NO_REPEATS)
Sends NEC protocol.
Definition: ir_NEC.hpp:230
IRrecv::stop
void stop()
Disables the timer for IR reception.
Definition: IRReceive.hpp:468
IRrecv::lastDecodedProtocol
decode_type_t lastDecodedProtocol
Definition: IRremoteInt.h:412
IRData::numberOfBits
uint16_t numberOfBits
Number of bits received for data (address + command + parity) - to determine protocol length if diffe...
Definition: IRremoteInt.h:161
IRrecv::printDistanceWidthTimingInfo
void printDistanceWidthTimingInfo(Print *aSerial, DistanceWidthTimingInfoStruct *aDistanceWidthTimingInfo)
Definition: IRReceive.hpp:1903
IRsend::aNumberOfRepeats
void int_fast8_t aNumberOfRepeats
Definition: IRremoteInt.h:538
IRrecv::decodeBiPhaseData
bool decodeBiPhaseData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint_fast8_t aStartClockCount, uint_fast8_t aValueOfSpaceToMarkTransition, uint16_t aBiphaseTimeUnit)
IRsend::sendPin
uint8_t sendPin
Definition: IRremoteInt.h:726
IRsend::sendJVC
void sendJVC(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
The JVC protocol repeats by skipping the header mark and space -> this leads to a poor repeat detecti...
Definition: ir_JVC.hpp:93
IRrecv::disableIRIn
void disableIRIn()
Alias for stop().
Definition: IRReceive.hpp:482
IRsend::sendKaseikyo_Sharp
void sendKaseikyo_Sharp(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats)
Stub using Kaseikyo with SHARP_VENDOR_ID_CODE.
Definition: ir_Kaseikyo.hpp:185
setBlinkPin
void setBlinkPin(uint8_t aFeedbackLEDPin) __attribute__((deprecated("Please use setLEDFeedback().")))
Old deprecated function name for setLEDFeedback()
Definition: IRFeedbackLED.hpp:147
IRrecv::decodePulseDistanceWidthData_P
void decodePulseDistanceWidthData_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset=3)
Definition: IRReceive.hpp:1117
IRRawlenType
unsigned int IRRawlenType
Definition: IRremoteInt.h:87
IRrecv::checkHeader_P
bool checkHeader_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM)
Definition: IRReceive.hpp:1309
IRrecv::enableIRIn
void enableIRIn()
Alias for start().
Definition: IRReceive.hpp:418
enableLEDFeedback
void enableLEDFeedback()
Definition: IRFeedbackLED.hpp:67
IRsend::sendBangOlufsenRaw
void sendBangOlufsenRaw(uint32_t aRawData, int_fast8_t aBits, bool aBackToBack=false)
Definition: ir_BangOlufsen.hpp:171
IRsend::setSendPin
void setSendPin(uint_fast8_t aSendPin)
Definition: IRSend.hpp:111
IRrecv::checkForRecordGapsMicros
bool checkForRecordGapsMicros(Print *aSerial)
Checks if protocol is not detected and detected space between two transmissions is smaller than known...
Definition: IRReceive.hpp:1513
IRsend::sendBoseWave
void sendBoseWave(uint8_t aCommand, int_fast8_t aNumberOfRepeats=NO_REPEATS)
Definition: ir_BoseWave.hpp:57
IRsend::sendSony
void sendSony(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint8_t numberOfBits=12)
Definition: ir_Sony.hpp:103
IRrecv::compensateAndStorePronto
size_t compensateAndStorePronto(String *aString, uint16_t frequency=38000U)
Definition: ir_Pronto.hpp:329
IRrecv::registerReceiveCompleteCallback
void registerReceiveCompleteCallback(void(*aReceiveCompleteCallbackFunction)(void))
Sets the function to call if a complete protocol frame has arrived.
Definition: IRReceive.hpp:374
IRsend::sendSharp2
void sendSharp2(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
Definition: ir_Denon.hpp:121
IRrecv
Definition: IRremoteInt.h:226
NO_REPEATS
#define NO_REPEATS
Just for better readability of code.
Definition: IRremoteInt.h:510
IRsend::sendPulseDistanceWidth_P
void sendPulseDistanceWidth_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType aData, uint_fast8_t aNumberOfBits, int_fast8_t aNumberOfRepeats)
Definition: IRSend.hpp:1075
IRsend::sendRC6Raw
void sendRC6Raw(uint32_t data, uint8_t nbits)
Definition: ir_RC5_RC6.hpp:289
IRsend::mark
void mark(uint16_t aMarkMicros)
Sends an IR mark for the specified number of microseconds.
Definition: IRSend.hpp:1153
IRrecv::decodeDistanceWidth
bool decodeDistanceWidth()
Definition: ir_DistanceWidthProtocol.hpp:202
IRsend::sendSamsungLGRepeat
void sendSamsungLGRepeat()
Send repeat Repeat commands should be sent in a 110 ms raster.
Definition: ir_Samsung.hpp:121
disableLEDFeedbackForReceive
constexpr auto disableLEDFeedbackForReceive
Definition: IRremoteInt.h:463
IRsend::sendSamsung48
void sendSamsung48(uint16_t aAddress, uint32_t aCommand, int_fast8_t aNumberOfRepeats)
Here we send Samsung48 We send 2 x (8 bit command and then ~command)
Definition: ir_Samsung.hpp:237
IRsend::sendRC6
void sendRC6(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, bool aEnableAutomaticToggle=true)
Assemble raw data for RC6 from parameters and toggle state and send We do not wait for the minimal tr...
Definition: ir_RC5_RC6.hpp:355
decode_results::overflow
bool overflow
Definition: IRremoteInt.h:221
decode_type_t
decode_type_t
An enum consisting of all supported formats.
Definition: IRProtocol.h:93
IRrecv::printIRResultRawFormatted
void printIRResultRawFormatted(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks=true)
Dump out the timings in IrReceiver.irparams.rawbuf[] array 8 values per line.
Definition: IRReceive.hpp:2167
IRsend::sendPulseDistanceWidthFromPGMArray
void sendPulseDistanceWidthFromPGMArray(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros, uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros, IRRawDataType const *aDecodedRawDataPGMArray, uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis, int_fast8_t aNumberOfRepeats)
Definition: IRSend.hpp:720
IRrecv::more
bool it is not supported any more
Definition: IRremoteInt.h:292
IRrecv::restartAfterSend
void restartAfterSend()
Restarts receiver after send.
Definition: IRReceive.hpp:459
IRsend::customDelayMicroseconds
static void customDelayMicroseconds(unsigned long aMicroseconds)
Custom delay function that circumvents Arduino's delayMicroseconds 16 bit limit and is (mostly) not e...
Definition: IRSend.hpp:1372
IRsend::sendPulseDistanceWidth
void sendPulseDistanceWidth(PulseDistanceWidthProtocolConstants *aProtocolConstants, IRRawDataType aData, uint_fast8_t aNumberOfBits, int_fast8_t aNumberOfRepeats)
Sends PulseDistance frames and repeats.
Definition: IRSend.hpp:833
IRrecv::IRrecv
IRrecv()
Instantiate the IRrecv class.
Definition: IRReceive.hpp:76
sBiphaseDecodeRawbuffOffset
uint_fast8_t sBiphaseDecodeRawbuffOffset
Definition: IRReceive.hpp:1129
IRsend::IRsend
IRsend()
Definition: IRSend.hpp:71
IRrecv::decodeSharp
bool decodeSharp()
Definition: ir_Denon.hpp:165
IRrecv::blink13
void blink13(uint8_t aEnableLEDFeedback) __attribute__((deprecated("Please use setLEDFeedback() or enableLEDFeedback() / disableLEDFeedback().")))
Old deprecated function name for setLEDFeedback() or enableLEDFeedback() / disableLEDFeedback()
Definition: IRFeedbackLED.hpp:141
sMicrosAtLastStopTimer
unsigned long sMicrosAtLastStopTimer
Definition: IRReceive.hpp:70
IRrecv::printIRResultShort
bool printIRResultShort(Print *aSerial, bool aPrintRepeatGap, bool aCheckForRecordGapsMicros) __attribute__((deprecated("Remove second parameter
Function to print values and flags of IrReceiver.decodedIRData in one line.
Definition: IRReceive.hpp:1622
IRsend::sendDenonRaw
void sendDenonRaw(uint16_t aRawData, int_fast8_t aNumberOfRepeats=NO_REPEATS) void sendFAST(uint8_t aCommand
Definition: ir_Denon.hpp:261
IRsend::__attribute__
__attribute__((deprecated("This old function sends MSB first! Please use sendSamsung().")))
decode_results::bits
uint8_t bits
Definition: IRremoteInt.h:214
decode_results::decode_type
decode_type_t decode_type
Definition: IRremoteInt.h:211
IRData::decodedRawData
IRRawDataType decodedRawData
Up to 32/64 bit decoded raw data, to be used for send<protocol>Raw functions.
Definition: IRremoteInt.h:155
matchTicks
bool matchTicks(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros)
Match function WITHOUT compensating for marks exceeded or spaces shortened by demodulator hardware.
Definition: IRReceive.hpp:1348
irparams_struct::ReceiveCompleteCallbackFunction
void(* ReceiveCompleteCallbackFunction)(void)
The function to call if a protocol message has arrived, i.e. StateForISR changed to IR_REC_STATE_STOP...
Definition: IRremoteInt.h:135
IRrecv::begin
void begin(uint_fast8_t aReceivePin, bool aEnableLEDFeedback=false, uint_fast8_t aFeedbackLEDPin=USE_DEFAULT_FEEDBACK_LED_PIN)
Initializes the receive and feedback pin.
Definition: IRReceive.hpp:316
IRsend::sendRaw_P
void sendRaw_P(const uint8_t aBufferWithTicks[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz)
New function using an 8 byte tick (50 us) timing array in FLASH to save program memory Raw data start...
Definition: IRSend.hpp:476
IRrecv::checkForRepeatSpaceTicksAndSetFlag
void checkForRepeatSpaceTicksAndSetFlag(uint16_t aMaximumRepeatSpaceTicks)
Definition: IRReceive.hpp:1333
IRrecv::decodeSonyMSB
bool decodeSonyMSB(decode_results *aResults)
Definition: ir_Sony.hpp:148
IRsend
Main class for sending IR signals.
Definition: IRremoteInt.h:516
IRrecv::decodeSony
bool decodeSony()
Definition: ir_Sony.hpp:109
irparams_struct
This struct contains the data and control used for receiver functions and the ISR (interrupt service ...
Definition: IRremoteInt.h:125
matchSpace
bool matchSpace(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros)
Compensate for spaces shortened by demodulator hardware.
Definition: IRReceive.hpp:1459
IRrecv::compensateAndPrintIRResultAsPronto
void compensateAndPrintIRResultAsPronto(Print *aSerial, uint16_t frequency=38000U)
Print the result (second argument) as Pronto Hex on the Print supplied as argument.
Definition: ir_Pronto.hpp:261
sendLG2SpecialRepeat
void sendLG2SpecialRepeat()
Static function for sending special repeat frame.
Definition: ir_LG.hpp:140
IRrecv::read
IRData * read()
Returns pointer to IrReceiver.decodedIRData if IR receiver data is available, else nullptr.
Definition: IRReceive.hpp:550
IRrecv::getBiphaselevel
uint_fast8_t getBiphaselevel()
Gets the level of one time interval (aBiphaseTimeUnit) at a time from the raw buffer.
Definition: IRReceive.hpp:1156
IRrecv::decodeLGMSB
bool decodeLGMSB(decode_results *aResults)
Definition: ir_LG.hpp:284
IRsend::sendDenon
void sendDenon(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint8_t aSendSharpFrameMarker=0)
Definition: ir_Denon.hpp:131
IRsend::sendSamsung
void sendSamsung(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
Here we send Samsung32 If we get a command < 0x100, we send command and then ~command If we get an ad...
Definition: ir_Samsung.hpp:175
enableLEDFeedbackForSend
void enableLEDFeedbackForSend()
decode_results::value
uint32_t value
Definition: IRremoteInt.h:213
DistanceWidthTimingInfoStruct
Definition: IRProtocol.h:134
MATCH_SPACE
bool MATCH_SPACE(uint16_t measured_ticks, uint16_t desired_us)
Definition: IRReceive.hpp:1497
IRrecv::decodeSAMSUNG
bool decodeSAMSUNG(decode_results *aResults)
Definition: ir_Samsung.hpp:364
IRrecv::decodeBangOlufsen
bool decodeBangOlufsen()
Definition: ir_BangOlufsen.hpp:298
IRrecv::decodeLegoPowerFunctions
bool decodeLegoPowerFunctions()
Definition: ir_Lego.hpp:150
irparams_struct::OverflowFlag
bool OverflowFlag
Raw buffer OverflowFlag occurred.
Definition: IRremoteInt.h:137
IRsend::sendRaw
void sendRaw(const uint8_t aBufferWithTicks[], uint_fast16_t aLengthOfBuffer, uint_fast8_t aIRFrequencyKilohertz)
Sends an 8 byte tick timing array to save program memory.
Definition: IRSend.hpp:422
IRrecv::decodeFAST
bool decodeFAST()
Definition: ir_FAST.hpp:98
PulseDistanceWidthProtocolConstants
Definition: IRProtocol.h:161
IRsend::sendPulseDistanceWidthData_P
void sendPulseDistanceWidthData_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType aData, uint_fast8_t aNumberOfBits)
Definition: IRSend.hpp:586
DECODED_RAW_DATA_ARRAY_SIZE
#define DECODED_RAW_DATA_ARRAY_SIZE
Definition: IRremoteInt.h:145
IRrecv::decodePanasonicMSB
bool decodePanasonicMSB(decode_results *aResults)
IRrecv::getProtocolString
const char * getProtocolString()
Definition: IRReceive.hpp:2392
irparams_struct::rawlen
IRRawlenType rawlen
counter of entries in rawbuf
Definition: IRremoteInt.h:138
IRrecv::decodedIRData
IRData decodedIRData
Definition: IRremoteInt.h:409
IRData
Data structure for the user application, available as decodedIRData.
Definition: IRremoteInt.h:150
IRsend::sendLG2Repeat
void sendLG2Repeat()
Definition: ir_LG.hpp:129
printIRResultShort
void printIRResultShort(Print *aSerial, IRData *aIRDataPtr, bool aPrintRepeatGap) __attribute__((deprecated("Remove last parameter
IRsend::sendSamsung16BitAddressAndCommand
void sendSamsung16BitAddressAndCommand(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
Maybe no one needs it in the wild...
Definition: ir_Samsung.hpp:223
IRrecv::compensateAndPrintIRResultAsCArray
void compensateAndPrintIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks=true)
Dump out the IrReceiver.irparams.rawbuf[] to be used as C definition for sendRaw().
Definition: IRReceive.hpp:2266
IRrecv::decodeSamsung
bool decodeSamsung()
Definition: ir_Samsung.hpp:273
IRData::flags
uint8_t flags
IRDATA_FLAGS_IS_REPEAT, IRDATA_FLAGS_WAS_OVERFLOW etc. See IRDATA_FLAGS_* definitions above.
Definition: IRremoteInt.h:162
IRsend::sendSamsungLG
void sendSamsungLG(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
Definition: ir_Samsung.hpp:149
disableLEDFeedbackForSend
void disableLEDFeedbackForSend()
IRsend::sendRC5ext
void sendRC5ext(uint8_t addr, uint8_t cmd, bool toggle)
Definition: ir_RC5_RC6.hpp:604
IRrecv::printIRResultMinimal
void printIRResultMinimal(Print *aSerial)
Function to print protocol number, address, command, raw data and repeat flag of IrReceiver....
Definition: IRReceive.hpp:2104
sendSamsungLGSpecialRepeat
void sendSamsungLGSpecialRepeat()
Like above, but implemented as a static function Used for sending special repeat frame.
Definition: ir_Samsung.hpp:135
disableLEDFeedback
void disableLEDFeedback()
Definition: IRFeedbackLED.hpp:70
IRrecv::instance
and not your own IRrecv instance
Definition: IRremoteInt.h:236
IRsend::sendBangOlufsenDataLink
void sendBangOlufsenDataLink(uint32_t aHeader, uint8_t aData, int_fast8_t aNumberOfRepeats=NO_REPEATS, int8_t aNumberOfHeaderBits=8)
Definition: ir_BangOlufsen.hpp:162
MATCH
bool MATCH(uint16_t measured, uint16_t desired)
Definition: IRReceive.hpp:1403
IRsend::sendSharp
void sendSharp(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
Definition: ir_Denon.hpp:116
IRrecv::checkHeader
bool checkHeader(PulseDistanceWidthProtocolConstants *aProtocolConstants)
Definition: IRReceive.hpp:1290
IRsend::sendPulseDistanceWidthFromPGMArray_P
void sendPulseDistanceWidthFromPGMArray_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType const *aDecodedRawDataPGMArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats)
Definition: IRSend.hpp:1065
IRsend::sendKaseikyo
void sendKaseikyo(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats, uint16_t aVendorCode)
Address can be interpreted as sub-device << 4 + 4 bit device.
Definition: ir_Kaseikyo.hpp:132
IRrecv::compare
uint_fast8_t compare(uint16_t oldval, uint16_t newval)
Compare two (tick) values for Hash decoder Use a tolerance of 20% to enable e.g.
Definition: IRReceive.hpp:1209
IRsend::begin
void begin(uint_fast8_t aSendPin)
Initializes the send pin and enable LED feedback with board specific FEEDBACK_LED_ON() and FEEDBACK_L...
Definition: IRSend.hpp:107
IRsend::sendNECMSB
void sendNECMSB(uint32_t data, uint8_t nbits, bool repeat=false)
With Send sendNECMSB() you can send your old 32 bit codes.
Definition: ir_NEC.hpp:407
IRsend::sendKaseikyo_JVC
void sendKaseikyo_JVC(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats)
Stub using Kaseikyo with JVC_VENDOR_ID_CODE.
Definition: ir_Kaseikyo.hpp:192
IRrecv::printActiveIRProtocols
static void printActiveIRProtocols(Print *aSerial)
Definition: IRReceive.hpp:1538
printActiveIRProtocols
void printActiveIRProtocols(Print *aSerial)
Definition: IRReceive.hpp:1546
IRsend::sendNEC
void sendNEC(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
NEC Send frame and special repeats There is NO delay after the last sent repeat!
Definition: ir_NEC.hpp:182
IRsend::NumberOfRepeats
void nbits is deprecated and may not work as expected ! Use NumberOfRepeats
Definition: IRremoteInt.h:684
IRsend::computeLGRawDataAndChecksum
uint32_t computeLGRawDataAndChecksum(uint8_t aAddress, uint16_t aCommand)
Definition: ir_LG.hpp:147
IRsend::periodOnTimeMicros
uint16_t periodOnTimeMicros
Definition: IRremoteInt.h:729
IRData::command
uint16_t command
Decoded command, Distance protocol (tMarkTicksShort << 8) | tSpaceTicksShort.
Definition: IRremoteInt.h:153
IRrecv::printIRDuration
void printIRDuration(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks)
Definition: IRReceive.hpp:2145
IRReceiveTimerInterruptHandler
void IRReceiveTimerInterruptHandler()
Definition: IRReceive.hpp:282
IRrecv::getMaximumTicksFromRawData
uint8_t getMaximumTicksFromRawData(bool aSearchSpaceInsteadOfMark)
Definition: IRReceive.hpp:1945
IRrecv::restartTimer
void restartTimer()
Definition: IRReceive.hpp:402
IRrecv::restartTimerWithTicksToAdd
void restartTimerWithTicksToAdd(uint16_t aTicksToAddToGapCounter)
Configures the timer and the state machine for IR reception.
Definition: IRReceive.hpp:444
IRrecv::isIdle
bool isIdle()
Returns status of reception.
Definition: IRReceive.hpp:496
IRsend::sendPanasonic
void sendPanasonic(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats)
Stub using Kaseikyo with PANASONIC_VENDOR_ID_CODE.
Definition: ir_Kaseikyo.hpp:164
more
void it is not supported any more
Definition: IRremoteInt.h:423
getMarkExcessMicros
int getMarkExcessMicros()
Getter function for MARK_EXCESS_MICROS.
Definition: IRReceive.hpp:1504
matchMark
bool matchMark(uint16_t aMeasuredTicks, uint16_t aMatchValueMicros)
Compensate for marks exceeded by demodulator hardware.
Definition: IRReceive.hpp:1411
MATCH_MARK
bool MATCH_MARK(uint16_t measured_ticks, uint16_t desired_us)
Definition: IRReceive.hpp:1451
IRsend::getPulseCorrectionNanos
uint16_t getPulseCorrectionNanos()
Definition: IRSend.hpp:1461
IRsend::sendVelux
void sendVelux(uint8_t aCommand, uint8_t aMotorNumber, uint8_t aMotorSet, uint16_t aSecurityCode, uint8_t aCRC, int_fast8_t aNumberOfRepeats)
Definition: ir_Others.hpp:156
irparams_struct::TickCounterForISR
volatile uint_fast16_t TickCounterForISR
Counts 50uS ticks. The value is copied into the rawbuf array on every transition. Counting is indepen...
Definition: IRremoteInt.h:133
irparams_struct::StateForISR
volatile uint8_t StateForISR
State Machine state.
Definition: IRremoteInt.h:127
IRrecv::setReceivePin
void setReceivePin(uint_fast8_t aReceivePinNumber)
Sets / changes the receiver pin number.
Definition: IRReceive.hpp:336
irparams_struct::rawbuf
IRRawbufType rawbuf[RAW_BUFFER_LENGTH]
raw data / tick counts per mark/space. With 8 bit we can only store up to 12.7 ms....
Definition: IRremoteInt.h:140
IRrecv::decodeDenonOld
bool decodeDenonOld(decode_results *aResults)
Definition: ir_Denon.hpp:292
IRRawDataType
uint32_t IRRawDataType
Definition: IRremoteInt.h:105
IRrecv::start
void start()
Start the receiving process.
Definition: IRReceive.hpp:384
IRsend::computeNECRawDataAndChecksum
uint32_t computeNECRawDataAndChecksum(uint16_t aAddress, uint16_t aCommand)
Convert 16 bit address and 16 bit command to 32 bit NECRaw data If we get a command < 0x100,...
Definition: ir_NEC.hpp:159
IRrecv::initDecodedIRData
void initDecodedIRData()
Is internally called by decode before calling decoders.
Definition: IRReceive.hpp:515
IRrecv::irparams
irparams_struct irparams
Definition: IRremoteInt.h:408
IRsend::sendPronto
void sendPronto(const __FlashStringHelper *str, int_fast8_t aNumberOfRepeats=NO_REPEATS)
Definition: ir_Pronto.hpp:195
IRsend::sendPulseDistanceWidthFromArray_P
void sendPulseDistanceWidthFromArray_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, int_fast8_t aNumberOfRepeats)
Definition: IRSend.hpp:1056
IRrecv::lastDecodedCommand
uint16_t lastDecodedCommand
Definition: IRremoteInt.h:414
decode_results::address
uint16_t address
Definition: IRremoteInt.h:212
IrSender
IRsend IrSender
Definition: IRSend.hpp:69
IRsend::sendSamsung16BitAddressAnd8BitCommand
void sendSamsung16BitAddressAnd8BitCommand(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
Maybe no one needs it in the wild...
Definition: ir_Samsung.hpp:206
IRsend::sendJVCMSB
void sendJVCMSB(unsigned long data, int nbits, bool repeat=false)
With Send sendJVCMSB() you can send your old 32 bit codes.
Definition: ir_JVC.hpp:234
IRrecv::decodeRC5
bool decodeRC5()
Try to decode data as RC5 protocol.
Definition: ir_RC5_RC6.hpp:158
IRrecv::getMaximumMarkTicksFromRawData
uint8_t getMaximumMarkTicksFromRawData()
Definition: IRReceive.hpp:1921
IRrecv::decodeBoseWave
bool decodeBoseWave()
Definition: ir_BoseWave.hpp:64
IRsend::sendSonyMSB
void sendSonyMSB(unsigned long data, int nbits)
Old version with MSB first data.
Definition: ir_Sony.hpp:210
setLEDFeedback
void setLEDFeedback(bool aEnableLEDFeedback)
Definition: IRFeedbackLED.hpp:60
IRrecv::available
bool available()
Returns true if IR receiver data is available.
Definition: IRReceive.hpp:543
IRData::extra
uint16_t extra
Contains upper 16 bit of Magiquest WandID, Kaseikyo unknown vendor ID and Distance protocol (HeaderMa...
Definition: IRremoteInt.h:154
IRrecv::printIRResultAsCVariables
void printIRResultAsCVariables(Print *aSerial)
Print results as C variables to be used for sendXXX() uint16_t address = 0x44; uint16_t command = 0x1...
Definition: IRReceive.hpp:2353
IRsend::periodTimeMicros
uint16_t periodTimeMicros
Definition: IRremoteInt.h:728
IRrecv::getMaximumSpaceTicksFromRawData
uint8_t getMaximumSpaceTicksFromRawData()
Definition: IRReceive.hpp:1931
IRsend::space
static void space(uint16_t aSpaceMicros)
Sends an IR space for the specified number of microseconds.
Definition: IRSend.hpp:1364
IRrecv::decodeMagiQuest
bool decodeMagiQuest()
Definition: ir_MagiQuest.hpp:155
IRrecv::decode_old
bool decode_old(decode_results *aResults)
Definition: IRReceive.hpp:2405
IRsend::sendRC5
void sendRC5(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, bool aEnableAutomaticToggle=true)
Definition: ir_RC5_RC6.hpp:106
enableLEDFeedbackForReceive
constexpr auto enableLEDFeedbackForReceive
Definition: IRremoteInt.h:461
IRrecv::decodeStrictPulseDistanceWidthData
bool decodeStrictPulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros, bool aMSBfirst)
Definition: IRReceive.hpp:958
decode_results::magnitude
uint16_t magnitude
Definition: IRremoteInt.h:215
IRrecv::initBiphaselevel
void initBiphaselevel(uint_fast8_t aRCDecodeRawbuffOffset, uint16_t aBiphaseTimeUnit)
Definition: IRReceive.hpp:1134
IRsend::sendNEC2
void sendNEC2(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
NEC2 Send frame !!! and repeat the frame for each requested repeat !!! There is NO delay after the la...
Definition: ir_NEC.hpp:200
IRrecv::end
void end()
Alias for stop().
Definition: IRReceive.hpp:488
IRsend::sendKaseikyo_Mitsubishi
void sendKaseikyo_Mitsubishi(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats)
Stub using Kaseikyo with MITSUBISHI_VENDOR_ID_CODE.
Definition: ir_Kaseikyo.hpp:178
IRData::rawlen
IRRawlenType rawlen
Counter of entries in rawbuf of last received frame.
Definition: IRremoteInt.h:170
IRrecv::decodeNECMSB
bool decodeNECMSB(decode_results *aResults)
Definition: ir_NEC.hpp:338
IRsend::sendBangOlufsenRawDataLink
void sendBangOlufsenRawDataLink(uint64_t aRawData, int_fast8_t aBits, bool aBackToBack=false, bool aUseDatalinkTiming=false)
Definition: ir_BangOlufsen.hpp:235
IRrecv::decodeNEC
bool decodeNEC()
Decodes also Onkyo and Apple.
Definition: ir_NEC.hpp:237
IRsend::sendPulseDistanceWidth
void sendPulseDistanceWidth(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros, uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros, IRRawDataType aData, uint_fast8_t aNumberOfBits, bool aMSBFirst, bool aSendStopBit, uint16_t aRepeatPeriodMillis, int_fast8_t aNumberOfRepeats, void(*aSpecialSendRepeatFunction)()=nullptr) __attribute__((deprecated("Since version 4.1.0 parameter aSendStopBit is not longer required.")))
IRrecv::decodeHashOld
bool decodeHashOld(decode_results *aResults)
Definition: IRReceive.hpp:1261
IRrecv::printIRSendUsage
void printIRSendUsage(Print *aSerial)
Function to print values and flags of IrReceiver.decodedIRData in one line.
Definition: IRReceive.hpp:1979
IRsend::sendNECRepeat
void sendNECRepeat()
Send special NEC repeat frame Repeat commands should be sent in a 110 ms raster.
Definition: ir_NEC.hpp:134
IRRawbufType
uint8_t IRRawbufType
Definition: IRremoteInt.h:99
IRsend::sendSAMSUNG
void sendSAMSUNG(unsigned long data, int nbits)
Definition: ir_Samsung.hpp:414
IRsend::IRLedOff
void IRLedOff()
Just switch the IR sending LED off to send an IR space A space is "no output", so the PWM output is d...
Definition: IRSend.hpp:1322
IRsend::sendPulseDistanceWidthFromArray
void sendPulseDistanceWidthFromArray(uint_fast8_t aFrequencyKHz, uint16_t aHeaderMarkMicros, uint16_t aHeaderSpaceMicros, uint16_t aOneMarkMicros, uint16_t aOneSpaceMicros, uint16_t aZeroMarkMicros, uint16_t aZeroSpaceMicros, IRRawDataType *aDecodedRawDataArray, uint16_t aNumberOfBits, uint8_t aFlags, uint16_t aRepeatPeriodMillis, int_fast8_t aNumberOfRepeats)
Definition: IRSend.hpp:655
IRsend::sendWhynter
void sendWhynter(uint32_t aData, int_fast8_t aNumberOfRepeats)
Definition: ir_Others.hpp:90
IRrecv::getTotalDurationOfRawData
uint32_t getTotalDurationOfRawData()
Definition: IRReceive.hpp:1962
sendFAST
void sendFAST(uint8_t aSendPin, uint16_t aCommand, uint_fast8_t aNumberOfRepeats=0)
Definition: TinyIRSender.hpp:351
IRrecv::decodeDenon
bool decodeDenon()
Definition: ir_Denon.hpp:169
IRrecv::decodeLG
bool decodeLG()
Definition: ir_LG.hpp:176
IRrecv::stopTimer
void stopTimer()
Definition: IRReceive.hpp:475
IRsend::sendPulseDistanceWidthData
void sendPulseDistanceWidthData(PulseDistanceWidthProtocolConstants *aProtocolConstants, IRRawDataType aData, uint_fast8_t aNumberOfBits)
Sends PulseDistance from data contained in parameter using ProtocolConstants structure for timing etc...
Definition: IRSend.hpp:578
IRrecv::decode
bool decode()
The main decode function, attempts to decode the recently receive IR signal.
Definition: IRReceive.hpp:567
IRrecv::decodeJVC
bool decodeJVC()
Definition: ir_JVC.hpp:120
IRsend::sendSharpRaw
void sendSharpRaw(unsigned long data, int nbits)
IRsend::sendRC6A
void sendRC6A(uint8_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats, uint16_t aCustomer, bool aEnableAutomaticToggle=true)
Assemble raw data for RC6 from parameters and toggle state and send We do not wait for the minimal tr...
Definition: ir_RC5_RC6.hpp:401
RAW_BUFFER_LENGTH
#define RAW_BUFFER_LENGTH
The RAW_BUFFER_LENGTH determines the length of the byte buffer where the received IR timing data is s...
Definition: IRremoteInt.h:77
IRsend::sendOnkyo
void sendOnkyo(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
There is NO delay after the last sent repeat!
Definition: ir_NEC.hpp:191
IRrecv::decodeKaseikyo
bool decodeKaseikyo()
Definition: ir_Kaseikyo.hpp:199
IRsend::Command
void nbits is deprecated and may not work as expected ! Use Command
Definition: IRremoteInt.h:684
IRsend::sendLegoPowerFunctions
void sendLegoPowerFunctions(uint8_t aChannel, uint8_t tCommand, uint8_t aMode, bool aDoSend5Times=true)
Definition: ir_Lego.hpp:117
IRsend::write
size_t write(decode_type_t aProtocol, uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats=NO_REPEATS)
Interprets and sends a IRData structure.
Definition: IRSend.hpp:153
IRrecv::ReceiveInterruptHandler
void ReceiveInterruptHandler()
Definition: IRReceive.hpp:122
USE_DEFAULT_FEEDBACK_LED_PIN
#define USE_DEFAULT_FEEDBACK_LED_PIN
Main class for receiving IR signals.
Definition: IRremoteInt.h:225
decode_results::rawlen
uint_fast8_t rawlen
Definition: IRremoteInt.h:220
IRData::protocol
decode_type_t protocol
UNKNOWN, NEC, SONY, RC5, PULSE_DISTANCE, ...
Definition: IRremoteInt.h:151
IRrecv::decodeRC6
bool decodeRC6()
Try to decode data as RC6 protocol.
Definition: ir_RC5_RC6.hpp:450
IRsend::sendBiphaseData
void sendBiphaseData(uint16_t aBiphaseTimeUnit, uint32_t aData, uint_fast8_t aNumberOfBits)
Sends Biphase data MSB first Always send start bit, do not send the trailing space of the start bit 0...
Definition: IRSend.hpp:1093
IRsend::sendLG
void sendLG(uint8_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
LG uses the NEC repeat.
Definition: ir_LG.hpp:165
IRsend::sendBangOlufsen
void sendBangOlufsen(uint16_t aHeader, uint8_t aData, int_fast8_t aNumberOfRepeats=NO_REPEATS, int8_t aNumberOfHeaderBits=8)
Definition: ir_BangOlufsen.hpp:156
printIRDataShort
void printIRDataShort(Print *aSerial, IRData *aIRDataPtr)
Definition: IRReceive.hpp:1745
IRrecv::resume
void resume()
Restart the ISR (Interrupt Service Routine) state machine, to enable receiving of the next IR frame.
Definition: IRReceive.hpp:504
IRrecv::decodeShuzu
bool decodeShuzu()
Definition: ir_Template.hpp:139
IRrecv::lastDecodedAddress
uint16_t lastDecodedAddress
Definition: IRremoteInt.h:413
IRsend::aCommand
void aCommand
Definition: IRremoteInt.h:688
IRrecv::compensateAndStoreIRResultInArray
void compensateAndStoreIRResultInArray(uint8_t *aArrayPtr)
Store the decodedIRData to be used for sendRaw().
Definition: IRReceive.hpp:2327
IrReceiver
IRrecv IrReceiver
The receiver instance.
Definition: IRReceive.hpp:64
IRData::initialGapTicks
uint16_t initialGapTicks
Contains the initial gap (pre 4.4: the value in rawbuf[0]) of the last received frame.
Definition: IRremoteInt.h:171
IRsend::enableIROut
void enableIROut(uint_fast8_t aFrequencyKHz)
Enables IR output.
Definition: IRSend.hpp:1404
IRsend::sendKaseikyo_Denon
void sendKaseikyo_Denon(uint16_t aAddress, uint8_t aData, int_fast8_t aNumberOfRepeats)
Stub using Kaseikyo with DENON_VENDOR_ID_CODE.
Definition: ir_Kaseikyo.hpp:171
IRsend::sendLG2
void sendLG2(uint8_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
LG2 uses a special repeat.
Definition: ir_LG.hpp:172
IRrecv::decodeWithThresholdPulseDistanceWidthData
void decodeWithThresholdPulseDistanceWidthData(uint_fast8_t aNumberOfBits, IRRawlenType aStartOffset, uint16_t aOneThresholdMicros, bool aIsPulseWidthProtocol, bool aMSBfirst)
New threshold decoder to be activated by USE_THRESHOLD_DECODER Assumes a 0 for shorter and a 1 for lo...
Definition: IRReceive.hpp:828
decode_results::isRepeat
bool isRepeat
Definition: IRremoteInt.h:216
IRrecv::printIRResultAsCArray
void printIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks=true, bool aDoCompensate=true)
Definition: IRReceive.hpp:2269
IRrecv::decodeJVCMSB
bool decodeJVCMSB(decode_results *aResults)
Definition: ir_JVC.hpp:171
sendNECSpecialRepeat
void sendNECSpecialRepeat()
Static function variant of IRsend::sendNECRepeat For use in ProtocolConstants.
Definition: ir_NEC.hpp:145
IRrecv::decodeWhynter
bool decodeWhynter()
Definition: ir_Others.hpp:94
IRrecv::repeatCount
uint8_t repeatCount
Definition: IRremoteInt.h:419
irparams_struct::IRReceivePin
uint_fast8_t IRReceivePin
Pin connected to IR data from detector.
Definition: IRremoteInt.h:128
irparams_struct::initialGapTicks
uint16_t initialGapTicks
Tick counts of the length of the gap between previous and current IR frame. Pre 4....
Definition: IRremoteInt.h:139