aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/misc_utils.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-11 12:27:18 -0700
committerJosh Blum <josh@joshknows.com>2010-08-11 12:27:18 -0700
commit54048fd9b227633c724edd975347c81152ab37b2 (patch)
treef922ac5f19fa26249360b3c6614ceb45d482b391 /host/lib/usrp/misc_utils.hpp
parent9503c5101007ba1261b8d23ee6a17305bbaa6f2a (diff)
downloaduhd-54048fd9b227633c724edd975347c81152ab37b2.tar.gz
uhd-54048fd9b227633c724edd975347c81152ab37b2.tar.bz2
uhd-54048fd9b227633c724edd975347c81152ab37b2.zip
usrp: added subdev spec verification functions
Diffstat (limited to 'host/lib/usrp/misc_utils.hpp')
-rw-r--r--host/lib/usrp/misc_utils.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/lib/usrp/misc_utils.hpp b/host/lib/usrp/misc_utils.hpp
index 7fe3c899d..e5d3bd849 100644
--- a/host/lib/usrp/misc_utils.hpp
+++ b/host/lib/usrp/misc_utils.hpp
@@ -20,6 +20,7 @@
#include <uhd/config.hpp>
#include <uhd/wax.hpp>
+#include <uhd/usrp/subdev_spec.hpp>
#include <uhd/utils/gain_group.hpp>
namespace uhd{ namespace usrp{
@@ -29,6 +30,24 @@ namespace uhd{ namespace usrp{
*/
gain_group::sptr make_gain_group(wax::obj subdev, wax::obj codec);
+ /*!
+ * Verify the rx subdevice specification.
+ * If the subdev spec if empty, automatically fill it.
+ * \param subdev_spec the subdev spec to verify/fill
+ * \param mboard the motherboard properties object
+ * \throw exception when the subdev spec is invalid
+ */
+ void verify_rx_subdev_spec(subdev_spec_t &subdev_spec, wax::obj mboard);
+
+ /*!
+ * Verify the tx subdevice specification.
+ * If the subdev spec if empty, automatically fill it.
+ * \param subdev_spec the subdev spec to verify/fill
+ * \param mboard the motherboard properties object
+ * \throw exception when the subdev spec is invalid
+ */
+ void verify_tx_subdev_spec(subdev_spec_t &subdev_spec, wax::obj mboard);
+
}} //namespace
#endif /* INCLUDED_LIBUHD_USRP_MISC_UTILS_HPP */