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/dboard_iface.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/dboard_iface.cpp')
-rw-r--r-- | host/lib/usrp/dboard_iface.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_iface.cpp b/host/lib/usrp/dboard_iface.cpp index 6be50130a..092e005f0 100644 --- a/host/lib/usrp/dboard_iface.cpp +++ b/host/lib/usrp/dboard_iface.cpp @@ -1,5 +1,5 @@ // -// Copyright 2010-2013 Ettus Research LLC +// Copyright 2010-2013,2015 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 @@ -81,3 +81,13 @@ void dboard_iface::set_gpio_out( boost::uint16_t dboard_iface::get_gpio_out(unit_t unit){ return _impl->gpio_out_shadow[unit]; } + +void dboard_iface::set_command_time(const uhd::time_spec_t&) +{ + throw uhd::not_implemented_error("timed command feature not implemented on this hardware"); +} + +uhd::time_spec_t dboard_iface::get_command_time() +{ + return uhd::time_spec_t(0.0); +} |