2011-07-01 22:07:38 +00:00
|
|
|
//
|
|
|
|
|
// Copyright 2011 Ettus Research LLC
|
2018-02-19 23:30:32 +00:00
|
|
|
// Copyright 2018 Ettus Research, a National Instruments Company
|
2011-07-01 22:07:38 +00:00
|
|
|
//
|
2018-02-19 23:30:32 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2011-07-01 22:07:38 +00:00
|
|
|
//
|
|
|
|
|
|
2020-04-07 20:19:32 +00:00
|
|
|
#pragma once
|
2011-07-01 22:07:38 +00:00
|
|
|
|
|
|
|
|
#include <uhd/config.hpp>
|
|
|
|
|
#include <uhd/property_tree.hpp>
|
2020-03-02 23:25:13 +00:00
|
|
|
#include <uhd/usrp/subdev_spec.hpp>
|
2011-07-01 22:07:38 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
2020-03-02 23:25:13 +00:00
|
|
|
namespace uhd { namespace usrp {
|
2011-07-01 22:07:38 +00:00
|
|
|
|
2020-03-02 23:25:13 +00:00
|
|
|
//! Validate a subdev spec against a property tree
|
|
|
|
|
void validate_subdev_spec(property_tree::sptr tree,
|
|
|
|
|
const subdev_spec_t& spec,
|
|
|
|
|
const std::string& type, // rx or tx
|
|
|
|
|
const std::string& mb = "0");
|
2011-07-01 22:07:38 +00:00
|
|
|
|
2020-03-02 23:25:13 +00:00
|
|
|
}} // namespace uhd::usrp
|