5 #ifndef UAVCAN_PROTOCOL_TRANSPORT_STATS_PROVIDER_HPP_INCLUDED 6 #define UAVCAN_PROTOCOL_TRANSPORT_STATS_PROVIDER_HPP_INCLUDED 11 #include <uavcan/protocol/GetTransportStats.hpp> 22 void (TransportStatsProvider::*)(
const protocol::GetTransportStats::Request&,
23 protocol::GetTransportStats::Response&)
const>
29 protocol::GetTransportStats::Response& resp)
const 40 protocol::CANIfaceStats stats;
44 resp.can_iface_stats.push_back(stats);
65 #endif // UAVCAN_PROTOCOL_TRANSPORT_STATS_PROVIDER_HPP_INCLUDED CanIfacePerfCounters getIfacePerfCounters(uint8_t iface_index) const
uint8_t getNumIfaces() const
const uint64_t & getErrorCount() const
void handleGetTransportStats(const protocol::GetTransportStats::Request &, protocol::GetTransportStats::Response &resp) const
const uint64_t & getTxTransferCount() const
ServiceServer< protocol::GetTransportStats, GetTransportStatsCallback > srv_
const uint64_t & getRxTransferCount() const
int start(const Callback &callback)
TransportStatsProvider(INode &node)