aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_impl.hpp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2021-10-19 12:20:33 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2021-11-10 13:43:48 -0800
commit91a4f628828358267f5c0b0719da65dd34234196 (patch)
tree9c1c036fff0091510106608e1bbc151d0ea9fb05 /host/lib/usrp/b200/b200_impl.hpp
parent7f8e7f97c82923b2011c905e8a1374a8718b1230 (diff)
downloaduhd-91a4f628828358267f5c0b0719da65dd34234196.tar.gz
uhd-91a4f628828358267f5c0b0719da65dd34234196.tar.bz2
uhd-91a4f628828358267f5c0b0719da65dd34234196.zip
B200: Re-sync times
The times on the device can glitch if either the tick rate changes or the number of active chains changes. This throws off the time if the user gets streamers, changes the sample rate, or changes the tick rate after synchronizing the time. This change re-synchronizes the times automatically in those cases. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.hpp')
-rw-r--r--host/lib/usrp/b200/b200_impl.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.hpp b/host/lib/usrp/b200/b200_impl.hpp
index b280bcc87..11bfa112a 100644
--- a/host/lib/usrp/b200/b200_impl.hpp
+++ b/host/lib/usrp/b200/b200_impl.hpp
@@ -182,6 +182,7 @@ private:
void update_subdev_spec(const std::string& tx_rx, const uhd::usrp::subdev_spec_t&);
void update_time_source(const std::string&);
void set_time(const uhd::time_spec_t&);
+ void set_time_next_pps(const uhd::time_spec_t&);
void sync_times(void);
void update_clock_source(const std::string&);
void update_bandsel(const std::string& which, double freq);
@@ -248,6 +249,7 @@ private:
NONE = 3,
UNKNOWN = 4
} _time_source;
+ bool _time_set_with_pps;
void update_gpio_state(void);