diff options
author | Tom Rondeau | 2011-05-12 16:29:33 +0100 |
---|---|---|
committer | Tom Rondeau | 2011-05-12 16:29:33 +0100 |
commit | f53fef3d2bc39b2020b8bce3d88b43569dd16605 (patch) | |
tree | 1ffa8bc79696f434bdeb46839ac8ab2d63f81354 /gnuradio-core/src/lib/general | |
parent | 3303ac16c2b161a4db8cb37b728e0173910ee865 (diff) | |
download | gnuradio-f53fef3d2bc39b2020b8bce3d88b43569dd16605.tar.gz gnuradio-f53fef3d2bc39b2020b8bce3d88b43569dd16605.tar.bz2 gnuradio-f53fef3d2bc39b2020b8bce3d88b43569dd16605.zip |
core: adding get/set sensitivity accessors to frequency_modulator_fc block.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h | 4 | ||||
-rw-r--r-- | gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h index 4ba05d709..55f8412ce 100644 --- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h +++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h @@ -47,7 +47,9 @@ class gr_frequency_modulator_fc : public gr_sync_block gr_frequency_modulator_fc (double sensitivity); public: - + void set_sensitivity(float sens) { d_sensitivity = sens; } + float get_sensitivity() { return d_sensitivity; } + int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items); diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i index 612b59026..04d9a41ba 100644 --- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i +++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i @@ -28,4 +28,7 @@ class gr_frequency_modulator_fc : public gr_sync_block { private: gr_frequency_modulator_fc (double sensitivity); +public: + void set_sensitivity(float sens) { d_sensitivity = sens; } + float get_sensitivity() { return d_sensitivity; } }; |