|
ESPHome 2026.3.3
|
#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 |
| size_t | available () override |
| uart::FlushResult | 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 | set_debug_prefix (const char *prefix) |
| void | set_flush_timeout (uint32_t flush_timeout_ms) override |
| void | set_rx_callback (std::function< void()> cb) |
| Register a callback invoked immediately after data is pushed to the input ring buffer. | |
Public Member Functions inherited from esphome::uart::UARTComponent | |
| 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_flow_control_pin (InternalGPIOPin *flow_control_pin) |
| void | set_rx_buffer_size (size_t rx_buffer_size) |
| size_t | get_rx_buffer_size () |
| virtual void | set_rx_full_threshold (size_t rx_full_threshold) |
| void | set_rx_full_threshold_ms (uint8_t time) |
| size_t | get_rx_full_threshold () |
| virtual void | set_rx_timeout (size_t rx_timeout) |
| size_t | get_rx_timeout () |
| 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) |
Public Member Functions inherited from esphome::Parented< USBUartComponent > | |
| 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. | |
Static Public Attributes | |
| static constexpr uint8_t | USB_OUTPUT_CHUNK_COUNT = 8 |
Static Public Attributes inherited from esphome::uart::UARTComponent | |
| static constexpr size_t | RX_FULL_THRESHOLD_UNSET = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::uart::UARTComponent | |
| bool | check_read_timeout_ (size_t len=1) |
Definition at line 128 of file usb_uart.h.
|
inline |
Definition at line 138 of file usb_uart.h.
|
inlineoverridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 142 of file usb_uart.h.
|
inlineoverridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 144 of file usb_uart.h.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 172 of file usb_uart.cpp.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 188 of file usb_uart.cpp.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 195 of file usb_uart.cpp.
|
inline |
Definition at line 146 of file usb_uart.h.
|
inline |
Definition at line 148 of file usb_uart.h.
|
inline |
Definition at line 147 of file usb_uart.h.
|
inlineoverridevirtual |
Reimplemented from esphome::uart::UARTComponent.
Definition at line 149 of file usb_uart.h.
|
inline |
Definition at line 145 of file usb_uart.h.
|
inline |
Register a callback invoked immediately after data is pushed to the input ring buffer.
Called from USBUartComponent::loop() in the main loop context. Allows consumers (e.g. ZigbeeProxy) to process bytes in the same loop iteration they arrive, eliminating one full main-loop-wakeup cycle of latency.
Definition at line 155 of file usb_uart.h.
|
overridevirtual |
Implements esphome::uart::UARTComponent.
Definition at line 137 of file usb_uart.cpp.
|
protected |
Definition at line 166 of file usb_uart.h.
|
protected |
Definition at line 176 of file usb_uart.h.
|
protected |
Definition at line 167 of file usb_uart.h.
|
protected |
Definition at line 177 of file usb_uart.h.
|
protected |
Definition at line 170 of file usb_uart.h.
|
protected |
Definition at line 175 of file usb_uart.h.
|
protected |
Definition at line 174 of file usb_uart.h.
|
protected |
Definition at line 159 of file usb_uart.h.
|
protected |
Definition at line 172 of file usb_uart.h.
|
protected |
Definition at line 164 of file usb_uart.h.
|
protected |
Definition at line 160 of file usb_uart.h.
|
protected |
Definition at line 173 of file usb_uart.h.
|
protected |
Definition at line 169 of file usb_uart.h.
|
protected |
Definition at line 165 of file usb_uart.h.
|
staticconstexpr |
Definition at line 136 of file usb_uart.h.