diff options
author | Josh Blum <josh@joshknows.com> | 2012-03-01 18:35:12 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-03-23 14:36:56 -0700 |
commit | b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62 (patch) | |
tree | 8785ecaf8598c839fe15096f9dfad35f2eb11dd6 /host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp | |
parent | f59ef44a43d0d16655cb67a3d0334e8cacd76f09 (diff) | |
download | uhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.tar.gz uhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.tar.bz2 uhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.zip |
usrp2: implementation of timed commands working
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp index 8cdfb11a2..0f52f523e 100644 --- a/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp +++ b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.hpp @@ -18,6 +18,7 @@ #ifndef INCLUDED_USRP2_FIFO_CTRL_HPP #define INCLUDED_USRP2_FIFO_CTRL_HPP +#include <uhd/types/time_spec.hpp> #include <uhd/transport/zero_copy.hpp> #include <boost/shared_ptr.hpp> #include <boost/utility.hpp> @@ -34,6 +35,12 @@ public: //! Make a new FIFO control object static sptr make(uhd::transport::zero_copy_if::sptr xport); + + //! 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_USRP2_FIFO_CTRL_HPP */ |