diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-30 16:41:38 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-30 16:41:38 -0800 |
commit | 76c8b7fa24ea6c1bba84d7116b12dc0e4c5cacf6 (patch) | |
tree | ae14b17a64cfea69456243e08383dd4a7794fc92 /host/lib/usrp/single_usrp.cpp | |
parent | 78cc4fc203aab11cc3fb667410a2291d3782a9e5 (diff) | |
download | uhd-76c8b7fa24ea6c1bba84d7116b12dc0e4c5cacf6.tar.gz uhd-76c8b7fa24ea6c1bba84d7116b12dc0e4c5cacf6.tar.bz2 uhd-76c8b7fa24ea6c1bba84d7116b12dc0e4c5cacf6.zip |
usrp2: implemented get time last pps
renamed the enum for the pps time
added calls to single and multi wrappers
set time unknown pps now simpler
removed peek64 stuff from host + fw
please test
Diffstat (limited to 'host/lib/usrp/single_usrp.cpp')
-rw-r--r-- | host/lib/usrp/single_usrp.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/single_usrp.cpp b/host/lib/usrp/single_usrp.cpp index a0456d1f0..12730929a 100644 --- a/host/lib/usrp/single_usrp.cpp +++ b/host/lib/usrp/single_usrp.cpp @@ -106,12 +106,16 @@ public: return _mboard()[MBOARD_PROP_TIME_NOW].as<time_spec_t>(); } + time_spec_t get_time_last_pps(void){ + return _mboard()[MBOARD_PROP_TIME_PPS].as<time_spec_t>(); + } + void set_time_now(const time_spec_t &time_spec){ _mboard()[MBOARD_PROP_TIME_NOW] = time_spec; } void set_time_next_pps(const time_spec_t &time_spec){ - _mboard()[MBOARD_PROP_TIME_NEXT_PPS] = time_spec; + _mboard()[MBOARD_PROP_TIME_PPS] = time_spec; } void issue_stream_cmd(const stream_cmd_t &stream_cmd){ |