From a63682f981c3d4b828b5454a7d4849d181b9c8b3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 19 Feb 2020 12:38:30 -0800 Subject: uhd: Add reference power level API to multi_usrp and radio_control This adds the following API calls: - multi_usrp::has_{rx,tx}_power_reference() - multi_usrp::set_{rx,tx}_power_reference() - multi_usrp::get_{rx,tx}_power_reference() - radio_control::has_{rx,tx}_power_reference() - radio_control::set_{rx,tx}_power_reference() - radio_control::get_{rx,tx}_power_reference() It also adds a manual page explaining the philosophy of the API. Note that this does not actually add this feature to any device implementation. Calling the new API calls will thus result in `uhd::not_implemented_error` exceptions being thrown. This commit is to lock down the API and ABI. --- host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/include') diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index c3a6bd507..4916ecf6f 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -72,6 +72,8 @@ public: virtual double set_rx_bandwidth(const double bandwidth, const size_t chan); virtual void set_tx_gain_profile(const std::string& profile, const size_t chan); virtual void set_rx_gain_profile(const std::string& profile, const size_t chan); + virtual void set_rx_power_reference(const double power_dbm, const size_t chan); + virtual void set_tx_power_reference(const double power_dbm, const size_t chan); // Getters virtual std::string get_tx_antenna(const size_t chan) const; @@ -100,6 +102,10 @@ public: virtual double get_rx_bandwidth(const size_t); virtual meta_range_t get_tx_bandwidth_range(size_t chan) const; virtual meta_range_t get_rx_bandwidth_range(size_t chan) const; + virtual bool has_rx_power_reference(const size_t chan); + virtual bool has_tx_power_reference(const size_t chan); + virtual double get_rx_power_reference(const size_t chan); + virtual double get_tx_power_reference(const size_t chan); /************************************************************************** * LO Controls -- cgit v1.2.3