UHD 003.004.000-release
|
00001 // 00002 // Copyright 2010 Ettus Research LLC 00003 // 00004 // This program is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #ifndef INCLUDED_UHD_USRP_DBOARD_BASE_HPP 00019 #define INCLUDED_UHD_USRP_DBOARD_BASE_HPP 00020 00021 #include <uhd/config.hpp> 00022 #include <uhd/property_tree.hpp> 00023 #include <uhd/utils/pimpl.hpp> 00024 #include <boost/utility.hpp> 00025 #include <boost/shared_ptr.hpp> 00026 #include <uhd/usrp/dboard_id.hpp> 00027 #include <uhd/usrp/dboard_iface.hpp> 00028 00029 namespace uhd{ namespace usrp{ 00030 00035 class UHD_API dboard_base : boost::noncopyable{ 00036 public: 00037 typedef boost::shared_ptr<dboard_base> sptr; 00043 typedef void * ctor_args_t; 00044 00045 //structors 00046 dboard_base(ctor_args_t); 00047 00048 protected: 00049 std::string get_subdev_name(void); 00050 dboard_iface::sptr get_iface(void); 00051 dboard_id_t get_rx_id(void); 00052 dboard_id_t get_tx_id(void); 00053 property_tree::sptr get_rx_subtree(void); 00054 property_tree::sptr get_tx_subtree(void); 00055 00056 private: 00057 UHD_PIMPL_DECL(impl) _impl; 00058 }; 00059 00064 class UHD_API xcvr_dboard_base : public dboard_base{ 00065 public: 00069 xcvr_dboard_base(ctor_args_t); 00070 }; 00071 00076 class UHD_API rx_dboard_base : public dboard_base{ 00077 public: 00081 rx_dboard_base(ctor_args_t); 00082 }; 00083 00088 class UHD_API tx_dboard_base : public dboard_base{ 00089 public: 00093 tx_dboard_base(ctor_args_t); 00094 }; 00095 00096 }} //namespace 00097 00098 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */