GNU Radio's LFAST Package
agc_fast_ff_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_FF_IMPL_H
22#define INCLUDED_LFAST_AGC_FAST_FF_IMPL_H
23
24#include <lfast/agc_fast_ff.h>
25#include <gnuradio/analog/agc.h>
26
27namespace gr {
28 namespace lfast {
29
30 class agc_fast_ff_impl : public agc_fast_ff,gr::analog::kernel::agc_ff
31 {
32 private:
33 // Nothing to declare in this block.
34
35 public:
36 agc_fast_ff_impl(float rate = 1e-4, float reference = 1.0,
37 float gain = 1.0);
39
40 float rate() const { return gr::analog::kernel::agc_ff::rate(); }
41 float reference() const { return gr::analog::kernel::agc_ff::reference(); }
42 float gain() const { return gr::analog::kernel::agc_ff::gain(); }
43 float max_gain() const { return gr::analog::kernel::agc_ff::max_gain(); }
44
45 void set_rate(float rate) { gr::analog::kernel::agc_ff::set_rate(rate); }
46 void set_reference(float reference) { gr::analog::kernel::agc_ff::set_reference(reference); }
47 void set_gain(float gain) { gr::analog::kernel::agc_ff::set_gain(gain); }
48 virtual void set_max_gain(float max_gain) { gr::analog::kernel::agc_ff::set_max_gain(max_gain); }
49
50 // Where all the action really happens
51 int work(int noutput_items,
52 gr_vector_const_void_star &input_items,
53 gr_vector_void_star &output_items);
54
55 int work_original(int noutput_items,
56 gr_vector_const_void_star &input_items,
57 gr_vector_void_star &output_items);
58 int work_test(int noutput_items,
59 gr_vector_const_void_star &input_items,
60 gr_vector_void_star &output_items);
61 };
62
63 } // namespace lfast
64} // namespace gr
65
66#endif /* INCLUDED_LFAST_AGC_FAST_IMPL_H */
67
float reference() const
Definition agc_fast_ff_impl.h:41
float max_gain() const
Definition agc_fast_ff_impl.h:43
float rate() const
Definition agc_fast_ff_impl.h:40
int work_test(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
virtual void set_max_gain(float max_gain)
Definition agc_fast_ff_impl.h:48
agc_fast_ff_impl(float rate=1e-4, float reference=1.0, float gain=1.0)
void set_gain(float gain)
Definition agc_fast_ff_impl.h:47
int work_original(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
float gain() const
Definition agc_fast_ff_impl.h:42
void set_rate(float rate)
Definition agc_fast_ff_impl.h:45
void set_reference(float reference)
Definition agc_fast_ff_impl.h:46
<+description of block+>
Definition agc_fast_ff.h:37
Definition agc.h:31
Definition agc.h:30