8 #if defined(USE_ESP32) && ESP_IDF_VERSION_MAJOR >= 5 9 #include <driver/rmt_rx.h> 13 namespace remote_receiver {
15 #if defined(USE_ESP8266) || defined(USE_LIBRETINY) 32 #elif defined(USE_ESP32) && ESP_IDF_VERSION_MAJOR >= 5 58 #if defined(USE_ESP32) && ESP_IDF_VERSION_MAJOR < 5 60 : RemoteReceiverBase(pin), remote_base::RemoteRMTChannel(mem_block_num) {}
63 : RemoteReceiverBase(pin), remote_base::RemoteRMTChannel(channel, mem_block_num) {}
67 void setup()
override;
68 void dump_config()
override;
72 #if defined(USE_ESP32) && ESP_IDF_VERSION_MAJOR >= 5 79 void set_idle_us(uint32_t idle_us) { this->idle_us_ = idle_us; }
83 #if ESP_IDF_VERSION_MAJOR >= 5 84 void decode_rmt_(rmt_symbol_word_t *item,
size_t item_count);
85 rmt_channel_handle_t channel_{NULL};
86 uint32_t filter_symbols_{0};
87 uint32_t receive_symbols_{0};
88 bool with_dma_{
false};
90 void decode_rmt_(rmt_item32_t *item,
size_t item_count);
93 esp_err_t error_code_{ESP_OK};
94 std::string error_string_{
""};
97 #if defined(USE_ESP8266) || defined(USE_LIBRETINY) || (defined(USE_ESP32) && ESP_IDF_VERSION_MAJOR >= 5) 102 uint32_t buffer_size_{};
103 uint32_t filter_us_{10};
104 uint32_t idle_us_{10000};
void set_idle_us(uint32_t idle_us)
const float DATA
For components that import data from directly connected sensors like DHT.
volatile uint32_t buffer_read
The position last read from.
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
void set_buffer_size(uint32_t buffer_size)
rmt_receive_config_t config
Helper class to request loop() to be called as fast as possible.
RemoteReceiverComponentStore store_
volatile uint32_t buffer_write_at
The position last written to.
void set_filter_symbols(uint32_t filter_symbols)
RemoteReceiverComponent(InternalGPIOPin *pin, rmt_channel_t channel, uint8_t mem_block_num=1)
void set_filter_us(uint32_t filter_us)
static void gpio_intr(RemoteReceiverComponentStore *arg)
float get_setup_priority() const override
uint32_t buffer_read_at
The position last read from.
volatile uint32_t * buffer
Stores the time (in micros) that the leading/falling edge happened at.
HighFrequencyLoopRequester high_freq_
volatile uint32_t buffer_write
The position last written to.
Implementation of SPI Controller mode.
RemoteReceiverComponent(InternalGPIOPin *pin)
void set_with_dma(bool with_dma)
void set_receive_symbols(uint32_t receive_symbols)
RemoteReceiverComponent(InternalGPIOPin *pin, uint8_t mem_block_num=1)