aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-04-09 09:47:55 -0700
committerAshish Chaudhari <ashish@ettus.com>2015-04-09 09:47:55 -0700
commit625724d7f81c214e9955334860a364802be3fda9 (patch)
tree39d6d0087646ef4028bc6a57d33c89a28112fed8 /host/include
parent700bf99bdc483fdcc9deb54abc29bd7f81e16089 (diff)
parent3f0b770ab14aa0acaf4846680e3ee7379a1f93d7 (diff)
downloaduhd-625724d7f81c214e9955334860a364802be3fda9.tar.gz
uhd-625724d7f81c214e9955334860a364802be3fda9.tar.bz2
uhd-625724d7f81c214e9955334860a364802be3fda9.zip
Merge branch 'master' into vivado
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/wb_iface.hpp20
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp13
2 files changed, 32 insertions, 1 deletions
diff --git a/host/include/uhd/types/wb_iface.hpp b/host/include/uhd/types/wb_iface.hpp
index c508062e4..e24e9363e 100644
--- a/host/include/uhd/types/wb_iface.hpp
+++ b/host/include/uhd/types/wb_iface.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2011-2013 Ettus Research LLC
+// Copyright 2011-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
@@ -19,6 +19,7 @@
#define INCLUDED_UHD_TYPES_WB_IFACE_HPP
#include <uhd/config.hpp>
+#include <uhd/types/time_spec.hpp>
#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>
@@ -74,7 +75,24 @@ public:
* \return the 16bit data
*/
virtual boost::uint16_t peek16(const wb_addr_type addr);
+};
+class UHD_API timed_wb_iface : public wb_iface
+{
+public:
+ typedef boost::shared_ptr<timed_wb_iface> sptr;
+
+ /*!
+ * Get the command time.
+ * \return the command time
+ */
+ virtual time_spec_t get_time(void) = 0;
+
+ /*!
+ * Set the command time.
+ * \param t the command time
+ */
+ virtual void set_time(const time_spec_t& t) = 0;
};
} //namespace uhd
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp
index b0f92e2ab..f8f318a40 100644
--- a/host/include/uhd/usrp/dboard_iface.hpp
+++ b/host/include/uhd/usrp/dboard_iface.hpp
@@ -21,6 +21,7 @@
#include <uhd/config.hpp>
#include <uhd/utils/pimpl.hpp>
#include <uhd/types/serial.hpp>
+#include <uhd/types/time_spec.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
#include <string>
@@ -280,6 +281,18 @@ public:
*/
virtual double get_codec_rate(unit_t unit) = 0;
+ /*!
+ * Get the command time.
+ * \return the command time
+ */
+ virtual uhd::time_spec_t get_command_time(void);
+
+ /*!
+ * Set the command time.
+ * \param t the time
+ */
+ virtual void set_command_time(const uhd::time_spec_t& t);
+
private:
UHD_PIMPL_DECL(impl) _impl;