aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorKevin Gilbert <kevin.gilbert@ni.com>2016-08-04 12:02:10 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-05 08:38:26 -0700
commit63253ed7b2399b67d99878c7becc3926dfe17177 (patch)
tree326f92444200f1ead56231d1f5d2261730561c89 /host/include
parentd21a7163ed2de9799064bf1ef980c3dac51c7b86 (diff)
downloaduhd-63253ed7b2399b67d99878c7becc3926dfe17177.tar.gz
uhd-63253ed7b2399b67d99878c7becc3926dfe17177.tar.bz2
uhd-63253ed7b2399b67d99878c7becc3926dfe17177.zip
Add sleep function to dboard_iface
Having this function allows a dboard_iface implementation to be aware of the timing of various calls such as SPI and register writes.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp
index 52d226004..7c730f59d 100644
--- a/host/include/uhd/usrp/dboard_iface.hpp
+++ b/host/include/uhd/usrp/dboard_iface.hpp
@@ -26,6 +26,7 @@
#include <uhd/usrp/gpio_defs.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
+#include <boost/thread/thread.hpp>
#include <string>
#include <vector>
@@ -297,6 +298,11 @@ public:
*/
virtual void set_command_time(const uhd::time_spec_t& t) = 0;
+ /*!
+ * Sleep for a set time
+ * \param time time to sleep in nanoseconds
+ */
+ virtual void sleep(const boost::chrono::nanoseconds& time);
};
}} //namespace