diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-10 19:33:38 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-10 19:33:38 -0800 |
commit | 9c0fb5e15da3c8ccbc1c8537671703411b210fcf (patch) | |
tree | f6a516c76b2db84903a2e2e44b30af7a49997cb1 /host/lib/usrp/dboard/dboards.hpp | |
parent | 8e9a8464386db03a596e0b88d0714d22723d37d0 (diff) | |
download | uhd-9c0fb5e15da3c8ccbc1c8537671703411b210fcf.tar.gz uhd-9c0fb5e15da3c8ccbc1c8537671703411b210fcf.tar.bz2 uhd-9c0fb5e15da3c8ccbc1c8537671703411b210fcf.zip |
Filled in dboard code for basics and lf type boards.
The dboard is now just a uint16 (dont bother with the enums).
The dboard manager now registers subdevs with a name.
The basic board code uses a static block to register itself.
Diffstat (limited to 'host/lib/usrp/dboard/dboards.hpp')
-rw-r--r-- | host/lib/usrp/dboard/dboards.hpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/host/lib/usrp/dboard/dboards.hpp b/host/lib/usrp/dboard/dboards.hpp deleted file mode 100644 index 79b90d593..000000000 --- a/host/lib/usrp/dboard/dboards.hpp +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2010 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/>. -// - -#ifndef INCLUDED_LOCAL_DBOARDS_HPP -#define INCLUDED_LOCAL_DBOARDS_HPP - -#include <uhd/usrp/dboard_base.hpp> - -using namespace uhd::usrp; - -/*********************************************************************** - * The basic boards: - **********************************************************************/ -class basic_rx : public rx_dboard_base{ -public: - static dboard_base::sptr make(ctor_args_t const& args){ - return dboard_base::sptr(new basic_rx(args)); - } - basic_rx(ctor_args_t const& args); - ~basic_rx(void); - - void rx_get(const wax::obj &key, wax::obj &val); - void rx_set(const wax::obj &key, const wax::obj &val); -}; - -class basic_tx : public tx_dboard_base{ -public: - static dboard_base::sptr make(ctor_args_t const& args){ - return dboard_base::sptr(new basic_tx(args)); - } - basic_tx(ctor_args_t const& args); - ~basic_tx(void); - - void tx_get(const wax::obj &key, wax::obj &val); - void tx_set(const wax::obj &key, const wax::obj &val); - -}; - -#endif /* INCLUDED_LOCAL_DBOARDS_HPP */ |