GNU Radio 3.7.1 C++ API
|
high performance Automatic Gain Control class with attack and decay rates. More...
#include <agc2_cc.h>
Public Types | |
typedef boost::shared_ptr < agc2_cc > | sptr |
Public Member Functions | |
virtual float | attack_rate () const =0 |
virtual float | decay_rate () const =0 |
virtual float | reference () const =0 |
virtual float | gain () const =0 |
virtual float | max_gain () const =0 |
virtual void | set_attack_rate (float rate)=0 |
virtual void | set_decay_rate (float rate)=0 |
virtual void | set_reference (float reference)=0 |
virtual void | set_gain (float gain)=0 |
virtual void | set_max_gain (float max_gain)=0 |
Static Public Member Functions | |
static sptr | make (float attack_rate=1e-1, float decay_rate=1e-2, float reference=1.0, float gain=1.0) |
high performance Automatic Gain Control class with attack and decay rates.
For Power the absolute value of the complex number is used.
virtual float gr::analog::agc2_cc::attack_rate | ( | ) | const [pure virtual] |
virtual float gr::analog::agc2_cc::decay_rate | ( | ) | const [pure virtual] |
virtual float gr::analog::agc2_cc::gain | ( | ) | const [pure virtual] |
static sptr gr::analog::agc2_cc::make | ( | float | attack_rate = 1e-1 , |
float | decay_rate = 1e-2 , |
||
float | reference = 1.0 , |
||
float | gain = 1.0 |
||
) | [static] |
Build a complex value AGC loop block with attack and decay rates.
attack_rate | the update rate of the loop when in attack mode. |
decay_rate | the update rate of the loop when in decay mode. |
reference | reference value to adjust signal power to. |
gain | initial gain value. |
virtual float gr::analog::agc2_cc::max_gain | ( | ) | const [pure virtual] |
virtual float gr::analog::agc2_cc::reference | ( | ) | const [pure virtual] |
virtual void gr::analog::agc2_cc::set_attack_rate | ( | float | rate | ) | [pure virtual] |
virtual void gr::analog::agc2_cc::set_decay_rate | ( | float | rate | ) | [pure virtual] |
virtual void gr::analog::agc2_cc::set_gain | ( | float | gain | ) | [pure virtual] |
virtual void gr::analog::agc2_cc::set_max_gain | ( | float | max_gain | ) | [pure virtual] |
virtual void gr::analog::agc2_cc::set_reference | ( | float | reference | ) | [pure virtual] |