aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/include/uhd/usrp/multi_usrp.hpp15
-rw-r--r--host/lib/usrp/multi_usrp.cpp8
2 files changed, 23 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp
index 319301784..0509c2f1d 100644
--- a/host/include/uhd/usrp/multi_usrp.hpp
+++ b/host/include/uhd/usrp/multi_usrp.hpp
@@ -23,6 +23,7 @@
#define UHD_USRP_MULTI_USRP_GET_RATES_API
#define UHD_USRP_MULTI_USRP_FRONTEND_CAL_API
#define UHD_USRP_MULTI_USRP_COMMAND_TIME_API
+#define UHD_USRP_MULTI_USRP_BW_RANGE_API
#include <uhd/config.hpp>
#include <uhd/device.hpp>
@@ -505,6 +506,13 @@ public:
virtual double get_rx_bandwidth(size_t chan = 0) = 0;
/*!
+ * Get the range of the possible RX bandwidth settings.
+ * \param chan the channel index 0 to N-1
+ * \return a range of bandwidths in Hz
+ */
+ virtual meta_range_t get_rx_bandwidth_range(size_t chan = 0) = 0;
+
+ /*!
* Read the RSSI value on the RX frontend.
* \param chan the channel index 0 to N-1
* \return the rssi in dB
@@ -744,6 +752,13 @@ public:
virtual double get_tx_bandwidth(size_t chan = 0) = 0;
/*!
+ * Get the range of the possible TX bandwidth settings.
+ * \param chan the channel index 0 to N-1
+ * \return a range of bandwidths in Hz
+ */
+ virtual meta_range_t get_tx_bandwidth_range(size_t chan = 0) = 0;
+
+ /*!
* Get the dboard interface object for the TX frontend.
* The dboard interface gives access to GPIOs, SPI, I2C, low-speed ADC and DAC.
* Use at your own risk!
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index 43534ff37..d53004259 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -534,6 +534,10 @@ public:
return _tree->access<double>(rx_rf_fe_root(chan) / "bandwidth" / "value").get();
}
+ meta_range_t get_rx_bandwidth_range(size_t chan){
+ return _tree->access<meta_range_t>(rx_rf_fe_root(chan) / "bandwidth" / "range").get();
+ }
+
dboard_iface::sptr get_rx_dboard_iface(size_t chan){
return _tree->access<dboard_iface::sptr>(rx_rf_fe_root(chan).branch_path().branch_path() / "iface").get();
}
@@ -678,6 +682,10 @@ public:
return _tree->access<double>(tx_rf_fe_root(chan) / "bandwidth" / "value").get();
}
+ meta_range_t get_tx_bandwidth_range(size_t chan){
+ return _tree->access<meta_range_t>(tx_rf_fe_root(chan) / "bandwidth" / "range").get();
+ }
+
dboard_iface::sptr get_tx_dboard_iface(size_t chan){
return _tree->access<dboard_iface::sptr>(tx_rf_fe_root(chan).branch_path().branch_path() / "iface").get();
}