From 5cdbf5b36969e12b93e720f67102dd4ab246b074 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 3 Nov 2011 20:29:18 -0700 Subject: usrp: multi usrp API tweak --- host/include/uhd/usrp/multi_usrp.hpp | 15 ++++++++++----- host/lib/usrp/multi_usrp.cpp | 6 +++++- 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'host') 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."); } -- cgit v1.2.3