aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/misc_utils.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-12 11:14:27 -0700
committerJosh Blum <josh@joshknows.com>2010-08-12 11:14:27 -0700
commit8bdc6cda2b5cc33b3eaf7f51d21d51887b77f45b (patch)
tree9aad81c1d1928793b066729c755fc35c5dda78c2 /host/lib/usrp/misc_utils.hpp
parentef6953024f1075a729e85f2511c75de337879888 (diff)
parent54048fd9b227633c724edd975347c81152ab37b2 (diff)
downloaduhd-8bdc6cda2b5cc33b3eaf7f51d21d51887b77f45b.tar.gz
uhd-8bdc6cda2b5cc33b3eaf7f51d21d51887b77f45b.tar.bz2
uhd-8bdc6cda2b5cc33b3eaf7f51d21d51887b77f45b.zip
Merge branch 'subdev_spec'
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 */