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);
284 std::vector<fir_filter_fff*> d_filters;
285 std::vector<fir_filter_fff*> d_diff_filters;
286 std::vector< std::vector<float> > d_taps;
287 std::vector< std::vector<float> > d_dtaps;
288 unsigned int d_int_rate;
289 unsigned int d_dec_rate;
292 unsigned int d_last_filter;
293 unsigned int d_taps_per_filter;
295 float d_est_phase_change;
304 void create_diff_taps(
const std::vector<float> &newtaps,
305 std::vector<float> &difftaps);
314 void create_taps(
const std::vector<float> &newtaps,
315 std::vector< std::vector<float> > &ourtaps,
316 std::vector<kernel::fir_filter_fff*> &ourfilter);
328 const std::vector<float> &
taps,
329 unsigned int filter_size);
337 void set_taps(
const std::vector<float> &taps);
342 std::vector<std::vector<float> >
taps()
const;
352 void set_rate(
float rate);
357 void set_phase(
float ph);
367 unsigned int taps_per_filter()
const;
383 float phase_offset(
float freq,
float fs);
399 int filter(
float *input,
float *output,
400 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:376
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:183
float fractional_rate() const
Definition: pfb_arb_resampler.h:184
std::complex< float > gr_complex
Definition: gr_complex.h:27
unsigned int decimation_rate() const
Definition: pfb_arb_resampler.h:370
float fractional_rate() const
Definition: pfb_arb_resampler.h:371
int group_delay() const
Definition: pfb_arb_resampler.h:189
static const float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
unsigned int interpolation_rate() const
Definition: pfb_arb_resampler.h:369
Polyphase filterbank arbitrary resampler with float input, float output and float taps...
Definition: pfb_arb_resampler.h:281
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:30