|
IRremoteIDF
Infrared send & receive for ESP-IDF
|
Go to the source code of this file.
Typedefs | |
| typedef std::string | String |
The protocol code builds human readable output with String. On ESP-IDF that is just std::string. | |
Functions | |
| uint32_t | irMillis (void) |
| Milliseconds since boot. Wraps every ~49.7 days, like Arduino's millis(). | |
| uint32_t | irMicros (void) |
| Microseconds since boot. Wraps every ~71.6 minutes. | |
| void | irDelayMs (uint32_t msec) |
| Sleep, yielding the CPU to other FreeRTOS tasks. | |
| void | irDelayUs (uint32_t usec) |
| Busy-wait. Accurate, but blocks the core it runs on. | |
| void | irYield (void) |
| Feed the task watchdog without giving up the CPU for long. | |
| bool | irGpioOutput (uint16_t pin) |
| Configure a GPIO as a push-pull output. | |
| bool | irGpioInput (uint16_t pin, bool pullup) |
| Configure a GPIO as an input, optionally with the internal pull-up. | |
| void | irGpioWrite (uint16_t pin, uint8_t level) |
| Set the level of an output GPIO. | |
| uint8_t | irGpioRead (uint16_t pin) |
| Read the level of a GPIO. | |
| void | irRestart (void) |
| Reboot the chip. Used when a buffer allocation fails. | |
| 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 | irCarrierOn (int8_t channel) |
| Start emitting the carrier. | |
| void | irCarrierOff (int8_t channel) |
| Stop emitting the carrier, leaving the pin at its idle level. | |
| void | irDebugPrint (const char *str) |
| void | irDebugPrint (const String &str) |
| void | irDebugPrint (char c) |
| void | irDebugPrint (uint64_t value) |
| void | irDebugPrint (int64_t value) |
| template<typename T > | |
| std::enable_if< std::is_integral< T >::value >::type | irDebugPrint (T value) |
Any other integer type. Without this, an int or a uint16_t converts equally well to uint64_t and int64_t, and the call is ambiguous. | |
Variables | |
| const uint8_t | kIrLow = 0 |
| Logical pin levels. | |
| const uint8_t | kIrHigh = 1 |
| typedef std::string String |
The protocol code builds human readable output with String. On ESP-IDF that is just std::string.
| int8_t irCarrierAttach | ( | uint16_t | pin, |
| bool | inverted | ||
| ) |
Claim an LEDC channel and bind it to pin.
| void irCarrierConfig | ( | int8_t | channel, |
| uint32_t | freq, | ||
| uint8_t | duty | ||
| ) |
Set the carrier frequency (Hz) and duty cycle (percent).
| void irCarrierDetach | ( | int8_t | channel, |
| uint16_t | pin, | ||
| bool | inverted | ||
| ) |
Release a previously claimed channel.
| void irCarrierOff | ( | int8_t | channel | ) |
Stop emitting the carrier, leaving the pin at its idle level.
| void irCarrierOn | ( | int8_t | channel | ) |
Start emitting the carrier.
| void irDebugPrint | ( | char | c | ) |
| void irDebugPrint | ( | const char * | str | ) |
| void irDebugPrint | ( | const String & | str | ) |
| void irDebugPrint | ( | int64_t | value | ) |
|
inline |
Any other integer type. Without this, an int or a uint16_t converts equally well to uint64_t and int64_t, and the call is ambiguous.
| void irDebugPrint | ( | uint64_t | value | ) |
| void irDelayMs | ( | uint32_t | msec | ) |
Sleep, yielding the CPU to other FreeRTOS tasks.
| void irDelayUs | ( | uint32_t | usec | ) |
Busy-wait. Accurate, but blocks the core it runs on.
| bool irGpioInput | ( | uint16_t | pin, |
| bool | pullup | ||
| ) |
Configure a GPIO as an input, optionally with the internal pull-up.
| bool irGpioOutput | ( | uint16_t | pin | ) |
Configure a GPIO as a push-pull output.
| uint8_t irGpioRead | ( | uint16_t | pin | ) |
Read the level of a GPIO.
| void irGpioWrite | ( | uint16_t | pin, |
| uint8_t | level | ||
| ) |
Set the level of an output GPIO.
| uint32_t irMicros | ( | void | ) |
Microseconds since boot. Wraps every ~71.6 minutes.
| uint32_t irMillis | ( | void | ) |
Milliseconds since boot. Wraps every ~49.7 days, like Arduino's millis().
| void irRestart | ( | void | ) |
Reboot the chip. Used when a buffer allocation fails.
| void irYield | ( | void | ) |
Feed the task watchdog without giving up the CPU for long.
| const uint8_t kIrHigh = 1 |
| const uint8_t kIrLow = 0 |
Logical pin levels.