How abel-root/serialbuscl works
SerialBusCL is a C++17 driver library for decoding ASCII bus frames, with a shared polymorphic interface and protocol-specific SLCAN and LinUSB implementations. The principal workflow is a caller supplying a line to parseLine, which validates and decodes it into a Result; the protocol parsers reuse shared hexadecimal helpers and generic string utilities. Protocol command and baud-rate definitions are part of the public APIs. The tree also exposes a serial-device interface, but the sampled code does not connect it to the parsers or show serial I/O. Edges reflect only documented inheritance and calls visible in the excerpts.
Main entry points: Slcan.cpp SLCAN Parser · LinUSB.cpp LinUSB Parser · WireBus.h WireBus API · WireBus.cpp Frame Helpers
Components 6
Shared API
- WireBus API
include/WireBus.h - Serial Device Interface
include/ISerialDevice.h
Protocol Decoders
- SLCAN Parser
src/Slcan.cpp - LinUSB Parser
src/LinUSB.cpp
Parsing Helpers
- Frame Helpers
src/WireBus.cpp - String Utilities
include/utility.h
Connections 6
- SLCAN Parser → WireBus API: implements
- LinUSB Parser → WireBus API: implements
- SLCAN Parser → Frame Helpers: uses frame helpers
src/Slcan.cpp - LinUSB Parser → Frame Helpers: uses frame helpers
src/LinUSB.cpp - SLCAN Parser → String Utilities: uses utilities
src/Slcan.cpp - LinUSB Parser → String Utilities: uses utilities
src/LinUSB.cpp