summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/c++
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-19 14:50:50 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-19 20:10:31 -0500
commita5bb5783fb20a4f136650c00d3fd94bb28add738 (patch)
tree51ebcd9f90f0403cfe8b10e59bb87092cd620318 /gr-uhd/examples/c++
parentf4762c567bf5ec85b998935ee330d7c0e986dc57 (diff)
uhd: converted gr-uhd to v3.7 style.
Diffstat (limited to 'gr-uhd/examples/c++')
-rw-r--r--gr-uhd/examples/c++/tags_demo.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/gr-uhd/examples/c++/tags_demo.cc b/gr-uhd/examples/c++/tags_demo.cc
index cc4c932726..890cc12dea 100644
--- a/gr-uhd/examples/c++/tags_demo.cc
+++ b/gr-uhd/examples/c++/tags_demo.cc
@@ -20,8 +20,8 @@
*/
#include <gr_top_block.h>
-#include <gr_uhd_usrp_source.h>
-#include <gr_uhd_usrp_sink.h>
+#include <uhd/usrp_source.h>
+#include <uhd/usrp_sink.h>
#include <tag_source_demo.h>
#include <tag_sink_demo.h>
#include <boost/make_shared.hpp>
@@ -79,9 +79,8 @@ int main(int argc, char *argv[]){
//------------------------------------------------------------------
//-- make the usrp source test blocks
//------------------------------------------------------------------
- boost::shared_ptr<uhd_usrp_source> usrp_source = uhd_make_usrp_source(
- device_addr, uhd::stream_args_t("fc32")
- );
+ gr::uhd::usrp_source::sptr usrp_source = gr::uhd::usrp_source::make
+ (device_addr, uhd::stream_args_t("fc32"));
usrp_source->set_samp_rate(samp_rate);
usrp_source->set_center_freq(center_freq);
@@ -95,9 +94,8 @@ int main(int argc, char *argv[]){
//------------------------------------------------------------------
//-- make the usrp sink test blocks
//------------------------------------------------------------------
- boost::shared_ptr<uhd_usrp_sink> usrp_sink = uhd_make_usrp_sink(
- device_addr, uhd::stream_args_t("fc32")
- );
+ gr::uhd::usrp_sink::sptr usrp_sink = gr::uhd::usrp_sink::make
+ (device_addr, uhd::stream_args_t("fc32"));
usrp_sink->set_samp_rate(samp_rate);
usrp_sink->set_center_freq(center_freq);
const uhd::time_spec_t time_now = usrp_sink->get_time_now();