diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-06-20 11:01:54 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-06-20 22:08:52 -0400 |
commit | 958bc6f7365a19b42b0acc98e4c082eee6cf6e51 (patch) | |
tree | 82c68d92ba18cffc9f2c9c922c089192412c3861 /gr-filter/include | |
parent | 81bb55f3a7bb8f64c2bc75b02306700fb5b60a43 (diff) |
filter: adding set/get for phase of arb resampler.
Diffstat (limited to 'gr-filter/include')
-rw-r--r-- | gr-filter/include/filter/pfb_arb_resampler_ccf.h | 13 | ||||
-rw-r--r-- | gr-filter/include/filter/pfb_arb_resampler_fff.h | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gr-filter/include/filter/pfb_arb_resampler_ccf.h b/gr-filter/include/filter/pfb_arb_resampler_ccf.h index cf5fa4a3b7..397ac25ea5 100644 --- a/gr-filter/include/filter/pfb_arb_resampler_ccf.h +++ b/gr-filter/include/filter/pfb_arb_resampler_ccf.h @@ -129,7 +129,20 @@ namespace gr { */ virtual void print_taps() = 0; + /*! + * Sets the resampling rate of the block. + */ virtual void set_rate (float rate) = 0; + + /*! + * Sets the current phase offset in radians (0 to 2pi). + */ + virtual void set_phase(float ph) = 0; + + /*! + * Gets the current phase of the resampler in radians (2 to 2pi). + */ + virtual float phase() const = 0; }; } /* namespace filter */ diff --git a/gr-filter/include/filter/pfb_arb_resampler_fff.h b/gr-filter/include/filter/pfb_arb_resampler_fff.h index 2504c92ec2..b6623b028e 100644 --- a/gr-filter/include/filter/pfb_arb_resampler_fff.h +++ b/gr-filter/include/filter/pfb_arb_resampler_fff.h @@ -130,7 +130,20 @@ namespace gr { */ virtual void print_taps() = 0; + /*! + * Sets the resampling rate of the block. + */ virtual void set_rate (float rate) = 0; + + /*! + * Sets the current phase offset in radians (0 to 2pi). + */ + virtual void set_phase(float ph) = 0; + + /*! + * Gets the current phase of the resampler in radians (2 to 2pi). + */ + virtual float phase() const = 0; }; } /* namespace filter */ |