ControlService class final
#include <serial/control_service.hpp>
Serial transport adapter around the transport-neutral control exchange.
ControlService owns the serial framing loop, maps framing failures to serial transport status codes, and forwards decoded control payloads into prf::.
Constructors, destructors, conversion operators
-
ControlService(prf::
control:: ExchangeService& exchange, IStreamIo& io, uint64_t rx_timeout_ms = 250u, uint32_t tx_timeout_ms = 100u) - Creates service over a caller-owned exchange orchestrator and stream backend.
Public functions
- auto is_running() const -> bool
- Returns whether
start()succeeded and service can process traffic. - void service()
- Services RX/TX work for the serial control transport.
- auto start() -> bool
- Initializes the underlying stream backend.