diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-11 19:54:11 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-11 19:54:11 -0700 |
commit | 80469eedb76994b39a40ff94e31c4de924fc33e2 (patch) | |
tree | 891f33b987d28ce7c937f8efad599a9d83721518 /host/lib/usrp/single_usrp.cpp | |
parent | 02b25d347e9b4cf23be2b84fb43db01471ad6ec3 (diff) | |
parent | 3b36c206e56b415974ed83a52a652b65f9de1add (diff) | |
download | uhd-80469eedb76994b39a40ff94e31c4de924fc33e2.tar.gz uhd-80469eedb76994b39a40ff94e31c4de924fc33e2.tar.bz2 uhd-80469eedb76994b39a40ff94e31c4de924fc33e2.zip |
Merge branch 'set_bandwidth'
Diffstat (limited to 'host/lib/usrp/single_usrp.cpp')
-rw-r--r-- | host/lib/usrp/single_usrp.cpp | 4 |
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 |