commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r4752 - gnuradio/branches/developers/jcorgan/frac/gnur


From: jcorgan
Subject: [Commit-gnuradio] r4752 - gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter
Date: Wed, 14 Mar 2007 15:18:53 -0600 (MDT)

Author: jcorgan
Date: 2007-03-14 15:18:53 -0600 (Wed, 14 Mar 2007)
New Revision: 4752

Added:
   
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
Modified:
   
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/filter.i
   
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.h
Log:
Added accessors and SWIG header for gr_fractional_interpolator_ff

Modified: 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/filter.i
===================================================================
--- 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/filter.i 
    2007-03-14 20:55:02 UTC (rev 4751)
+++ 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/filter.i 
    2007-03-14 21:18:53 UTC (rev 4752)
@@ -28,6 +28,7 @@
 #include <gr_filter_delay_fc.h>
 #include <gr_fft_filter_ccc.h>
 #include <gr_fft_filter_fff.h>
+#include <gr_fractional_interpolator_ff.h>
 #include <gr_goertzel_fc.h>
 #include <gr_cma_equalizer_cc.h>
 %}
@@ -39,6 +40,7 @@
 %include "gr_filter_delay_fc.i"
 %include "gr_fft_filter_ccc.i"
 %include "gr_fft_filter_fff.i"
+%include "gr_fractional_interpolator_ff.i"
 %include "gr_goertzel_fc.i"
 %include "gr_cma_equalizer_cc.i"
 

Modified: 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.h
===================================================================
--- 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.h
      2007-03-14 20:55:02 UTC (rev 4751)
+++ 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.h
      2007-03-14 21:18:53 UTC (rev 4752)
@@ -47,6 +47,11 @@
                    gr_vector_const_void_star &input_items,
                    gr_vector_void_star &output_items);
 
+  float mu() const { return d_mu;}
+  float interp_ratio() const { return d_mu_inc;}
+  void set_mu (float mu) { d_mu = mu; }
+  void set_interp_ratio (float interp_ratio) { d_mu_inc = interp_ratio; }
+
 protected:
   gr_fractional_interpolator_ff (float phase_shift, float interp_ratio);
 

Added: 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
===================================================================
--- 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
                              (rev 0)
+++ 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
      2007-03-14 21:18:53 UTC (rev 4752)
@@ -0,0 +1,37 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2007 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+GR_SWIG_BLOCK_MAGIC(gr,fractional_interpolator_ff);
+
+gr_fractional_interpolator_ff_sptr gr_make_fractional_interpolator_ff (float 
phase_shift, float interp_ratio);
+
+class gr_fractional_interpolator_ff : public gr_block
+{
+private:
+  gr_fractional_interpolator_ff (float phase_shift, float interp_ratio);
+
+public:
+  float mu() const;
+  float interp_ratio() const;
+  void set_mu (float mu);
+  void set_interp_ratio (float interp_ratio);
+};


Property changes on: 
gnuradio/branches/developers/jcorgan/frac/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
___________________________________________________________________
Name: svn:eol-style
   + native





reply via email to

[Prev in Thread] Current Thread [Next in Thread]