diff options
author | michael-west <michael.west@ettus.com> | 2015-04-02 10:51:27 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-04-03 13:43:23 -0700 |
commit | ccf1d5c5e5f5c20ff77f45da3295b9dd5bdb6272 (patch) | |
tree | 6bc08220d844d540f2359262e29da659fc57a577 /host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp | |
parent | da5311407bdabcb7206f8ffb0b77de32d294f083 (diff) | |
download | uhd-ccf1d5c5e5f5c20ff77f45da3295b9dd5bdb6272.tar.gz uhd-ccf1d5c5e5f5c20ff77f45da3295b9dd5bdb6272.tar.bz2 uhd-ccf1d5c5e5f5c20ff77f45da3295b9dd5bdb6272.zip |
uhd: Add ability to get and set command time through dboard_iface.
This creates a wb_iface child class called timed_wb_iface, which
adds support for timed commands.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp index 9e8687b94..0276a7a66 100644 --- a/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp +++ b/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp @@ -155,6 +155,12 @@ public: if (_use_time) _timeout = MASSIVE_TIMEOUT; //permanently sets larger timeout } + uhd::time_spec_t get_time() + { + boost::mutex::scoped_lock lock(_mutex); + return _time; + } + void set_tick_rate(const double rate){ boost::mutex::scoped_lock lock(_mutex); _tick_rate = rate; |