24#ifndef _DRIVER_STATS_H
25#define _DRIVER_STATS_H
31#include "observable/observable.h"
39 NavAddr::Bus driver_bus;
40 std::string driver_iface;
46 : driver_bus(
NavAddr::Bus::Undef),
83 auto stats_ptr = std::make_shared<DriverStats>(m_src.
GetDriverStats());
obs::EventVar evt_driver_stats
Regularly notified by drivers with a DriverStats shared_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.
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.