diff --git a/dsdl/uavcan/protocol/553.GetTransportStats.uavcan b/dsdl/uavcan/protocol/553.GetTransportStats.uavcan index 5afe15930c..51902d05e7 100644 --- a/dsdl/uavcan/protocol/553.GetTransportStats.uavcan +++ b/dsdl/uavcan/protocol/553.GetTransportStats.uavcan @@ -5,9 +5,9 @@ --- # UAVCAN transport layer statistics -uint64 transfers_tx -uint64 transfers_rx -uint64 transfer_errors +uint48 transfers_tx +uint48 transfers_rx +uint48 transfer_errors # CAN bus statistics, for each interface independently CANIfaceStats[<=3] can_iface_stats diff --git a/dsdl/uavcan/protocol/CANIfaceStats.uavcan b/dsdl/uavcan/protocol/CANIfaceStats.uavcan index 23089db283..ed5fe4981b 100644 --- a/dsdl/uavcan/protocol/CANIfaceStats.uavcan +++ b/dsdl/uavcan/protocol/CANIfaceStats.uavcan @@ -2,6 +2,6 @@ # Single CAN iface statistics # -uint64 frames_tx -uint64 frames_rx -uint64 errors +uint48 frames_tx +uint48 frames_rx +uint48 errors diff --git a/libuavcan/test/protocol/transport_stats_provider.cpp b/libuavcan/test/protocol/transport_stats_provider.cpp index ded5af54ad..e309977d2f 100644 --- a/libuavcan/test/protocol/transport_stats_provider.cpp +++ b/libuavcan/test/protocol/transport_stats_provider.cpp @@ -49,7 +49,7 @@ TEST(TransportStatsProvider, Basic) ASSERT_EQ(1, tsp_cln.collector.result->response.can_iface_stats.size()); ASSERT_EQ(0, tsp_cln.collector.result->response.can_iface_stats[0].errors); ASSERT_EQ(2, tsp_cln.collector.result->response.can_iface_stats[0].frames_rx); - ASSERT_EQ(8, tsp_cln.collector.result->response.can_iface_stats[0].frames_tx); + ASSERT_EQ(6, tsp_cln.collector.result->response.can_iface_stats[0].frames_tx); /* * Sending a malformed frame, it must be registered as tranfer error @@ -80,5 +80,5 @@ TEST(TransportStatsProvider, Basic) ASSERT_EQ(1, tsp_cln.collector.result->response.can_iface_stats.size()); ASSERT_EQ(72, tsp_cln.collector.result->response.can_iface_stats[0].errors); ASSERT_EQ(4, tsp_cln.collector.result->response.can_iface_stats[0].frames_rx); // Same here - ASSERT_EQ(16, tsp_cln.collector.result->response.can_iface_stats[0].frames_tx); + ASSERT_EQ(12, tsp_cln.collector.result->response.can_iface_stats[0].frames_tx); }