diff options
author | michael-west <michael.west@ettus.com> | 2021-11-04 13:53:20 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-11-17 14:04:34 -0800 |
commit | 9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926 (patch) | |
tree | 2014c004d639a86d03504f89630c78d8333d2973 /host/include | |
parent | 43ab4c8b43d8407fc9f345ca4b13634f03ad4a43 (diff) | |
download | uhd-9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926.tar.gz uhd-9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926.tar.bz2 uhd-9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926.zip |
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 <michael.west@ettus.com>
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/radio_control.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -65,6 +65,20 @@ public: 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 *************************************************************************/ /*! Return a list of TX gain profiles for this radio |