From 0ea553475ee58664e61dd26113059857c7df1f21 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 22 Jul 2019 11:51:29 -0700 Subject: rfnoc: async message: Include timestamp in async message handling Async messages (like, e.g., overrun messages) can include a timestamp. This change enables access to the timestamp in the async message handler. It is up to the FPGA block implementation to include the timestamp, if desired/necessary. The definition of the timestamp may also depend on the block, for example, the overrun async message will include the time when the overrun occurred. --- host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/include') diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index 9c3288164..0d10fd13b 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -269,7 +269,9 @@ private: // - Overrun info // - Underrun info // - Late data packets - void async_message_handler(uint32_t addr, const std::vector& data); + void async_message_handler(uint32_t addr, + const std::vector& data, + boost::optional timestamp); //! FPGA compat number const uint32_t _fpga_compat; -- cgit v1.2.3