IRremoteIDF
Infrared send & receive for ESP-IDF
Loading...
Searching...
No Matches
Functions
IRcarrier.cpp File Reference

Functions

int8_t irCarrierAttach (uint16_t pin, bool inverted)
 Claim an LEDC channel and bind it to pin.
 
void irCarrierDetach (int8_t channel, uint16_t pin, bool inverted)
 Release a previously claimed channel.
 
void irCarrierConfig (int8_t channel, uint32_t freq, uint8_t duty)
 Set the carrier frequency (Hz) and duty cycle (percent).
 
void IRAM_ATTR irCarrierOn (int8_t channel)
 Start emitting the carrier.
 
void IRAM_ATTR irCarrierOff (int8_t channel)
 Stop emitting the carrier, leaving the pin at its idle level.
 

Function Documentation

◆ irCarrierAttach()

int8_t irCarrierAttach ( uint16_t  pin,
bool  inverted 
)

Claim an LEDC channel and bind it to pin.

Returns
The channel number, or -1 if none was available.

◆ irCarrierConfig()

void irCarrierConfig ( int8_t  channel,
uint32_t  freq,
uint8_t  duty 
)

Set the carrier frequency (Hz) and duty cycle (percent).

◆ irCarrierDetach()

void irCarrierDetach ( int8_t  channel,
uint16_t  pin,
bool  inverted 
)

Release a previously claimed channel.

◆ irCarrierOff()

void IRAM_ATTR irCarrierOff ( int8_t  channel)

Stop emitting the carrier, leaving the pin at its idle level.

◆ irCarrierOn()

void IRAM_ATTR irCarrierOn ( int8_t  channel)

Start emitting the carrier.