root / lib / usrp / dboard / dboards.hpp @ cc8caeb1
History | View | Annotate | Download (1.66 KB)
| 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_LOCAL_DBOARDS_HPP
|
| 19 |
#define INCLUDED_LOCAL_DBOARDS_HPP
|
| 20 |
|
| 21 |
#include <usrp_uhd/usrp/dboard/base.hpp> |
| 22 |
|
| 23 |
using namespace usrp_uhd::usrp::dboard; |
| 24 |
|
| 25 |
/***********************************************************************
|
| 26 |
* The basic boards:
|
| 27 |
**********************************************************************/
|
| 28 |
class basic_rx : public rx_base{ |
| 29 |
public:
|
| 30 |
static base::sptr make(ctor_args_t const& args){ |
| 31 |
return base::sptr(new basic_rx(args)); |
| 32 |
} |
| 33 |
basic_rx(ctor_args_t const& args);
|
| 34 |
~basic_rx(void);
|
| 35 |
|
| 36 |
void rx_get(const wax::obj &key, wax::obj &val); |
| 37 |
void rx_set(const wax::obj &key, const wax::obj &val); |
| 38 |
}; |
| 39 |
|
| 40 |
class basic_tx : public tx_base{ |
| 41 |
public:
|
| 42 |
static base::sptr make(ctor_args_t const& args){ |
| 43 |
return base::sptr(new basic_tx(args)); |
| 44 |
} |
| 45 |
basic_tx(ctor_args_t const& args);
|
| 46 |
~basic_tx(void);
|
| 47 |
|
| 48 |
void tx_get(const wax::obj &key, wax::obj &val); |
| 49 |
void tx_set(const wax::obj &key, const wax::obj &val); |
| 50 |
|
| 51 |
}; |
| 52 |
|
| 53 |
#endif /* INCLUDED_LOCAL_DBOARDS_HPP */ |