UartStreamIo class final
#include <hal/uart_stream_io.hpp>
Default board UART-backed byte stream used by local control transport.
Base classes
- class prf::serial::IStreamIo
- Abstract byte-stream backend used by the serial control transport.
Constructors, destructors, conversion operators
- UartStreamIo(uint32_t baud_rate = 115200u) explicit
Public functions
- auto available() -> uint32_t override
- Returns number of readable bytes currently available.
- auto init() -> bool override
- Initializes the underlying stream backend.
- auto label() const -> const char* override
- Returns short backend label used in diagnostics.
- auto read(void* buffer, uint32_t length) -> uint32_t override
- Reads up to
lengthbytes into caller-provided buffer. - void service() override
- Services backend-specific polling or housekeeping.
- auto write(const void* buffer, uint32_t length, uint32_t timeout_ms) -> uint32_t override
- Writes up to
lengthbytes with backend-defined timeout behavior.