blob: 82f4b401642fd484197ecfb52a5d1eb0f78eff45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
//
// Copyright 2010 Ettus Research LLC
//
#include <usrp_uhd/usrp/dboard/base.hpp>
using namespace usrp_uhd::usrp::dboard;
/***********************************************************************
* base dboard base class
**********************************************************************/
base::base(ctor_args_t const& args){
boost::tie(_subdev_name, _dboard_interface) = args;
}
base::~base(void){
/* NOP */
}
std::string base::get_subdev_name(void){
return _subdev_name;
}
interface::sptr base::get_interface(void){
return _dboard_interface;
}
/***********************************************************************
* xcvr dboard base class
**********************************************************************/
xcvr_base::xcvr_base(ctor_args_t const& args) : base(args){
/* NOP */
}
xcvr_base::~xcvr_base(void){
/* NOP */
}
/***********************************************************************
* rx dboard base class
**********************************************************************/
rx_base::rx_base(ctor_args_t const& args) : base(args){
/* NOP */
}
rx_base::~rx_base(void){
/* NOP */
}
void rx_base::tx_get(const wax::type &, wax::type &){
throw std::runtime_error("cannot call tx_get on a rx dboard");
}
void rx_base::tx_set(const wax::type &, const wax::type &){
throw std::runtime_error("cannot call tx_set on a rx dboard");
}
/***********************************************************************
* tx dboard base class
**********************************************************************/
tx_base::tx_base(ctor_args_t const& args) : base(args){
/* NOP */
}
tx_base::~tx_base(void){
/* NOP */
}
void tx_base::rx_get(const wax::type &, wax::type &){
throw std::runtime_error("cannot call rx_get on a tx dboard");
}
void tx_base::rx_set(const wax::type &, const wax::type &){
throw std::runtime_error("cannot call rx_set on a tx dboard");
}
|