aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-11-03 20:29:18 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:14 -0700
commit5cdbf5b36969e12b93e720f67102dd4ab246b074 (patch)
tree8d5a1f1b82cb0dce16144dc85cb189a65c2dda22 /host
parentfbc5b54f49eec3f27e5a351d27260783898b0bea (diff)
downloaduhd-5cdbf5b36969e12b93e720f67102dd4ab246b074.tar.gz
uhd-5cdbf5b36969e12b93e720f67102dd4ab246b074.tar.bz2
uhd-5cdbf5b36969e12b93e720f67102dd4ab246b074.zip
usrp: multi usrp API tweak
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/usrp/multi_usrp.hpp15
-rw-r--r--host/lib/usrp/multi_usrp.cpp6
2 files changed, 15 insertions, 6 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp
index 0509c2f1d..5ea00565a 100644
--- a/host/include/uhd/usrp/multi_usrp.hpp
+++ b/host/include/uhd/usrp/multi_usrp.hpp
@@ -228,18 +228,23 @@ public:
virtual bool get_time_synchronized(void) = 0;
/*!
- * Set the time at which the next control command will take effect.
+ * Set the time at which the control commands will take effect.
*
- * The time spec setting only takes effect on the first command.
- * Subsequent commands will be sent ASAP unless user set time again.
- * A timed command will throttle/back-pressure all subsequent commands,
+ * A timed command will back-pressure all subsequent timed commands,
* assuming that the subsequent commands occur within the time-window.
* If the time spec is late, the command will be activated upon arrival.
*
* \param time_spec the time at which the next command will activate
* \param mboard which motherboard to set the config
*/
- virtual void set_next_command_time(const time_spec_t &time_spec, size_t mboard = ALL_MBOARDS) = 0;
+ virtual void set_command_time(const uhd::time_spec_t &time_spec, size_t mboard = ALL_MBOARDS) = 0;
+
+ /*!
+ * Clear the command time so future commands are sent ASAP.
+ *
+ * \param mboard which motherboard to set the config
+ */
+ virtual void clear_command_time(size_t mboard = ALL_MBOARDS) = 0;
/*!
* Issue a stream command to the usrp device.
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index d53004259..1110f5ebd 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -347,7 +347,11 @@ public:
return true;
}
- void set_next_command_time(const time_spec_t &, size_t){
+ void set_command_time(const time_spec_t &, size_t){
+ throw uhd::not_implemented_error("Not implemented yet, but we have a very good idea of how to do it.");
+ }
+
+ void clear_command_time(size_t){
throw uhd::not_implemented_error("Not implemented yet, but we have a very good idea of how to do it.");
}