2 * Copyright 2008 Free Software Foundation, Inc.
4 * This file is part of GNU Radio
6 * GNU Radio is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
11 * GNU Radio is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GNU Radio; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street,
19 * Boston, MA 02110-1301, USA.
22 #include <gr_top_block.h>
23 #include <usrp_sink_c.h>
24 #include <gr_sig_source_c.h>
25 #include <gr_noise_source_c.h>
27 usrp_subdev_spec str_to_subdev(std::string spec_str);
30 typedef boost::shared_ptr<usrp_siggen> usrp_siggen_sptr;
31 usrp_siggen_sptr make_usrp_siggen(int which, usrp_subdev_spec spec,
32 double rf_freq, int interp, double wfreq,
33 int waveform, float amp, float gain,
34 float offset, long long nsamples);
36 class usrp_siggen : public gr_top_block
39 usrp_siggen(int which, usrp_subdev_spec spec,
40 double rf_freq, int interp, double wfreq,
41 int waveform, float amp, float gain,
42 float offset, long long nsamples);
43 friend usrp_siggen_sptr make_usrp_siggen(int which, usrp_subdev_spec spec,
44 double rf_freq, int interp, double wfreq,
45 int waveform, float amp, float gain,
51 gr_sig_source_c_sptr siggen;
52 gr_noise_source_c_sptr noisegen;