diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp index 196b9490e3..3d1fc2b372 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp @@ -188,7 +188,12 @@ public: bool isRxBufferEmpty() const; /** - * Total number of hardware failures. + * Number of RX frames lost due to queue overflow. + */ + uavcan::uint32_t getRxQueueOverflowCount() const { return rx_queue_.getOverflowCount(); } + + /** + * Total number of hardware failures and other kinds of errors (e.g. queue overruns). * May increase continuously if the interface is not connected to the bus. */ virtual uavcan::uint64_t getErrorCount() const;