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);
127 void create_taps(
const std::vector<float> &newtaps,
128 std::vector< std::vector<float> > &ourtaps,
129 std::vector<kernel::fir_filter_ccf*> &ourfilter);
141 const std::vector<float> &
taps,
142 unsigned int filter_size);
150 void set_taps(
const std::vector<float> &taps);
155 std::vector<std::vector<float> >
taps()
const;
165 void set_rate(
float rate);
170 void set_phase(
float ph);
180 unsigned int taps_per_filter()
const;
196 float phase_offset(
float freq,
float fs);
213 int n_to_read,
int &n_read);
223 std::vector<fir_filter_ccc*> d_filters;
224 std::vector<fir_filter_ccc*> d_diff_filters;
225 std::vector< std::vector<gr_complex> > d_taps;
226 std::vector< std::vector<gr_complex> > d_dtaps;
227 unsigned int d_int_rate;
228 unsigned int d_dec_rate;
231 unsigned int d_last_filter;
232 unsigned int d_taps_per_filter;
234 float d_est_phase_change;
243 void create_diff_taps(
const std::vector<gr_complex> &newtaps,
244 std::vector<gr_complex> &difftaps);
253 void create_taps(
const std::vector<gr_complex> &newtaps,
254 std::vector< std::vector<gr_complex> > &ourtaps,
255 std::vector<kernel::fir_filter_ccc*> &ourfilter);
267 const std::vector<gr_complex> &
taps,
268 unsigned int filter_size);
276 void set_taps(
const std::vector<gr_complex> &taps);
281 std::vector<std::vector<gr_complex> >
taps()
const;
291 void set_rate(
float rate);
296 void set_phase(
float ph);
306 unsigned int taps_per_filter()
const;
322 float phase_offset(
float freq,
float fs);
339 int n_to_read,
int &n_read);
410 std::vector<fir_filter_fff*> d_filters;
411 std::vector<fir_filter_fff*> d_diff_filters;
412 std::vector< std::vector<float> > d_taps;
413 std::vector< std::vector<float> > d_dtaps;
414 unsigned int d_int_rate;
415 unsigned int d_dec_rate;
418 unsigned int d_last_filter;
419 unsigned int d_taps_per_filter;
421 float d_est_phase_change;
430 void create_diff_taps(
const std::vector<float> &newtaps,
431 std::vector<float> &difftaps);
440 void create_taps(
const std::vector<float> &newtaps,
441 std::vector< std::vector<float> > &ourtaps,
442 std::vector<kernel::fir_filter_fff*> &ourfilter);
454 const std::vector<float> &
taps,
455 unsigned int filter_size);
463 void set_taps(
const std::vector<float> &taps);
468 std::vector<std::vector<float> >
taps()
const;
478 void set_rate(
float rate);
483 void set_phase(
float ph);
493 unsigned int taps_per_filter()
const;
509 float phase_offset(
float freq,
float fs);
525 int filter(
float *input,
float *output,
526 int n_to_read,
int &n_read);
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:182
Polyphase filterbank arbitrary resampler with gr_complex input, gr_complex output and float taps...
Definition: pfb_arb_resampler.h:94
int group_delay() const
Definition: pfb_arb_resampler.h:502
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:183
float fractional_rate() const
Definition: pfb_arb_resampler.h:184
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:309
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:308
Definition: pfb_arb_resampler.h:220
std::complex< float > gr_complex
Definition: gr_complex.h:27
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:496
float fractional_rate() const
Definition: pfb_arb_resampler.h:497
int group_delay() const
Definition: pfb_arb_resampler.h:189
int group_delay() const
Definition: pfb_arb_resampler.h:315
static const float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:495
Polyphase filterbank arbitrary resampler with float input, float output and float taps...
Definition: pfb_arb_resampler.h:407
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:30
float fractional_rate() const
Definition: pfb_arb_resampler.h:310