aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
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/include
parentfe204a322ecbba4dd8b195987667651f0a1b7c80 (diff)
downloaduhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.gz
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.tar.bz2
uhd-ae9e89d76b2eb86a29995f04aaab1aa59ee93f04.zip
usrp: added get_tx/rx_rates
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/multi_usrp.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp
index ee7bf8424..baa47b39e 100644
--- a/host/include/uhd/usrp/multi_usrp.hpp
+++ b/host/include/uhd/usrp/multi_usrp.hpp
@@ -18,7 +18,9 @@
#ifndef INCLUDED_UHD_USRP_MULTI_USRP_HPP
#define INCLUDED_UHD_USRP_MULTI_USRP_HPP
+//define API capabilities for compile time detection of new features
#define UHD_USRP_MULTI_USRP_REF_SOURCES_API
+#define UHD_USRP_MULTI_USRP_GET_RATES_API
#include <uhd/config.hpp>
#include <uhd/device.hpp>
@@ -368,6 +370,13 @@ public:
virtual double get_rx_rate(size_t chan = 0) = 0;
/*!
+ * Get a range of possible RX rates.
+ * \param chan the channel index 0 to N-1
+ * \return the meta range of rates
+ */
+ virtual meta_range_t get_rx_rates(size_t chan = 0) = 0;
+
+ /*!
* Set the RX center frequency.
* \param tune_request tune request instructions
* \param chan the channel index 0 to N-1
@@ -568,6 +577,13 @@ public:
virtual double get_tx_rate(size_t chan = 0) = 0;
/*!
+ * Get a range of possible TX rates.
+ * \param chan the channel index 0 to N-1
+ * \return the meta range of rates
+ */
+ virtual meta_range_t get_tx_rates(size_t chan = 0) = 0;
+
+ /*!
* Set the TX center frequency.
* \param tune_request tune request instructions
* \param chan the channel index 0 to N-1