24#ifndef _DRIVER_STATS_H
25#define _DRIVER_STATS_H
39 NavAddr::Bus driver_bus;
40 std::string driver_iface;
46 : driver_bus(
NavAddr::Bus::Undef),
74class StatsTimer :
public PeriodicTimer {
77 : PeriodicTimer(interval), m_src(src) {}
83 auto stats_ptr = std::make_shared<DriverStats>(m_src.GetDriverStats());
84 CommDriverRegistry::GetInstance().evt_driver_stats.Notify(stats_ptr,
"");
Driver interface providing driver statistics.
virtual ~DriverStatsProvider()=default
Destroy the Driver Stats Provider object.
virtual DriverStats GetDriverStats() const =0
Get the Driver Statistics.
Where messages are sent to or received from.
Driver registration container, a singleton.
Raw, undecoded messages definitions.
General observable pattern implementation built on top of wxWidgets event handling.
Pure C++17 periodic timer.
Driver statistics report.
unsigned tx_count
Number of bytes sent since program start.
DriverStats()
Is driver device available?
unsigned rx_count
Number of bytes received since program start.
unsigned error_count
Number of detected errors since program start.