GNU Radio 3.6.5.1 C++ API
agc2_ff.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2005,2006,2012 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
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)
10
* any later version.
11
*
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.
16
*
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.
21
*/
22
23
#ifndef INCLUDED_ANALOG_AGC2_FF_H
24
#define INCLUDED_ANALOG_AGC2_FF_H
25
26
#include <
analog/api.h
>
27
#include <
analog/agc2.h
>
28
#include <
gr_sync_block.h
>
29
30
namespace
gr {
31
namespace
analog {
32
33
/*!
34
* \brief high performance Automatic Gain Control class
35
* \ingroup level_controllers_blk
36
*
37
* \details
38
* Power is approximated by absolute value
39
*/
40
class
ANALOG_API
agc2_ff
:
virtual
public
gr_sync_block
41
{
42
public
:
43
// gr::analog::agc2_ff::sptr
44
typedef
boost::shared_ptr<agc2_ff>
sptr
;
45
46
static
sptr
make(
float
attack_rate = 1e-1,
float
decay_rate = 1e-2,
47
float
reference = 1.0,
48
float
gain = 1.0,
float
max_gain = 0.0);
49
50
virtual
float
attack_rate()
const
= 0;
51
virtual
float
decay_rate()
const
= 0;
52
virtual
float
reference()
const
= 0;
53
virtual
float
gain()
const
= 0;
54
virtual
float
max_gain()
const
= 0;
55
56
virtual
void
set_attack_rate(
float
rate) = 0;
57
virtual
void
set_decay_rate(
float
rate) = 0;
58
virtual
void
set_reference(
float
reference) = 0;
59
virtual
void
set_gain(
float
gain) = 0;
60
virtual
void
set_max_gain(
float
max_gain) = 0;
61
};
62
63
}
/* namespace analog */
64
}
/* namespace gr */
65
66
#endif
/* INCLUDED_ANALOG_AGC2_FF_H */
gr-analog
include
analog
agc2_ff.h
Generated on Mon Aug 19 2013 15:37:29 for GNU Radio 3.6.5.1 C++ API by
1.8.1.2