diff options
author | ejk <ejkreinar@gmail.com> | 2016-12-28 12:11:07 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-02-27 16:30:50 -0800 |
commit | 79a797d5b376fbfa51ffcd42d57956e83b4903c9 (patch) | |
tree | 0e7a1ce8e36cd4af38aafc6a7360a8214c21c79d /host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | |
parent | 0802747072b3b8506f992141deb40af0f9df0b81 (diff) | |
download | uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.tar.gz uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.tar.bz2 uhd-79a797d5b376fbfa51ffcd42d57956e83b4903c9.zip |
Rfnoc: Exposed analog lowpass bandwidth option in X300 ctrls
Diffstat (limited to 'host/lib/usrp/x300/x300_radio_ctrl_impl.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index 90cb20ce3..c84b2ba44 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -228,6 +228,20 @@ double x300_radio_ctrl_impl::get_rx_frequency(const size_t chan) ).get(); } +double x300_radio_ctrl_impl::set_rx_bandwidth(const double bandwidth, const size_t chan) +{ + return _tree->access<double>( + fs_path("dboards" / _radio_slot / "rx_frontends" / _rx_fe_map.at(chan).db_fe_name / "bandwidth" / "value") + ).set(bandwidth).get(); +} + +double x300_radio_ctrl_impl::get_rx_bandwidth(const size_t chan) +{ + return _tree->access<double>( + fs_path("dboards" / _radio_slot / "rx_frontends" / _rx_fe_map.at(chan).db_fe_name / "bandwidth" / "value") + ).get(); +} + double x300_radio_ctrl_impl::set_tx_gain(const double gain, const size_t chan) { //TODO: This is extremely hacky! |