Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <gr_top_block.h>
00023 #include <usrp_sink_c.h>
00024 #include <gr_sig_source_c.h>
00025 #include <gr_noise_source_c.h>
00026
00027 usrp_subdev_spec str_to_subdev(std::string spec_str);
00028
00029 class usrp_siggen;
00030 typedef boost::shared_ptr<usrp_siggen> usrp_siggen_sptr;
00031 usrp_siggen_sptr make_usrp_siggen(int which, usrp_subdev_spec spec,
00032 double rf_freq, int interp, double wfreq,
00033 int waveform, float amp, float gain,
00034 float offset, long long nsamples);
00035
00036 class usrp_siggen : public gr_top_block
00037 {
00038 private:
00039 usrp_siggen(int which, usrp_subdev_spec spec,
00040 double rf_freq, int interp, double wfreq,
00041 int waveform, float amp, float gain,
00042 float offset, long long nsamples);
00043 friend usrp_siggen_sptr make_usrp_siggen(int which, usrp_subdev_spec spec,
00044 double rf_freq, int interp, double wfreq,
00045 int waveform, float amp, float gain,
00046 float offset,
00047 long long nsamples);
00048
00049 public:
00050 gr_block_sptr source;
00051 gr_sig_source_c_sptr siggen;
00052 gr_noise_source_c_sptr noisegen;
00053 };