diff options
author | Josh Blum <josh@joshknows.com> | 2011-10-25 18:04:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-03 20:37:14 -0700 |
commit | 7f815e124f217f37eb5e612a34ec84c33043aa87 (patch) | |
tree | 7fb2aea5efeda02950bbd5621d056724b03ddfb8 | |
parent | 8e439ac16137c649b2a296967efe86d346f3968a (diff) | |
download | uhd-7f815e124f217f37eb5e612a34ec84c33043aa87.tar.gz uhd-7f815e124f217f37eb5e612a34ec84c33043aa87.tar.bz2 uhd-7f815e124f217f37eb5e612a34ec84c33043aa87.zip |
usrp: placeholder for potential set_next_command_time call
-rw-r--r-- | host/include/uhd/usrp/multi_usrp.hpp | 15 | ||||
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp index 9bb5b4381..319301784 100644 --- a/host/include/uhd/usrp/multi_usrp.hpp +++ b/host/include/uhd/usrp/multi_usrp.hpp @@ -22,6 +22,7 @@ #define UHD_USRP_MULTI_USRP_REF_SOURCES_API #define UHD_USRP_MULTI_USRP_GET_RATES_API #define UHD_USRP_MULTI_USRP_FRONTEND_CAL_API +#define UHD_USRP_MULTI_USRP_COMMAND_TIME_API #include <uhd/config.hpp> #include <uhd/device.hpp> @@ -226,6 +227,20 @@ public: virtual bool get_time_synchronized(void) = 0; /*! + * Set the time at which the next control command 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, + * 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; + + /*! * Issue a stream command to the usrp device. * This tells the usrp to send samples into the host. * See the documentation for stream_cmd_t for more info. diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 7383fa3c0..2e7c76a06 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -347,6 +347,10 @@ public: return true; } + void set_next_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 issue_stream_cmd(const stream_cmd_t &stream_cmd, size_t chan){ if (chan != ALL_CHANS){ _tree->access<stream_cmd_t>(rx_dsp_root(chan) / "stream_cmd").set(stream_cmd); |