From 63253ed7b2399b67d99878c7becc3926dfe17177 Mon Sep 17 00:00:00 2001 From: Kevin Gilbert Date: Thu, 4 Aug 2016 12:02:10 -0700 Subject: 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. --- host/include/uhd/usrp/dboard_iface.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/include') 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 #include #include +#include #include #include @@ -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 -- cgit v1.2.3