USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
dboard_base.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_USRP_DBOARD_BASE_HPP
19 #define INCLUDED_UHD_USRP_DBOARD_BASE_HPP
20 
21 #include <uhd/config.hpp>
22 #include <uhd/property_tree.hpp>
23 #include <uhd/utils/pimpl.hpp>
24 #include <boost/utility.hpp>
25 #include <boost/shared_ptr.hpp>
26 #include <uhd/usrp/dboard_id.hpp>
28 
29 namespace uhd{ namespace usrp{
30 
35 class UHD_API dboard_base : boost::noncopyable{
36 public:
37  typedef boost::shared_ptr<dboard_base> sptr;
43  typedef void * ctor_args_t;
44 
45  //structors
46  dboard_base(ctor_args_t);
47  virtual ~dboard_base() {}
48 
49  //post-construction initializer
50  virtual void initialize() {}
51 
52 protected:
53  std::string get_subdev_name(void);
54  dboard_iface::sptr get_iface(void);
55  dboard_id_t get_rx_id(void);
56  dboard_id_t get_tx_id(void);
57  property_tree::sptr get_rx_subtree(void);
58  property_tree::sptr get_tx_subtree(void);
59 
60 private:
61  UHD_PIMPL_DECL(impl) _impl;
62 };
63 
69 public:
74  virtual ~xcvr_dboard_base() {}
75 };
76 
82 public:
87  virtual ~rx_dboard_base() {}
88 };
89 
95 public:
100  virtual ~tx_dboard_base() {}
101 };
102 
103 }} //namespace
104 
105 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */
Definition: dboard_id.hpp:28
virtual ~dboard_base()
Definition: dboard_base.hpp:47
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:220
virtual void initialize()
Definition: dboard_base.hpp:50
Definition: build_info.hpp:25
Definition: dboard_base.hpp:81
Definition: dboard_base.hpp:94
Definition: dboard_base.hpp:68
boost::shared_ptr< dboard_base > sptr
Definition: dboard_base.hpp:37
void * ctor_args_t
Definition: dboard_base.hpp:43
#define UHD_PIMPL_DECL(_name)
Definition: pimpl.hpp:42
#define UHD_API
Definition: config.h:73
boost::shared_ptr< dboard_iface > sptr
Definition: dboard_iface.hpp:64
Definition: dboard_base.hpp:35
virtual ~rx_dboard_base()
Definition: dboard_base.hpp:87
virtual ~tx_dboard_base()
Definition: dboard_base.hpp:100
virtual ~xcvr_dboard_base()
Definition: dboard_base.hpp:74