41 static size_t write(
const uint8_t* data,
size_t len);
48 static size_t puts(
const char* str);
63 static size_t read(uint8_t* data,
size_t max_len);
104 static void write(
const char* str) {
USB CDC (Virtual COM Port) interface.
static size_t write(const uint8_t *data, size_t len)
Write data to USB serial (non-blocking)
static size_t puts(const char *str)
Write null-terminated string.
static void flush()
Flush TX buffer.
static size_t available()
Get number of bytes available to read.
static size_t read(uint8_t *data, size_t max_len)
Read data from USB serial (non-blocking)
static bool write_byte(uint8_t byte)
Write single byte.
static bool connected()
Check if host has terminal connected (DTR set)
static int read_byte()
Read single byte.
Logger output sink for sbl::log integration.
static void write(const char *str)