summaryrefslogtreecommitdiff
path: root/gr-analog/lib/agc3_cc_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-05-23 15:37:59 -0400
committerTom Rondeau <trondeau@vt.edu>2013-05-23 15:41:44 -0400
commit5bdd638f56775e50cce23ffe3bef241de53dcad1 (patch)
tree828e51ccef639e691abccb58116777949de28ad8 /gr-analog/lib/agc3_cc_impl.h
parent58fbb1695f17bb44ecc0ef268e2640a1f7f71906 (diff)
analog: updated AGC loops to have same interface; can init gain, max_gain defaults to 2e16, reset using set_max_gain.
Diffstat (limited to 'gr-analog/lib/agc3_cc_impl.h')
-rw-r--r--gr-analog/lib/agc3_cc_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-analog/lib/agc3_cc_impl.h b/gr-analog/lib/agc3_cc_impl.h
index 28136ac6a2..77cc1978c5 100644
--- a/gr-analog/lib/agc3_cc_impl.h
+++ b/gr-analog/lib/agc3_cc_impl.h
@@ -32,18 +32,20 @@ namespace gr {
{
public:
agc3_cc_impl(float attack_rate = 1e-1, float decay_rate = 1e-2,
- float reference = 1.0);
+ float reference = 1.0, float gain = 1.0);
~agc3_cc_impl();
float attack_rate() const { return d_attack; }
float decay_rate() const { return d_decay; }
float reference() const { return d_reference; }
float gain() const { return d_gain; }
+ float max_gain() const { return d_max_gain; }
void set_attack_rate(float rate) { d_attack = rate; }
void set_decay_rate(float rate) { d_decay = rate; }
void set_reference(float reference) { d_reference = reference; }
void set_gain(float gain) { d_gain = gain; }
+ void set_max_gain(float max_gain) { d_max_gain = max_gain; }
int work(int noutput_items,
gr_vector_const_void_star &input_items,
@@ -54,6 +56,7 @@ namespace gr {
float d_decay;
float d_reference;
float d_gain;
+ float d_max_gain;
bool d_reset;
};