3 * Copyright 2009 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
24 #ifndef INCLUDED_GR_FLL_BAND_EDGE_CC_H
25 #define INCLUDED_GR_FLL_BAND_EDGE_CC_H
27 #include <gr_sync_block.h>
29 class gr_fll_band_edge_cc;
30 typedef boost::shared_ptr<gr_fll_band_edge_cc> gr_fll_band_edge_cc_sptr;
31 gr_fll_band_edge_cc_sptr gr_make_fll_band_edge_cc (float samps_per_sym, float rolloff,
32 int filter_size, float alpha, float beta);
35 class gri_fft_complex;
38 * \class gr_fll_band_edge_cc
39 * \brief Frequency Lock Loop using band-edge filters
44 class gr_fll_band_edge_cc : public gr_sync_block
49 * \param taps (vector/list of gr_complex) The taps of the band-edge filter
51 friend gr_fll_band_edge_cc_sptr gr_make_fll_band_edge_cc (float samps_per_sym, float rolloff,
52 int filter_size, float alpha, float beta);
59 gr_fir_ccc* d_filter_upper;
60 gr_fir_ccc* d_filter_lower;
68 * \param taps (vector/list of gr_complex) The taps of the band-edge filter
70 gr_fll_band_edge_cc(float samps_per_sym, float rolloff,
71 int filter_size, float alpha, float beta);
74 ~gr_fll_band_edge_cc ();
77 * Design the band-edge filter based on the number of samples per symbol,
78 * filter rolloff factor, and the filter size
79 * \param samps_per_sym (float) Number of samples per symbol of signal
80 * \param rolloff (float) Rolloff factor of signal
81 * \param filter_size (int) Size (in taps) of the filter
83 void design_filter(float samps_per_sym, float rolloff, int filter_size);
86 * Set the alpha gainvalue
87 * \param alpha (float) new gain value
89 void set_alpha(float alpha);
92 * Set the beta gain value
93 * \param beta (float) new gain value
95 void set_beta(float beta) { d_beta = beta; }
98 * Print the taps to screen.
102 int work (int noutput_items,
103 gr_vector_const_void_star &input_items,
104 gr_vector_void_star &output_items);