~ubuntu-branches/ubuntu/trusty/gnuradio/trusty

« back to all changes in this revision

Viewing changes to gr-usrp/apps/usrp_siggen.h

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2008 Free Software Foundation, Inc.
 
3
 * 
 
4
 * This file is part of GNU Radio
 
5
 * 
 
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)
 
9
 * any later version.
 
10
 * 
 
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.
 
15
 * 
 
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.
 
20
 */
 
21
 
 
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>
 
26
 
 
27
usrp_subdev_spec str_to_subdev(std::string spec_str);
 
28
 
 
29
class usrp_siggen;
 
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);
 
35
 
 
36
class usrp_siggen : public gr_top_block
 
37
{
 
38
private:
 
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, 
 
46
                                             float offset,
 
47
                                             long long nsamples);
 
48
    
 
49
 public:
 
50
    gr_block_sptr source;
 
51
    gr_sig_source_c_sptr siggen;
 
52
    gr_noise_source_c_sptr noisegen;
 
53
};