diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-02-19 12:38:30 -0800 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-17 07:59:50 -0500 |
commit | a63682f981c3d4b828b5454a7d4849d181b9c8b3 (patch) | |
tree | 738f00e989da67eb89aee3978d05c6615be20cc7 /host/lib/include | |
parent | 1a19bc653ee499545addb2a8718d12069bfd6fcd (diff) | |
download | uhd-a63682f981c3d4b828b5454a7d4849d181b9c8b3.tar.gz uhd-a63682f981c3d4b828b5454a7d4849d181b9c8b3.tar.bz2 uhd-a63682f981c3d4b828b5454a7d4849d181b9c8b3.zip |
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.
Diffstat (limited to 'host/lib/include')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 6 |
1 files changed, 6 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 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 |