1 //
2 // Copyright 2011 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
11 #include <uhd/property_tree.hpp>
12 #include <uhd/usrp/subdev_spec.hpp>
13 #include <string>
14 
15 namespace uhd { namespace usrp {
16 
17 //! Validate a subdev spec against a property tree
18 void validate_subdev_spec(property_tree::sptr tree,
19     const subdev_spec_t& spec,
20     const std::string& type, // rx or tx
21     const std::string& mb = "0");
22 
23 }} // namespace uhd::usrp
24