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 | |
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.
-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 | ||||
-rw-r--r-- | grc/blocks/gr_frequency_modulator_fc.xml | 1 |
3 files changed, 7 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; } }; diff --git a/grc/blocks/gr_frequency_modulator_fc.xml b/grc/blocks/gr_frequency_modulator_fc.xml index f18d9f1e1..d5f8fcfe3 100644 --- a/grc/blocks/gr_frequency_modulator_fc.xml +++ b/grc/blocks/gr_frequency_modulator_fc.xml @@ -9,6 +9,7 @@ <key>gr_frequency_modulator_fc</key> <import>from gnuradio import gr</import> <make>gr.frequency_modulator_fc($sensitivity)</make> + <callback>set_sensitivity($sensitivity)</callback> <param> <name>Sensitivity</name> <key>sensitivity</key> |