diff options
author | Alexandru Csete | 2010-07-21 18:27:46 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-07-21 18:27:46 -0700 |
commit | f7a2b8b09bf8d30534dd2d7546a7300e2f358595 (patch) | |
tree | 9ea1eb080075c76af984d7fe2b50907a09c61947 /gnuradio-core/src/lib/general | |
parent | fbe9df39e5a815f96215ca344466e4373cd08594 (diff) | |
download | gnuradio-f7a2b8b09bf8d30534dd2d7546a7300e2f358595.tar.gz gnuradio-f7a2b8b09bf8d30534dd2d7546a7300e2f358595.tar.bz2 gnuradio-f7a2b8b09bf8d30534dd2d7546a7300e2f358595.zip |
gnuradio-core: export missing public methods in gr.agc2
Alexandru Csete:
The gr_agc2 block has public methods to set and get the AGC levels and
rates; however, only a few of these interfaces are exported to Python
and none of them are available in GRC.
The attached patch adds the missing public methods to gri_agc2_cc.i
and gri_agc2_ff.i and defines the corresponding callbacks in the
gr_agc2_xx.xml GRC block.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gri_agc2_cc.i | 5 | ||||
-rw-r--r-- | gnuradio-core/src/lib/general/gri_agc2_ff.i | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gri_agc2_cc.i b/gnuradio-core/src/lib/general/gri_agc2_cc.i index e7d6da97f..0f97f1d8e 100644 --- a/gnuradio-core/src/lib/general/gri_agc2_cc.i +++ b/gnuradio-core/src/lib/general/gri_agc2_cc.i @@ -39,4 +39,9 @@ class gri_agc2_cc { float reference (); float gain (); float max_gain (); + void set_decay_rate (float rate); + void set_attack_rate (float rate); + void set_reference (float reference); + void set_gain (float gain); + void set_max_gain(float max_gain); }; diff --git a/gnuradio-core/src/lib/general/gri_agc2_ff.i b/gnuradio-core/src/lib/general/gri_agc2_ff.i index 3825ce225..d04b638a6 100644 --- a/gnuradio-core/src/lib/general/gri_agc2_ff.i +++ b/gnuradio-core/src/lib/general/gri_agc2_ff.i @@ -34,4 +34,14 @@ class gri_agc2_ff { public: gri_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0, float gain = 1.0, float max_gain = 0.0); + float attack_rate (); + float decay_rate (); + float reference (); + float gain (); + float max_gain (); + void set_attack_rate (float rate); + void set_decay_rate (float rate); + void set_reference (float reference); + void set_gain (float gain); + void set_max_gain (float max_gain); }; |