9 namespace remote_receiver {
11 #if defined(USE_ESP8266) || defined(USE_LIBRETINY) 40 : RemoteReceiverBase(pin), remote_base::RemoteRMTChannel(mem_block_num) {}
43 : RemoteReceiverBase(pin), remote_base::RemoteRMTChannel(channel, mem_block_num) {}
47 void setup()
override;
48 void dump_config()
override;
54 void set_idle_us(uint32_t idle_us) { this->idle_us_ = idle_us; }
58 void decode_rmt_(rmt_item32_t *item,
size_t len);
60 esp_err_t error_code_{ESP_OK};
61 std::string error_string_{
""};
64 #if defined(USE_ESP8266) || defined(USE_LIBRETINY) 69 uint32_t buffer_size_{};
70 uint32_t filter_us_{10};
71 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.
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
void set_buffer_size(uint32_t buffer_size)
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.
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_
Implementation of SPI Controller mode.
RemoteReceiverComponent(InternalGPIOPin *pin)
RemoteReceiverComponent(InternalGPIOPin *pin, uint8_t mem_block_num=1)