aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-03-17 17:00:24 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-19 15:40:52 -0500
commita815bb2b6bfd772e3cb8ca61357390cd451d5ecf (patch)
tree4459db2703ac94c37825746d8a5bc8509815d2bf /host/lib/include/uhdlib
parentf2a3954ce3f3c89a464cc36eafa8c72e2b821c32 (diff)
downloaduhd-a815bb2b6bfd772e3cb8ca61357390cd451d5ecf.tar.gz
uhd-a815bb2b6bfd772e3cb8ca61357390cd451d5ecf.tar.bz2
uhd-a815bb2b6bfd772e3cb8ca61357390cd451d5ecf.zip
rfnoc: radio: Add getter for SPC value
This adds uhd::rfnoc::radio_control::get_spc(). It can be overridden by radio implementations, but radio_control_impl has a sensible default implementation, return the value that is in the SPC radio register.
Diffstat (limited to 'host/lib/include/uhdlib')
-rw-r--r--host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
index 7d9ce6ec2..0ff0e9b12 100644
--- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
+++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
@@ -56,6 +56,7 @@ public:
double set_rate(const double rate) override;
double get_rate() const override;
meta_range_t get_rate_range() const override;
+ size_t get_spc() const override;
/**************************************************************************
* RF-specific API calls