aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp1
-rw-r--r--host/lib/rfnoc/radio_control_impl.cpp5
-rw-r--r--host/lib/rfnoc/radio_control_python.hpp1
3 files changed, 7 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
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp
index 709bbd87d..0a3eda277 100644
--- a/host/lib/rfnoc/radio_control_impl.cpp
+++ b/host/lib/rfnoc/radio_control_impl.cpp
@@ -289,6 +289,11 @@ uhd::meta_range_t radio_control_impl::get_rate_range() const
return result;
}
+size_t radio_control_impl::get_spc() const
+{
+ return _spc;
+}
+
/****************************************************************************
* RF API
***************************************************************************/
diff --git a/host/lib/rfnoc/radio_control_python.hpp b/host/lib/rfnoc/radio_control_python.hpp
index 2f76209f2..3fb6371da 100644
--- a/host/lib/rfnoc/radio_control_python.hpp
+++ b/host/lib/rfnoc/radio_control_python.hpp
@@ -21,6 +21,7 @@ void export_radio_control(py::module& m)
.def("set_rate", &radio_control::set_rate)
.def("get_rate", &radio_control::get_rate)
.def("get_rate_range", &radio_control::get_rate_range)
+ .def("get_spc", &radio_control::get_spc)
.def("get_tx_antenna", &radio_control::get_tx_antenna)
.def("get_tx_antennas", &radio_control::get_tx_antennas)
.def("set_tx_antenna", &radio_control::set_tx_antenna)