3 #ifdef USE_UART_DEBUGGER 88 static void log_string(
UARTDirection direction, std::vector<uint8_t> bytes);
92 static void log_int(
UARTDirection direction, std::vector<uint8_t> bytes, uint8_t separator);
96 static void log_binary(
UARTDirection direction, std::vector<uint8_t> bytes, uint8_t separator);
void trigger_after_timeout_()
void set_after_bytes(size_t size)
Set the maximum number of bytes to accumulate.
bool is_my_direction_(UARTDirection direction)
UARTDirection for_direction_
This class contains some static methods, that can be used to easily create a logging action for the d...
void trigger_after_bytes_()
void set_direction(UARTDirection direction)
Set the direction in which to inspect the bytes: incoming, outgoing or both.
UARTDummyReceiver(UARTComponent *parent)
void store_byte_(UARTDirection direction, uint8_t byte)
std::vector< uint8_t > bytes_
UARTDebugger(UARTComponent *parent)
UARTDirection last_direction_
void trigger_after_direction_change_(UARTDirection direction)
This UARTDevice is used by the serial debugger to read data from a serial interface when the 'dummy_r...
size_t after_delimiter_pos_
void trigger_after_delimiter_(uint8_t byte)
void set_after_timeout(uint32_t timeout)
Set a timeout for the data stream.
Implementation of SPI Controller mode.
std::vector< uint8_t > bytes
void add_delimiter_byte(uint8_t byte)
Add a delimiter byte.
bool has_buffered_bytes_()
std::vector< uint8_t > after_delimiter_
The UARTDebugger class adds debugging support to a UART bus.