USRP Hardware Driver and USRP Manual  Version: 003.010.003.HEAD-0-gef157678
UHD and USRP Manual
dboard_base.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010,2017 Ettus Research, A National Instruments Company
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>
29 
30 namespace uhd{ namespace usrp{
31 
36 class UHD_API dboard_base : boost::noncopyable{
37 public:
38  typedef boost::shared_ptr<dboard_base> sptr;
44  typedef void * ctor_args_t;
45 
46  //structors
47  dboard_base(ctor_args_t);
48  virtual ~dboard_base() {}
49 
50  //post-construction initializer
51  virtual void initialize() {}
52 
53 protected:
54  std::string get_subdev_name(void);
55  dboard_iface::sptr get_iface(void);
56  dboard_id_t get_rx_id(void);
57  dboard_id_t get_tx_id(void);
58  dboard_eeprom_t get_rx_eeprom(void);
59  dboard_eeprom_t get_tx_eeprom(void);
60  property_tree::sptr get_rx_subtree(void);
61  property_tree::sptr get_tx_subtree(void);
62 
63 private:
64  UHD_PIMPL_DECL(impl) _impl;
65 };
66 
72 public:
77  virtual ~xcvr_dboard_base() {}
78 };
79 
85 public:
90  virtual ~rx_dboard_base() {}
91 };
92 
98 public:
103  virtual ~tx_dboard_base() {}
104 };
105 
106 }} //namespace
107 
108 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */
Definition: dboard_id.hpp:28
virtual ~dboard_base()
Definition: dboard_base.hpp:48
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:220
virtual void initialize()
Definition: dboard_base.hpp:51
Definition: build_info.hpp:25
Definition: dboard_base.hpp:84
Definition: dboard_base.hpp:97
Definition: dboard_eeprom.hpp:28
Definition: dboard_base.hpp:71
boost::shared_ptr< dboard_base > sptr
Definition: dboard_base.hpp:38
void * ctor_args_t
Definition: dboard_base.hpp:44
#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:36
virtual ~rx_dboard_base()
Definition: dboard_base.hpp:90
virtual ~tx_dboard_base()
Definition: dboard_base.hpp:103
virtual ~xcvr_dboard_base()
Definition: dboard_base.hpp:77