aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/multi_usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-16 10:43:48 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:13 -0700
commitae9e89d76b2eb86a29995f04aaab1aa59ee93f04 (patch)
tree29b37a85c2779c9d3abca81028396f5e4cbdcebc /host/lib/usrp/multi_usrp.cpp
parentfe204a322ecbba4dd8b195987667651f0a1b7c80 (diff)
downloaduhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.gz
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.bz2
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.zip
usrp: added get_tx/rx_rates
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index ab841487f..97c5ea630 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -477,6 +477,10 @@ public:
return _tree->access<double>(rx_dsp_root(chan) / "rate" / "value").get();
}
+ meta_range_t get_rx_rates(size_t chan){
+ return _tree->access<meta_range_t>(rx_dsp_root(chan) / "rate" / "range").get();
+ }
+
tune_result_t set_rx_freq(const tune_request_t &tune_request, size_t chan){
tune_result_t r = tune_xx_subdev_and_dsp(RX_SIGN, _tree->subtree(rx_dsp_root(chan)), _tree->subtree(rx_rf_fe_root(chan)), tune_request);
do_tune_freq_warning_message(tune_request.target_freq, get_rx_freq(chan), "RX");
@@ -587,6 +591,10 @@ public:
return _tree->access<double>(tx_dsp_root(chan) / "rate" / "value").get();
}
+ meta_range_t get_tx_rates(size_t chan){
+ return _tree->access<meta_range_t>(tx_dsp_root(chan) / "rate" / "range").get();
+ }
+
tune_result_t set_tx_freq(const tune_request_t &tune_request, size_t chan){
tune_result_t r = tune_xx_subdev_and_dsp(TX_SIGN, _tree->subtree(tx_dsp_root(chan)), _tree->subtree(tx_rf_fe_root(chan)), tune_request);
do_tune_freq_warning_message(tune_request.target_freq, get_tx_freq(chan), "TX");