Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

gr_sig_source_c.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2004 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 // WARNING: this file is machine generated.  Edits will be over written
00024 
00025 #ifndef INCLUDED_GR_SIG_SOURCE_C_H
00026 #define INCLUDED_GR_SIG_SOURCE_C_H
00027 
00028 #include <gr_sync_block.h>
00029 #include <gr_sig_source_waveform.h>
00030 #include <gr_fxpt_nco.h>
00031 
00032 class gr_sig_source_c;
00033 typedef boost::shared_ptr<gr_sig_source_c> gr_sig_source_c_sptr;
00034 
00040 class gr_sig_source_c : public gr_sync_block {
00041   friend gr_sig_source_c_sptr 
00042   gr_make_sig_source_c (double sampling_freq, gr_waveform_t waveform,
00043                        double frequency, double ampl, gr_complex offset);
00044 
00045   double                d_sampling_freq;
00046   gr_waveform_t         d_waveform;
00047   double                d_frequency;
00048   double                d_ampl;
00049   gr_complex            d_offset;
00050   gr_fxpt_nco           d_nco;
00051 
00052 
00053   gr_sig_source_c (double sampling_freq, gr_waveform_t waveform,
00054           double wave_freq, double ampl, gr_complex offset);
00055 
00056  public:
00057   virtual int work (int noutput_items,
00058                     gr_vector_const_void_star &input_items,
00059                     gr_vector_void_star &output_items);
00060 
00061   // ACCESSORS
00062   double sampling_freq () const { return d_sampling_freq; }
00063   gr_waveform_t waveform () const { return d_waveform; }
00064   double frequency () const { return d_frequency; }
00065   double amplitude () const { return d_ampl; }
00066   gr_complex offset () const { return d_offset; }
00067 
00068   // MANIPULATORS
00069   void set_sampling_freq (double sampling_freq);
00070   void set_waveform (gr_waveform_t waveform);
00071   void set_frequency (double frequency);
00072   void set_amplitude (double ampl);
00073   void set_offset (gr_complex offset);
00074 };
00075 
00076 gr_sig_source_c_sptr
00077 gr_make_sig_source_c (double sampling_freq, gr_waveform_t waveform,
00078                      double wave_freq, double ampl, gr_complex offset = 0);
00079 
00080 
00081 #endif

Generated on Sat Jul 8 17:04:51 2006 for GNU Radio 2.x by  doxygen 1.4.1