diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-27 19:36:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-27 19:36:33 -0700 |
commit | 16351339eb6962288844cefefbdb3f6eece8aca1 (patch) | |
tree | c60b4f974dc59591dbec806a880c7e140cd6a49f /host/lib | |
parent | 0208b28e58e3719dc4dfb8df73fe5ae49e4a6306 (diff) | |
parent | d7c7351bb66cb4c455e77f83edd581d6afbcef9c (diff) | |
download | uhd-16351339eb6962288844cefefbdb3f6eece8aca1.tar.gz uhd-16351339eb6962288844cefefbdb3f6eece8aca1.tar.bz2 uhd-16351339eb6962288844cefefbdb3f6eece8aca1.zip |
Merge branch 'next' into usrp_e_next
Conflicts:
host/examples/CMakeLists.txt
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 024a6152d..876f1a3fc 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -154,6 +154,15 @@ public: } } + bool get_time_synchronized(void){ + for (size_t m = 1; m < get_num_mboards(); m++){ + time_spec_t time_0 = _mboard(0)[MBOARD_PROP_TIME_NOW].as<time_spec_t>(); + time_spec_t time_i = _mboard(m)[MBOARD_PROP_TIME_NOW].as<time_spec_t>(); + if (time_i < time_0 or (time_i - time_0) > time_spec_t(0.01)) return false; + } + return true; + } + void issue_stream_cmd(const stream_cmd_t &stream_cmd){ for (size_t m = 0; m < get_num_mboards(); m++){ _mboard(m)[MBOARD_PROP_STREAM_CMD] = stream_cmd; |