diff options
author | Johnathan Corgan | 2011-07-01 11:19:57 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-07-01 11:19:57 -0700 |
commit | a67226819f965e10be6c0dff7d8222252b325ab8 (patch) | |
tree | c5e9107b82c213fafb9ba1ab9b49e534b4c1a98a /gnuradio-core/src | |
parent | 9bf36359d2cab2cc36adee529429e6b693448154 (diff) | |
parent | 33c00729c9720c2254cb0fa9daad5994aeba1ab7 (diff) | |
download | gnuradio-a67226819f965e10be6c0dff7d8222252b325ab8.tar.gz gnuradio-a67226819f965e10be6c0dff7d8222252b325ab8.tar.bz2 gnuradio-a67226819f965e10be6c0dff7d8222252b325ab8.zip |
Merge branch 'quad_demod_gain_accessors'
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h | 2 | ||||
-rw-r--r-- | gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h index a29acd628..df6de93d5 100644 --- a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h +++ b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h @@ -44,6 +44,8 @@ class gr_quadrature_demod_cf : public gr_sync_block float d_gain; public: + void set_gain(float gain) { d_gain = gain; } + float gain() const { return d_gain; } int work (int noutput_items, gr_vector_const_void_star &input_items, diff --git a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i index fbd45dcf8..d9f338daa 100644 --- a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i +++ b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i @@ -27,4 +27,8 @@ gr_quadrature_demod_cf_sptr gr_make_quadrature_demod_cf (float gain); class gr_quadrature_demod_cf : public gr_sync_block { gr_quadrature_demod_cf (float gain); + +public: + void set_gain(float gain) { d_gain = gain; } + float gain() const { return d_gain; } }; |