USRP Hardware Driver and USRP Manual  Version: 003.009.007-0-g50839059
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 
48 protected:
49  std::string get_subdev_name(void);
50  dboard_iface::sptr get_iface(void);
51  dboard_id_t get_rx_id(void);
52  dboard_id_t get_tx_id(void);
53  property_tree::sptr get_rx_subtree(void);
54  property_tree::sptr get_tx_subtree(void);
55 
56 private:
57  UHD_PIMPL_DECL(impl) _impl;
58 };
59 
65 public:
70 };
71 
77 public:
82 };
83 
89 public:
94 };
95 
96 }} //namespace
97 
98 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */
Definition: dboard_id.hpp:28
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:130
Definition: convert.hpp:28
Definition: dboard_base.hpp:76
Definition: dboard_base.hpp:88
Definition: dboard_base.hpp:64
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:66
boost::shared_ptr< dboard_iface > sptr
Definition: dboard_iface.hpp:61
Definition: dboard_base.hpp:35