GNU Radio's LFAST Package
agc_fast_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2017 ghostop14.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_LFAST_AGC_FAST_IMPL_H
22 #define INCLUDED_LFAST_AGC_FAST_IMPL_H
23 
24 #include <lfast/agc_fast.h>
25 
26 namespace gr {
27  namespace lfast {
28 
30  {
31  private:
32  // Nothing to declare in this block.
33 
34  public:
35  agc_fast_impl(float rate = 1e-4, float reference = 1.0,
36  float gain = 1.0);
38 
39  float rate() const { return kernel::agc_cc::rate(); }
40  float reference() const { return kernel::agc_cc::reference(); }
41  float gain() const { return kernel::agc_cc::gain(); }
42  float max_gain() const { return kernel::agc_cc::max_gain(); }
43 
44  void set_rate(float rate) { kernel::agc_cc::set_rate(rate); }
46  void set_gain(float gain) { kernel::agc_cc::set_gain(gain); }
47  virtual void set_max_gain(float max_gain) { kernel::agc_cc::set_max_gain(max_gain); }
48 
49  // Where all the action really happens
50  int work(int noutput_items,
51  gr_vector_const_void_star &input_items,
52  gr_vector_void_star &output_items);
53 
54  int work_original(int noutput_items,
55  gr_vector_const_void_star &input_items,
56  gr_vector_void_star &output_items);
57  int work_test(int noutput_items,
58  gr_vector_const_void_star &input_items,
59  gr_vector_void_star &output_items);
60  };
61 
62  } // namespace lfast
63 } // namespace gr
64 
65 #endif /* INCLUDED_LFAST_AGC_FAST_IMPL_H */
66 
void set_rate(float rate)
Definition: agc_fast_impl.h:44
void set_gain(float gain)
Definition: agc_fast_impl.h:46
float reference() const
Definition: agc_fast_impl.h:40
void set_rate(float rate)
Definition: agc.h:64
agc_fast_impl(float rate=1e-4, float reference=1.0, float gain=1.0)
high performance Automatic Gain Control class for complex signals.
Definition: agc.h:41
float rate() const
Definition: agc_fast_impl.h:39
float gain() const
Definition: agc_fast_impl.h:41
float gain() const
Definition: agc.h:61
int work_test(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
float rate() const
Definition: agc.h:59
void set_gain(float gain)
Definition: agc.h:66
float max_gain() const
Definition: agc_fast_impl.h:42
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
float reference() const
Definition: agc.h:60
void set_max_gain(float max_gain)
Definition: agc.h:67
virtual void set_max_gain(float max_gain)
Definition: agc_fast_impl.h:47
<+description of block+>
Definition: agc_fast.h:37
int work_original(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_reference(float reference)
Definition: agc.h:65
float max_gain() const
Definition: agc.h:62
void set_reference(float reference)
Definition: agc_fast_impl.h:45
Definition: agc_fast_impl.h:29