summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-19 15:42:21 -0700
committerJosh Blum <josh@joshknows.com>2010-10-19 15:42:21 -0700
commit799d5059bae77a24267cfc33b33c4af1c0de8c5b (patch)
tree24fc0807ee85f0bca7660558b6f08ff878125c13 /host/include
parent1137ab33e51ad809ab7b21dea7e375e8c88b0cb8 (diff)
downloaduhd-799d5059bae77a24267cfc33b33c4af1c0de8c5b.tar.gz
uhd-799d5059bae77a24267cfc33b33c4af1c0de8c5b.tar.bz2
uhd-799d5059bae77a24267cfc33b33c4af1c0de8c5b.zip
usrp: change the bandwidth param to a double (its a frequency), add set and gets for BW in the wrappers
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/multi_usrp.hpp8
-rw-r--r--host/include/uhd/usrp/single_usrp.hpp8
2 files changed, 12 insertions, 4 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp
index 65c7e9044..dcec0c515 100644
--- a/host/include/uhd/usrp/multi_usrp.hpp
+++ b/host/include/uhd/usrp/multi_usrp.hpp
@@ -201,6 +201,9 @@ public:
virtual bool get_rx_lo_locked(size_t chan) = 0;
+ virtual void set_rx_bandwidth(double bandwidth, size_t chan) = 0;
+ virtual double get_rx_bandwidth(size_t chan) = 0;
+
/*!
* Read the RSSI value from a usrp device.
* Or throw if the dboard does not support an RSSI readback.
@@ -209,8 +212,6 @@ public:
virtual float read_rssi(size_t chan) = 0;
virtual dboard_iface::sptr get_rx_dboard_iface(size_t chan) = 0;
-
- virtual void set_rx_bandwidth(float bandwidth, size_t chan) = 0;
/*******************************************************************
* TX methods
@@ -251,6 +252,9 @@ public:
virtual bool get_tx_lo_locked(size_t chan) = 0;
+ virtual void set_tx_bandwidth(double bandwidth, size_t chan) = 0;
+ virtual double get_tx_bandwidth(size_t chan) = 0;
+
virtual dboard_iface::sptr get_tx_dboard_iface(size_t chan) = 0;
};
diff --git a/host/include/uhd/usrp/single_usrp.hpp b/host/include/uhd/usrp/single_usrp.hpp
index 2266e7f2c..9b2fd7ccf 100644
--- a/host/include/uhd/usrp/single_usrp.hpp
+++ b/host/include/uhd/usrp/single_usrp.hpp
@@ -144,6 +144,9 @@ public:
virtual bool get_rx_lo_locked(size_t chan = 0) = 0;
+ virtual void set_rx_bandwidth(double bandwidth, size_t chan = 0) = 0;
+ virtual double get_rx_bandwidth(size_t chan = 0) = 0;
+
/*!
* Read the RSSI value from a usrp device.
* Or throw if the dboard does not support an RSSI readback.
@@ -152,8 +155,6 @@ public:
virtual float read_rssi(size_t chan = 0) = 0;
virtual dboard_iface::sptr get_rx_dboard_iface(size_t chan = 0) = 0;
-
- virtual void set_rx_bandwidth(float bandwidth, size_t chan = 0) = 0;
/*******************************************************************
* TX methods
@@ -186,6 +187,9 @@ public:
virtual bool get_tx_lo_locked(size_t chan = 0) = 0;
+ virtual void set_tx_bandwidth(double bandwidth, size_t chan = 0) = 0;
+ virtual double get_tx_bandwidth(size_t chan = 0) = 0;
+
virtual dboard_iface::sptr get_tx_dboard_iface(size_t chan = 0) = 0;
};