diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-06 12:32:49 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-11 16:00:05 -0500 |
commit | 91378ee07f4c466e3a3836ddb0c2f59d8710d112 (patch) | |
tree | d9db2fd5e8143691b8b3e2f1f5b7cdf9f3e6d5c4 /host/lib/usrp/multi_usrp_python.hpp | |
parent | cdd4b782d1f399de5584da3ac174e739e8c77953 (diff) | |
download | uhd-91378ee07f4c466e3a3836ddb0c2f59d8710d112.tar.gz uhd-91378ee07f4c466e3a3836ddb0c2f59d8710d112.tar.bz2 uhd-91378ee07f4c466e3a3836ddb0c2f59d8710d112.zip |
uhd: Add reference power level API to multi_usrp and radio_control
This adds the has_* API calls to the Python API.
Diffstat (limited to 'host/lib/usrp/multi_usrp_python.hpp')
-rw-r--r-- | host/lib/usrp/multi_usrp_python.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp_python.hpp b/host/lib/usrp/multi_usrp_python.hpp index 62f34ffa2..cf2db7690 100644 --- a/host/lib/usrp/multi_usrp_python.hpp +++ b/host/lib/usrp/multi_usrp_python.hpp @@ -126,6 +126,7 @@ void export_multi_usrp(py::module& m) .def("get_rx_gain_profile" , &multi_usrp::get_rx_gain_profile, py::arg("chan") = 0) .def("set_rx_gain_profile" , &multi_usrp::set_rx_gain_profile, py::arg("profile"), py::arg("chan") = 0) .def("get_rx_gain_profile_names", &multi_usrp::get_rx_gain_profile_names, py::arg("chan") = 0) + .def("has_rx_power_reference" , &multi_usrp::has_rx_power_reference, py::arg("chan") = 0) .def("set_rx_power_reference" , &multi_usrp::set_rx_power_reference, py::arg("power_dbm"), py::arg("chan") = 0) .def("get_rx_power_reference" , &multi_usrp::get_rx_power_reference, py::arg("chan") = 0) @@ -166,6 +167,7 @@ void export_multi_usrp(py::module& m) .def("get_tx_gain_profile" , &multi_usrp::get_tx_gain_profile, py::arg("chan") = 0) .def("set_tx_gain_profile" , &multi_usrp::set_tx_gain_profile, py::arg("profile"), py::arg("chan") = 0) .def("get_tx_gain_profile_names", &multi_usrp::get_tx_gain_profile_names, py::arg("chan") = 0) + .def("has_tx_power_reference" , &multi_usrp::has_tx_power_reference, py::arg("chan") = 0) .def("set_tx_power_reference" , &multi_usrp::set_tx_power_reference, py::arg("power_dbm"), py::arg("chan") = 0) .def("get_tx_power_reference" , &multi_usrp::get_tx_power_reference, py::arg("chan") = 0) |