USRP Hardware Driver and USRP Manual  Version: 3.13.0.HEAD-0-gf114cfa0
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 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #ifndef INCLUDED_UHD_USRP_DBOARD_BASE_HPP
8 #define INCLUDED_UHD_USRP_DBOARD_BASE_HPP
9 
10 #include <uhd/config.hpp>
11 #include <uhd/property_tree.hpp>
12 #include <uhd/utils/pimpl.hpp>
13 #include <boost/utility.hpp>
14 #include <boost/shared_ptr.hpp>
15 #include <uhd/usrp/dboard_id.hpp>
18 
19 namespace uhd{ namespace usrp{
20 
25 class UHD_API dboard_base : boost::noncopyable{
26 public:
27  typedef boost::shared_ptr<dboard_base> sptr;
33  typedef void * ctor_args_t;
34 
35  //structors
36  dboard_base(ctor_args_t);
37  virtual ~dboard_base() {}
38 
39  //post-construction initializer
40  virtual void initialize() {}
41 
42 protected:
43  std::string get_subdev_name(void);
44  dboard_iface::sptr get_iface(void);
45  dboard_id_t get_rx_id(void);
46  dboard_id_t get_tx_id(void);
47  dboard_eeprom_t get_rx_eeprom(void);
48  dboard_eeprom_t get_tx_eeprom(void);
49  property_tree::sptr get_rx_subtree(void);
50  property_tree::sptr get_tx_subtree(void);
51 
52 private:
53  UHD_PIMPL_DECL(impl) _impl;
54 };
55 
61 public:
66  virtual ~xcvr_dboard_base() {}
67 };
68 
74 public:
79  virtual ~rx_dboard_base() {}
80 };
81 
87 public:
92  virtual ~tx_dboard_base() {}
93 };
94 
95 }} //namespace
96 
97 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */
Definition: dboard_id.hpp:18
virtual ~dboard_base()
Definition: dboard_base.hpp:37
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:210
virtual void initialize()
Definition: dboard_base.hpp:40
Definition: build_info.hpp:14
Definition: dboard_base.hpp:73
Definition: dboard_base.hpp:86
Definition: dboard_eeprom.hpp:18
Definition: dboard_base.hpp:60
boost::shared_ptr< dboard_base > sptr
Definition: dboard_base.hpp:27
void * ctor_args_t
Definition: dboard_base.hpp:33
#define UHD_PIMPL_DECL(_name)
Definition: pimpl.hpp:32
#define UHD_API
Definition: config.h:63
boost::shared_ptr< dboard_iface > sptr
Definition: dboard_iface.hpp:54
Definition: dboard_base.hpp:25
virtual ~rx_dboard_base()
Definition: dboard_base.hpp:79
virtual ~tx_dboard_base()
Definition: dboard_base.hpp:92
virtual ~xcvr_dboard_base()
Definition: dboard_base.hpp:66