ESPHome 2025.6.0
|
#include <usb_uart.h>
Public Member Functions | |
USBUartChannel (uint8_t index, uint16_t buffer_size) | |
void | write_array (const uint8_t *data, size_t len) override |
bool | peek_byte (uint8_t *data) override |
bool | read_array (uint8_t *data, size_t len) override |
int | available () override |
void | flush () override |
void | check_logger_conflict () override |
void | set_parity (UARTParityOptions parity) |
void | set_debug (bool debug) |
void | set_dummy_receiver (bool dummy_receiver) |
![]() | |
void | write_array (const std::vector< uint8_t > &data) |
void | write_byte (uint8_t data) |
void | write_str (const char *str) |
bool | read_byte (uint8_t *data) |
void | set_tx_pin (InternalGPIOPin *tx_pin) |
void | set_rx_pin (InternalGPIOPin *rx_pin) |
void | set_rx_buffer_size (size_t rx_buffer_size) |
size_t | get_rx_buffer_size () |
void | set_stop_bits (uint8_t stop_bits) |
uint8_t | get_stop_bits () const |
void | set_data_bits (uint8_t data_bits) |
uint8_t | get_data_bits () const |
void | set_parity (UARTParityOptions parity) |
UARTParityOptions | get_parity () const |
void | set_baud_rate (uint32_t baud_rate) |
uint32_t | get_baud_rate () const |
virtual void | load_settings (bool dump_config) |
Load the UART settings. | |
virtual void | load_settings () |
Load the UART settings. | |
void | add_debug_callback (std::function< void(UARTDirection, uint8_t)> &&callback) |
![]() | |
Parented () | |
Parented (USBUartComponent *parent) | |
USBUartComponent * | get_parent () const |
Get the parent of this object. | |
void | set_parent (USBUartComponent *parent) |
Set the parent of this object. | |
Protected Attributes | |
const uint8_t | index_ |
RingBuffer | input_buffer_ |
RingBuffer | output_buffer_ |
UARTParityOptions | parity_ {UART_CONFIG_PARITY_NONE} |
bool | input_started_ {true} |
bool | output_started_ {true} |
CdcEps | cdc_dev_ {} |
bool | debug_ {} |
bool | dummy_receiver_ {} |
bool | initialised_ {} |
![]() | |
InternalGPIOPin * | tx_pin_ |
InternalGPIOPin * | rx_pin_ |
size_t | rx_buffer_size_ |
uint32_t | baud_rate_ |
uint8_t | stop_bits_ |
uint8_t | data_bits_ |
UARTParityOptions | parity_ |
CallbackManager< void(UARTDirection, uint8_t)> | debug_callback_ {} |
![]() | |
USBUartComponent * | parent_ |
Additional Inherited Members | |
![]() | |
bool | check_read_timeout_ (size_t len=1) |
Definition at line 70 of file usb_uart.h.
|
inline |
Definition at line 77 of file usb_uart.h.
|
inlineoverridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 84 of file usb_uart.h.
|
inlineoverridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 86 of file usb_uart.h.
|
inlineoverridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 85 of file usb_uart.h.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 151 of file usb_uart.cpp.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 158 of file usb_uart.cpp.
|
inline |
Definition at line 88 of file usb_uart.h.
|
inline |
Definition at line 89 of file usb_uart.h.
|
inline |
Definition at line 87 of file usb_uart.h.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 136 of file usb_uart.cpp.
|
protected |
Definition at line 98 of file usb_uart.h.
|
protected |
Definition at line 99 of file usb_uart.h.
|
protected |
Definition at line 100 of file usb_uart.h.
|
protected |
Definition at line 92 of file usb_uart.h.
|
protected |
Definition at line 101 of file usb_uart.h.
|
protected |
Definition at line 93 of file usb_uart.h.
|
protected |
Definition at line 96 of file usb_uart.h.
|
protected |
Definition at line 94 of file usb_uart.h.
|
protected |
Definition at line 97 of file usb_uart.h.
|
protected |
Definition at line 95 of file usb_uart.h.