MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / restartTimerWithTicksToAdd

Method restartTimerWithTicksToAdd

src/IRReceive.hpp:442–449  ·  view source on GitHub ↗

* Configures the timer and the state machine for IR reception. Does not call resume()! * @param aTicksToAddToGapCounter To compensate for the amount of ticks the timer was stopped / disabled. */

Source from the content-addressed store, hash-verified

440 * @param aTicksToAddToGapCounter To compensate for the amount of ticks the timer was stopped / disabled.
441 */
442void IRrecv::restartTimerWithTicksToAdd(uint16_t aTicksToAddToGapCounter) {
443 irparams.TickCounterForISR += aTicksToAddToGapCounter;
444 timerConfigForReceive(); // no interrupts enabled here!
445 timerEnableReceiveInterrupt(); // Enables the receive sample timer interrupt which consumes a small amount of CPU every 50 us.
446#ifdef _IR_MEASURE_TIMING
447 pinModeFast(_IR_TIMING_TEST_PIN, OUTPUT);
448#endif
449}
450#if defined(ESP8266) || defined(ESP32)
451#pragma GCC diagnostic push
452#endif

Callers

nothing calls this directly

Calls 2

timerConfigForReceiveFunction · 0.85

Tested by

no test coverage detected