2#if defined(USE_ESP32_VARIANT_ESP32P4) || defined(USE_ESP32_VARIANT_ESP32S2) || defined(USE_ESP32_VARIANT_ESP32S3)
18 void setup()
override;
46 using UARTComponent::load_settings;
ESP-IDF UART driver wrapper.
bool peek_byte(uint8_t *data) override
size_t available() override
bool read_array(uint8_t *data, size_t len) override
UARTFlushResult flush() override
void load_settings()
Load the UART settings.
Shares one hardware UART between a CDC-ACM UART bridge and local consumers.
size_t available() override
bool load_settings_warned_
void check_logger_conflict() override
UARTMux(cdc_acm_uart::CDCACMUARTBridge *bridge)
void select_local()
Pause the bridge and route the UART to local consumers once it has stopped.
float get_setup_priority() const override
bool read_array(uint8_t *data, size_t len) override
bool peek_byte(uint8_t *data) override
void set_start_local(bool start_local)
Route locally at boot instead of leaving the UART with the bridge.
void write_array(const uint8_t *data, size_t len) override
bool is_connected() override
void select_bridge()
Route the UART back to the bridge.
cdc_acm_uart::CDCACMUARTBridge * bridge_
uart::IDFUARTComponent * uart_
uart::UARTFlushResult flush() override
void dump_config() override
constexpr float BUS
For communication buses like i2c/spi.
UARTFlushResult
Result of a flush() call.
@ UART_FLUSH_RESULT_ASSUMED_SUCCESS
Platform cannot report result; success is assumed.
uart::UARTParityOptions parity