aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_e3x0.cpp
blob: c7cc52d735dcda97b5fcb72fb59ef3946c0a3cb9 (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
//
// Copyright 2014 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

#include <uhd/utils/static.hpp>
#include <uhd/usrp/dboard_base.hpp>
#include <uhd/usrp/dboard_manager.hpp>

namespace uhd { namespace usrp {

/***********************************************************************
 * The E310 dboard
 *   AD9361 Interface, thus two subdevs
 **********************************************************************/
class e310_dboard : public xcvr_dboard_base{
public:
    e310_dboard(ctor_args_t args) : xcvr_dboard_base(args) {}

    virtual ~e310_dboard(void) {}
};

/***********************************************************************
 * The E310 dboard
 *   AD9364 Interface, thus one subdev
 **********************************************************************/
class e300_dboard : public xcvr_dboard_base{
public:
    e300_dboard(ctor_args_t args) : xcvr_dboard_base(args) {}

    virtual ~e300_dboard(void) {}
};

/***********************************************************************
 * Register the E310 dboards
 **********************************************************************/
static dboard_base::sptr make_e310_dboard(dboard_base::ctor_args_t args){
    return dboard_base::sptr(new e310_dboard(args));
}

static dboard_base::sptr make_e300_dboard(dboard_base::ctor_args_t args){
    return dboard_base::sptr(new e300_dboard(args));
}

}} // namespace

using namespace uhd::usrp;

UHD_STATIC_BLOCK(reg_e3x0_dboards){
    dboard_manager::register_dboard(0x0110, &make_e310_dboard, "E310 MIMO XCVR");
    dboard_manager::register_dboard(0x0100, &make_e300_dboard, "E300 SISO XCVR");
}