24 #ifndef INCLUDED_PFB_ARB_RESAMPLER_H 25 #define INCLUDED_PFB_ARB_RESAMPLER_H 97 std::vector<fir_filter_ccf*> d_filters;
98 std::vector<fir_filter_ccf*> d_diff_filters;
99 std::vector<std::vector<float>> d_taps;
100 std::vector<std::vector<float>> d_dtaps;
101 unsigned int d_int_rate;
102 unsigned int d_dec_rate;
105 unsigned int d_last_filter;
106 unsigned int d_taps_per_filter;
108 float d_est_phase_change;
117 void create_diff_taps(
const std::vector<float>& newtaps,
118 std::vector<float>& difftaps);
128 void create_taps(
const std::vector<float>& newtaps,
129 std::vector<std::vector<float>>& ourtaps,
130 std::vector<kernel::fir_filter_ccf*>& ourfilter);
143 const std::vector<float>&
taps,
144 unsigned int filter_size);
153 void set_taps(
const std::vector<float>& taps);
158 std::vector<std::vector<float>>
taps()
const;
168 void set_rate(
float rate);
173 void set_phase(
float ph);
183 unsigned int taps_per_filter()
const;
199 float phase_offset(
float freq,
float fs);
225 std::vector<fir_filter_ccc*> d_filters;
226 std::vector<fir_filter_ccc*> d_diff_filters;
227 std::vector<std::vector<gr_complex>> d_taps;
228 std::vector<std::vector<gr_complex>> d_dtaps;
229 unsigned int d_int_rate;
230 unsigned int d_dec_rate;
233 unsigned int d_last_filter;
234 unsigned int d_taps_per_filter;
236 float d_est_phase_change;
245 void create_diff_taps(
const std::vector<gr_complex>& newtaps,
246 std::vector<gr_complex>& difftaps);
256 void create_taps(
const std::vector<gr_complex>& newtaps,
257 std::vector<std::vector<gr_complex>>& ourtaps,
258 std::vector<kernel::fir_filter_ccc*>& ourfilter);
271 const std::vector<gr_complex>&
taps,
272 unsigned int filter_size);
281 void set_taps(
const std::vector<gr_complex>& taps);
286 std::vector<std::vector<gr_complex>>
taps()
const;
296 void set_rate(
float rate);
301 void set_phase(
float ph);
311 unsigned int taps_per_filter()
const;
327 float phase_offset(
float freq,
float fs);
414 std::vector<fir_filter_fff*> d_filters;
415 std::vector<fir_filter_fff*> d_diff_filters;
416 std::vector<std::vector<float>> d_taps;
417 std::vector<std::vector<float>> d_dtaps;
418 unsigned int d_int_rate;
419 unsigned int d_dec_rate;
422 unsigned int d_last_filter;
423 unsigned int d_taps_per_filter;
425 float d_est_phase_change;
434 void create_diff_taps(
const std::vector<float>& newtaps,
435 std::vector<float>& difftaps);
445 void create_taps(
const std::vector<float>& newtaps,
446 std::vector<std::vector<float>>& ourtaps,
447 std::vector<kernel::fir_filter_fff*>& ourfilter);
460 const std::vector<float>&
taps,
461 unsigned int filter_size);
470 void set_taps(
const std::vector<float>& taps);
475 std::vector<std::vector<float>>
taps()
const;
485 void set_rate(
float rate);
490 void set_phase(
float ph);
500 unsigned int taps_per_filter()
const;
516 float phase_offset(
float freq,
float fs);
532 int filter(
float* output,
float* input,
int n_to_read,
int& n_read);
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:313
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:186
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:314
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:502
int group_delay() const
Definition: pfb_arb_resampler.h:320
Polyphase filterbank arbitrary resampler with gr_complex input, gr_complex output and float taps...
Definition: pfb_arb_resampler.h:94
Definition: pfb_arb_resampler.h:222
std::complex< float > gr_complex
Definition: gr_complex.h:27
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
int group_delay() const
Definition: pfb_arb_resampler.h:192
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:503
static const float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
int group_delay() const
Definition: pfb_arb_resampler.h:509
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:185
float fractional_rate() const
Definition: pfb_arb_resampler.h:187
Polyphase filterbank arbitrary resampler with float input, float output and float taps...
Definition: pfb_arb_resampler.h:411
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:30
float fractional_rate() const
Definition: pfb_arb_resampler.h:504
float fractional_rate() const
Definition: pfb_arb_resampler.h:315