25#ifndef _DRIVER_STATS_H
26#define _DRIVER_STATS_H
32#include "observable.h"
39 NavAddr::Bus driver_bus;
40 std::string driver_iface;
46 : driver_bus(
NavAddr::Bus::Undef),
69 auto stats_ptr = std::make_shared<DriverStats>(m_src.GetDriverStats());
EventVar evt_driver_stats
Regularly notified by drivers with a DriverStats shared_ptr.
Driver interface providing driver statistics.
const void Notify()
Notify all listeners, no data supplied.
Where messages are sent to or received from.
Continuously run Notify with given interval.
Continuously report driver stats to CommDrvRegistry.evt_driver_stats.
Driver registration container, a singleton.
Raw, undecoded messages definitions.
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.