diff options
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 6 | ||||
-rw-r--r-- | host/lib/usrp/multi_usrp_python.hpp | 1 | ||||
-rw-r--r-- | host/lib/usrp/multi_usrp_rfnoc.cpp | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 04d054b60..b9a60a794 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -948,6 +948,12 @@ public: return nullptr; } + uhd::rfnoc::radio_control& get_radio_control(const size_t) + { + throw uhd::not_implemented_error( + "get_radio_control() not supported on this device!"); + } + /******************************************************************* * RX methods ******************************************************************/ diff --git a/host/lib/usrp/multi_usrp_python.hpp b/host/lib/usrp/multi_usrp_python.hpp index cf2db7690..6c2fd2ccf 100644 --- a/host/lib/usrp/multi_usrp_python.hpp +++ b/host/lib/usrp/multi_usrp_python.hpp @@ -85,6 +85,7 @@ void export_multi_usrp(py::module& m) .def("get_mboard_sensor" , &multi_usrp::get_mboard_sensor, py::arg("name"), py::arg("mboard") = 0) .def("get_mboard_sensor_names" , &multi_usrp::get_mboard_sensor_names, py::arg("mboard") = 0) .def("set_user_register" , &multi_usrp::set_user_register, py::arg("addr"), py::arg("data"), py::arg("mboard") = ALL_MBOARDS) + .def("get_radio_control" , &multi_usrp::get_radio_control, py::arg("chan") = 0) // RX methods .def("set_rx_subdev_spec" , &multi_usrp::set_rx_subdev_spec, py::arg("spec"), py::arg("mboard") = ALL_MBOARDS) diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp index e35121994..4554f4e57 100644 --- a/host/lib/usrp/multi_usrp_rfnoc.cpp +++ b/host/lib/usrp/multi_usrp_rfnoc.cpp @@ -933,6 +933,11 @@ public: return nullptr; } + uhd::rfnoc::radio_control& get_radio_control(const size_t chan = 0) + { + return *_get_rx_chan(chan).radio; + } + /******************************************************************* * RX methods ******************************************************************/ |