10#ifdef USE_UART_DEBUGGER
22#ifdef USE_UART_DEBUGGER
55 const auto *data =
reinterpret_cast<const uint8_t *
>(str);
169#if defined(USE_ESP8266) || defined(USE_ESP32)
196#ifdef USE_UART_DEBUGGER
216#ifdef USE_UART_DEBUGGER
UARTParityOptions get_parity() const
UARTParityOptions parity_
void write_byte(uint8_t data)
virtual void load_settings(bool dump_config)
Load the UART settings.
bool check_read_timeout_(size_t len=1)
virtual void load_settings()
Load the UART settings.
void write_array(const std::vector< uint8_t > &data)
void set_baud_rate(uint32_t baud_rate)
void write_str(const char *str)
void set_rx_full_threshold_ms(uint8_t time)
virtual void set_rx_full_threshold(size_t rx_full_threshold)
bool read_byte(uint8_t *data)
uint8_t get_data_bits() const
virtual UARTFlushResult flush()=0
void set_tx_pin(InternalGPIOPin *tx_pin)
void set_parity(UARTParityOptions parity)
uint8_t get_stop_bits() const
InternalGPIOPin * tx_pin_
void set_flow_control_pin(InternalGPIOPin *flow_control_pin)
virtual void check_logger_conflict()=0
virtual void write_array(const uint8_t *data, size_t len)=0
void add_debug_callback(F &&callback)
virtual size_t available()=0
void set_rx_buffer_size(size_t rx_buffer_size)
void set_stop_bits(uint8_t stop_bits)
uint32_t get_baud_rate() const
virtual bool peek_byte(uint8_t *data)=0
size_t get_rx_buffer_size()
virtual void set_flush_timeout(uint32_t flush_timeout_ms)
void set_rx_pin(InternalGPIOPin *rx_pin)
InternalGPIOPin * flow_control_pin_
CallbackManager< void(UARTDirection, uint8_t)> debug_callback_
virtual void set_rx_timeout(size_t rx_timeout)
virtual bool is_connected()
virtual bool read_array(uint8_t *data, size_t len)=0
void set_data_bits(uint8_t data_bits)
static constexpr size_t RX_FULL_THRESHOLD_UNSET
size_t rx_full_threshold_
InternalGPIOPin * rx_pin_
size_t get_rx_full_threshold()
const LogString * parity_to_str(UARTParityOptions parity)
@ UART_CONFIG_PARITY_EVEN
@ UART_CONFIG_PARITY_NONE
UARTFlushResult
Result of a flush() call.
@ UART_FLUSH_RESULT_ASSUMED_SUCCESS
Platform cannot report result; success is assumed.
@ UART_FLUSH_RESULT_SUCCESS
Confirmed: all bytes left the TX FIFO.
@ UART_FLUSH_RESULT_FAILED
Confirmed: driver or hardware error.
@ UART_FLUSH_RESULT_TIMEOUT
Confirmed: timed out before TX completed.