#include <usb_uart.h>
Definition at line 133 of file usb_uart.h.
◆ USBUartChannelBase()
| esphome::usb_uart::USBUartChannelBase::USBUartChannelBase |
( |
uint8_t | index, |
|
|
uint16_t | buffer_size ) |
|
inlineprotected |
◆ available()
| size_t esphome::usb_uart::USBUartChannelBase::available |
( |
| ) |
|
|
inlineoverridevirtual |
◆ check_logger_conflict()
| void esphome::usb_uart::USBUartChannelBase::check_logger_conflict |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ flush()
◆ is_connected()
| bool esphome::usb_uart::USBUartChannelBase::is_connected |
( |
| ) |
|
|
inlineoverridevirtual |
◆ load_settings()
| void esphome::usb_uart::USBUartChannelBase::load_settings |
( |
bool | dump_config | ) |
|
|
overridevirtual |
◆ peek_byte()
| bool esphome::usb_uart::USBUartChannelBase::peek_byte |
( |
uint8_t * | data | ) |
|
|
overridevirtual |
◆ read_array()
| bool esphome::usb_uart::USBUartChannelBase::read_array |
( |
uint8_t * | data, |
|
|
size_t | len ) |
|
overridevirtual |
◆ set_debug()
| void esphome::usb_uart::USBUartChannelBase::set_debug |
( |
bool | debug | ) |
|
|
inline |
◆ set_debug_prefix()
| void esphome::usb_uart::USBUartChannelBase::set_debug_prefix |
( |
const char * | prefix | ) |
|
|
inline |
◆ set_dummy_receiver()
| void esphome::usb_uart::USBUartChannelBase::set_dummy_receiver |
( |
bool | dummy_receiver | ) |
|
|
inline |
◆ set_flush_timeout()
| void esphome::usb_uart::USBUartChannelBase::set_flush_timeout |
( |
uint32_t | flush_timeout_ms | ) |
|
|
inlineoverridevirtual |
◆ set_parity()
◆ set_rx_callback()
| void esphome::usb_uart::USBUartChannelBase::set_rx_callback |
( |
std::function< void()> | cb | ) |
|
|
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 165 of file usb_uart.h.
◆ write_array()
| void esphome::usb_uart::USBUartChannelBase::write_array |
( |
const uint8_t * | data, |
|
|
size_t | len ) |
|
overridevirtual |
◆ cdc_dev_
| CdcEps esphome::usb_uart::USBUartChannelBase::cdc_dev_ {} |
|
protected |
◆ debug_
| bool esphome::usb_uart::USBUartChannelBase::debug_ {} |
|
protected |
◆ debug_prefix_
| StringRef esphome::usb_uart::USBUartChannelBase::debug_prefix_ {} |
|
protected |
◆ dummy_receiver_
| bool esphome::usb_uart::USBUartChannelBase::dummy_receiver_ {} |
|
protected |
◆ flush_timeout_ms_
| uint32_t esphome::usb_uart::USBUartChannelBase::flush_timeout_ms_ {100} |
|
protected |
◆ index_
| const uint8_t esphome::usb_uart::USBUartChannelBase::index_ |
|
protected |
◆ initialised_
| std::atomic<bool> esphome::usb_uart::USBUartChannelBase::initialised_ {false} |
|
protected |
◆ input_buffer_
| RingBuffer esphome::usb_uart::USBUartChannelBase::input_buffer_ |
|
protected |
◆ input_started_
| std::atomic<bool> esphome::usb_uart::USBUartChannelBase::input_started_ {true} |
|
protected |
◆ output_pool_
◆ output_queue_
◆ output_started_
| std::atomic<bool> esphome::usb_uart::USBUartChannelBase::output_started_ {true} |
|
protected |
◆ parity_
◆ rx_callback_
| std::function<void()> esphome::usb_uart::USBUartChannelBase::rx_callback_ {} |
|
protected |
◆ USB_OUTPUT_CHUNK_COUNT
| uint8_t esphome::usb_uart::USBUartChannelBase::USB_OUTPUT_CHUNK_COUNT = USB_UART_OUTPUT_CHUNK_COUNT |
|
staticconstexpr |
The documentation for this class was generated from the following files: