aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/radio_ctrl_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-02-08 10:05:55 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-08 22:33:18 +0100
commit31d81ecb2fc4a06c1a71ccc2071c63f934647049 (patch)
tree6bf9bb9775c4a9e327b9875c0681f3da14310de9 /host/lib/rfnoc/radio_ctrl_impl.cpp
parent20a776bce3eec84c093b23e79d01b715f8756d72 (diff)
downloaduhd-31d81ecb2fc4a06c1a71ccc2071c63f934647049.tar.gz
uhd-31d81ecb2fc4a06c1a71ccc2071c63f934647049.tar.bz2
uhd-31d81ecb2fc4a06c1a71ccc2071c63f934647049.zip
rfnoc: Add TX bandwidth APIs to radio_ctrl
Diffstat (limited to 'host/lib/rfnoc/radio_ctrl_impl.cpp')
-rw-r--r--host/lib/rfnoc/radio_ctrl_impl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp
index 8d77ff36b..827443ffd 100644
--- a/host/lib/rfnoc/radio_ctrl_impl.cpp
+++ b/host/lib/rfnoc/radio_ctrl_impl.cpp
@@ -184,6 +184,13 @@ double radio_ctrl_impl::set_rx_gain(const double gain, const size_t chan)
return _rx_gain[chan] = gain;
}
+double radio_ctrl_impl::set_tx_bandwidth(
+ const double bandwidth,
+ const size_t chan
+) {
+ return _tx_bandwidth[chan] = bandwidth;
+}
+
double radio_ctrl_impl::set_rx_bandwidth(const double bandwidth, const size_t chan)
{
return _rx_bandwidth[chan] = bandwidth;
@@ -229,6 +236,11 @@ double radio_ctrl_impl::get_rx_gain(const size_t chan) /* const */
return _rx_gain[chan];
}
+double radio_ctrl_impl::get_tx_bandwidth(const size_t chan) /* const */
+{
+ return _tx_bandwidth[chan];
+}
+
double radio_ctrl_impl::get_rx_bandwidth(const size_t chan) /* const */
{
return _rx_bandwidth[chan];