Files
UHD-Fairwaves/host/umtrx_fifo_ctrl.hpp
Josh Blum a59b9c381a host: fix include with newer uhd
Added explicit include of #include <boost/cstdint.hpp>
The uhd header wb_iface.hpp has moved from boost cstdint
to regular stdint.h and thus is lacking the boost include.
2017-01-17 22:55:35 -08:00

50 lines
1.6 KiB
C++

//
// 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_UMTRX_FIFO_CTRL_HPP
#define INCLUDED_UMTRX_FIFO_CTRL_HPP
#include <uhd/types/time_spec.hpp>
#include <uhd/types/serial.hpp>
#include <uhd/transport/zero_copy.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/utility.hpp>
#include <boost/cstdint.hpp>
#include <uhd/types/wb_iface.hpp>
#include <string>
/*!
* The umtrx FIFO control class:
* Provide high-speed peek/poke interface.
*/
class umtrx_fifo_ctrl : public uhd::wb_iface, public uhd::spi_iface
{
public:
typedef boost::shared_ptr<umtrx_fifo_ctrl> sptr;
//! Make a new FIFO control object
static sptr make(uhd::transport::zero_copy_if::sptr xport, const boost::uint32_t sid, const size_t window_size);
//! Set the command time that will activate
virtual void set_time(const uhd::time_spec_t &time) = 0;
//! Set the tick rate (converting time into ticks)
virtual void set_tick_rate(const double rate) = 0;
};
#endif /* INCLUDED_UMTRX_FIFO_CTRL_HPP */