aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/misc_utils.hpp
diff options
context:
space:
mode:
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 */