PpposService class final
#include <net/ppp/pppos.hpp>
PPPoS runtime facade used by PacketRF networking and control code.
The service owns PPP bring-up over a caller-supplied USB CDC byte stream and exposes lightweight status snapshots for diagnostics.
Base classes
- class IPpposStatsSource
- Interface for components that can publish PPPoS runtime status.
Public static functions
- static auto instance() -> PpposService&
- Returns process-wide singleton instance.
Constructors, destructors, conversion operators
-
PpposService(usb::
cdc:: ICdcIo& cdc, IUdpEchoService& udp_echo) explicit - Creates PPP service over a USB CDC byte stream and optional UDP echo helper.
Public functions
- auto init() -> bool
- Initializes PPP service with default or previously configured settings.
- auto init(const PppIpv4Config& cfg) -> bool
- Initializes PPP service with explicit IPv4 settings.
- auto link_up() const -> bool
- Returns current link-up state.
- void log_status() const
- Emits one human-readable status line to diagnostics output.
- auto status_snapshot(PpposStatusSnapshot* out) const -> bool override
- Captures current PPP runtime snapshot.