diff options
author | Josh Blum <josh@joshknows.com> | 2012-02-29 16:28:56 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-03-23 14:36:55 -0700 |
commit | fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc (patch) | |
tree | 60eef713ae44d10a0840505a0f6fe94739645b8d /host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp | |
parent | e4d3f63ce0bb04287a61e9547acfa02a50e84326 (diff) | |
download | uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.tar.gz uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.tar.bz2 uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.zip |
usrp2: host and fw implementation for fifo control
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp new file mode 100644 index 000000000..8cdfb11a2 --- /dev/null +++ b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp @@ -0,0 +1,39 @@ +// +// Copyright 2012 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_USRP2_FIFO_CTRL_HPP +#define INCLUDED_USRP2_FIFO_CTRL_HPP + +#include <uhd/transport/zero_copy.hpp> +#include <boost/shared_ptr.hpp> +#include <boost/utility.hpp> +#include "wb_iface.hpp" +#include <string> + +/*! + * The usrp2 FIFO control class: + * Provide high-speed peek/poke interface. + */ +class usrp2_fifo_ctrl : public wb_iface{ +public: + typedef boost::shared_ptr<usrp2_fifo_ctrl> sptr; + + //! Make a new FIFO control object + static sptr make(uhd::transport::zero_copy_if::sptr xport); +}; + +#endif /* INCLUDED_USRP2_FIFO_CTRL_HPP */ |