9 #ifdef USE_UART_DEBUGGER 22 #ifdef USE_UART_DEBUGGER 45 const auto *data =
reinterpret_cast<const uint8_t *
>(str);
62 virtual bool peek_byte(uint8_t *data) = 0;
68 virtual bool read_array(uint8_t *data,
size_t len) = 0;
75 virtual void flush() = 0;
125 #if defined(USE_ESP8266) || defined(USE_ESP32) 150 #endif // USE_ESP8266 || USE_ESP32 152 #ifdef USE_UART_DEBUGGER 169 #ifdef USE_UART_DEBUGGER
virtual bool read_array(uint8_t *data, size_t len)=0
uint8_t get_stop_bits() const
uint32_t get_baud_rate() const
void set_tx_pin(InternalGPIOPin *tx_pin)
InternalGPIOPin * tx_pin_
UARTParityOptions parity_
size_t get_rx_buffer_size()
bool read_byte(uint8_t *data)
void set_stop_bits(uint8_t stop_bits)
void set_data_bits(uint8_t data_bits)
uint8_t get_data_bits() const
virtual void load_settings()
Load the UART settings.
InternalGPIOPin * rx_pin_
void set_parity(UARTParityOptions parity)
virtual void load_settings(bool dump_config)
Load the UART settings.
virtual int available()=0
UARTParityOptions get_parity() const
void set_baud_rate(uint32_t baud_rate)
virtual bool peek_byte(uint8_t *data)=0
void set_rx_buffer_size(size_t rx_buffer_size)
void write_str(const char *str)
void write_byte(uint8_t data)
Implementation of SPI Controller mode.
bool check_read_timeout_(size_t len=1)
void add_debug_callback(std::function< void(UARTDirection, uint8_t)> &&callback)
CallbackManager< void(UARTDirection, uint8_t)> debug_callback_
virtual void check_logger_conflict()=0
void set_rx_pin(InternalGPIOPin *rx_pin)
const LogString * parity_to_str(UARTParityOptions parity)
void write_array(const std::vector< uint8_t > &data)