IRremote
IRTimer.hpp File Reference

All timer specific definitions are contained in this file. Sets IR_SEND_PIN if required, e.g. if SEND_PWM_BY_TIMER for AVR is defined, which restricts the output to a dedicated pin number. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IR_SEND_PIN
 Hardware / timer dependent pin number for sending IR if SEND_PWM_BY_TIMER is defined. More...
 

Functions

void timerResetInterruptPending ()
 
void timerEnableReceiveInterrupt ()
 Enables the receive sample timer interrupt, which consumes a small amount of CPU every 50 us. More...
 
void timerDisableReceiveInterrupt ()
 Disables the receive sample timer interrupt. More...
 
void timerConfigForReceive ()
 Configures the timer to be able to generate the receive sample interrupt, which consumes a small amount of CPU every 50 (MICROS_PER_TICK) us. More...
 
void enableSendPWMByTimer ()
 Enables output of the PWM signal of the timer at the timer pin. More...
 
void disableSendPWMByTimer ()
 Disables output of the PWM signal of the timer at the timer pin and set it to inactive. More...
 
void timerConfigForSend (uint16_t aFrequencyKHz)
 IF PWM should be generated not by software, but by a timer, this function sets output pin mode, configures the timer for generating a PWM with duty cycle of IR_SEND_DUTY_CYCLE_PERCENT and disables the receive interrupt if it uses the same resource. More...
 

Detailed Description

All timer specific definitions are contained in this file. Sets IR_SEND_PIN if required, e.g. if SEND_PWM_BY_TIMER for AVR is defined, which restricts the output to a dedicated pin number.

timerConfigForSend(aFrequencyKHz) must set output pin mode and disable receive interrupt if it uses the same resource

This file is part of Arduino-IRremote https://github.com/Arduino-IRremote/Arduino-IRremote.

MIT License

Copyright (c) 2021-2023 Armin Joachimsmeyer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file IRTimer.hpp.