diff options
author | jcorgan | 2008-12-24 08:10:48 +0000 |
---|---|---|
committer | jcorgan | 2008-12-24 08:10:48 +0000 |
commit | 72c625f7e50b65dc3b642112762e9eb1d633bd42 (patch) | |
tree | b83cbb7c9901b2d5fe6fda9dedb127c53b784e02 /usrp/host/apps/test_usrp_standard_rx.cc | |
parent | 06e7a0313a09ee812061d855a47206ed303eac7f (diff) | |
download | gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.gz gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.bz2 gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.zip |
Merged r10071:10164 from features/cppdb-test into trunk. Implements the fully native C++ API for the USRP.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10165 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host/apps/test_usrp_standard_rx.cc')
-rw-r--r-- | usrp/host/apps/test_usrp_standard_rx.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usrp/host/apps/test_usrp_standard_rx.cc b/usrp/host/apps/test_usrp_standard_rx.cc index 49f1f21bb..4a47daa95 100644 --- a/usrp/host/apps/test_usrp_standard_rx.cc +++ b/usrp/host/apps/test_usrp_standard_rx.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2003,2006 Free Software Foundation, Inc. + * Copyright 2003,2006,2008 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -44,7 +44,7 @@ char *prog_name; -static bool test_input (usrp_standard_rx *urx, int max_bytes, FILE *fp); +static bool test_input (usrp_standard_rx_sptr urx, int max_bytes, FILE *fp); static void set_progname (char *path) @@ -189,7 +189,7 @@ main (int argc, char **argv) mode |= usrp_standard_rx::FPGA_MODE_COUNTING; - usrp_standard_rx *urx = + usrp_standard_rx_sptr urx = usrp_standard_rx::make (which_board, decim, 1, -1, mode, fusb_block_size, fusb_nblocks); @@ -214,14 +214,12 @@ main (int argc, char **argv) if (fp) fclose (fp); - delete urx; - return 0; } static bool -test_input (usrp_standard_rx *urx, int max_bytes, FILE *fp) +test_input (usrp_standard_rx_sptr urx, int max_bytes, FILE *fp) { int fd = -1; static const int BUFSIZE = urx->block_size(); |