aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/single_usrp.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-10-11 18:21:11 -0700
committerNick Foster <nick@nerdnetworks.org>2010-10-11 18:23:10 -0700
commitf28c07db44694e3cce96502183c7570a386987f5 (patch)
treeb9a6bb11274e00a184cdc394ba50c6a35095d975 /host/lib/usrp/single_usrp.cpp
parent445a5ca2c7d822ea576eab6aca51cf340df1ca15 (diff)
downloaduhd-f28c07db44694e3cce96502183c7570a386987f5.tar.gz
uhd-f28c07db44694e3cce96502183c7570a386987f5.tar.bz2
uhd-f28c07db44694e3cce96502183c7570a386987f5.zip
UHD: Brought out set_rx_bandwidth for dboards with programmable rx filters.
Diffstat (limited to 'host/lib/usrp/single_usrp.cpp')
-rw-r--r--host/lib/usrp/single_usrp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/single_usrp.cpp b/host/lib/usrp/single_usrp.cpp
index 08dc3bb1d..7d053535e 100644
--- a/host/lib/usrp/single_usrp.cpp
+++ b/host/lib/usrp/single_usrp.cpp
@@ -202,6 +202,10 @@ public:
dboard_iface::sptr get_rx_dboard_iface(size_t chan){
return _rx_dboard(chan)[DBOARD_PROP_DBOARD_IFACE].as<dboard_iface::sptr>();
}
+
+ void set_rx_bandwidth(float bandwidth, size_t chan) {
+ _rx_subdev(chan)[SUBDEV_PROP_BANDWIDTH] = bandwidth;
+ }
/*******************************************************************
* TX methods