UHD 003.005.002-0-unknown

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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>
27 #include <uhd/usrp/dboard_iface.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
64 class UHD_API xcvr_dboard_base : public dboard_base{
65 public:
69 xcvr_dboard_base(ctor_args_t);
70 };
71
76 class UHD_API rx_dboard_base : public dboard_base{
77 public:
81 rx_dboard_base(ctor_args_t);
82 };
83
88 class UHD_API tx_dboard_base : public dboard_base{
89 public:
93 tx_dboard_base(ctor_args_t);
94 };
95
96 }} //namespace
97
98 #endif /* INCLUDED_UHD_USRP_DBOARD_BASE_HPP */
pimpl.hpp
property_tree.hpp
uhd::usrp::dboard_id_t
Definition: dboard_id.hpp:28
dboard_id.hpp
config.hpp
uhd::property_tree::sptr
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:122
UHD_API
#define UHD_API
Definition: config.hpp:76
uhd::usrp::rx_dboard_base
Definition: dboard_base.hpp:76
uhd::usrp::tx_dboard_base
Definition: dboard_base.hpp:88
uhd::usrp::xcvr_dboard_base
Definition: dboard_base.hpp:64
uhd::usrp::dboard_base::sptr
boost::shared_ptr< dboard_base > sptr
Definition: dboard_base.hpp:37
uhd::usrp::dboard_base::ctor_args_t
void * ctor_args_t
Definition: dboard_base.hpp:43
dboard_iface.hpp
UHD_PIMPL_DECL
#define UHD_PIMPL_DECL(_name)
Definition: pimpl.hpp:42
uhd::usrp::dboard_iface::sptr
boost::shared_ptr< dboard_iface > sptr
Definition: dboard_iface.hpp:60
uhd::usrp::dboard_base
Definition: dboard_base.hpp:35