From b9f9ca2d0fd43f2a55e4ed5301070585cbb1be3c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 6 Aug 2020 20:55:35 +0200 Subject: uhd: Add APIs for getting the available power range The previously added APIs for getting/setting power reference levels was missing an option to read back the currently available power levels (minimum and maximum power levels). This adds getters for TX and RX power ranges to multi_usrp and radio_control. The power API is thus now more similar to the gain API, which always had getters for gain ranges. --- host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 2 ++ 1 file changed, 2 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 5ea1e57f0..f60319d32 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -111,6 +111,8 @@ public: virtual double get_tx_power_reference(const size_t chan); virtual std::vector get_rx_power_ref_keys(const size_t); virtual std::vector get_tx_power_ref_keys(const size_t); + virtual meta_range_t get_rx_power_range(const size_t chan); + virtual meta_range_t get_tx_power_range(const size_t chan); /************************************************************************** * LO Controls -- cgit v1.2.3