From 9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926 Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 4 Nov 2021 13:53:20 -0700 Subject: host: Add ability to get time from Radio block Add API calls to Radio control to get ticks and time. Signed-off-by: michael-west --- host/include/uhd/rfnoc/radio_control.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/radio_control.hpp b/host/include/uhd/rfnoc/radio_control.hpp index ffa9b64fe..ab30be02c 100644 --- a/host/include/uhd/rfnoc/radio_control.hpp +++ b/host/include/uhd/rfnoc/radio_control.hpp @@ -64,6 +64,20 @@ public: // Ultimately, the exact impact of SPC is device-dependent. virtual size_t get_spc() const = 0; + /************************************************************************** + * Time-Related API Calls + *************************************************************************/ + /*! Get tick count + * \returns tick count + * \throws uhd::not_implemented_error if not implemented + */ + virtual uint64_t get_ticks_now() = 0; + /*! Get the time + * \returns time now + * \throws uhd::not_implemented_error if not implemented + */ + virtual uhd::time_spec_t get_time_now() = 0; + /************************************************************************** * RF-Related API Calls *************************************************************************/ -- cgit v1.2.3