summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authorjcorgan2008-09-14 18:37:08 +0000
committerjcorgan2008-09-14 18:37:08 +0000
commit5c071b07710d2c4e127d321faba59b2a7b1d7c8d (patch)
tree448d753e9459e0edb0be4f9d1409f1b354c772fe /gnuradio-core/src/lib/general
parent53dad5b53ec6468b23947e933ab18c422895f4e1 (diff)
downloadgnuradio-5c071b07710d2c4e127d321faba59b2a7b1d7c8d.tar.gz
gnuradio-5c071b07710d2c4e127d321faba59b2a7b1d7c8d.tar.bz2
gnuradio-5c071b07710d2c4e127d321faba59b2a7b1d7c8d.zip
Adds frequency accessor for Costas loop, BERT receiver displays frequency and timing offset
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9576 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_costas_loop_cc.h5
-rw-r--r--gnuradio-core/src/lib/general/gr_costas_loop_cc.i2
2 files changed, 6 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_costas_loop_cc.h b/gnuradio-core/src/lib/general/gr_costas_loop_cc.h
index ba4e69c88..d48ddb938 100644
--- a/gnuradio-core/src/lib/general/gr_costas_loop_cc.h
+++ b/gnuradio-core/src/lib/general/gr_costas_loop_cc.h
@@ -129,6 +129,11 @@ public:
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
+
+ /*! \brief returns the current NCO frequency in radians/sample
+ *
+ */
+ float freq() const { return d_freq; }
};
#endif
diff --git a/gnuradio-core/src/lib/general/gr_costas_loop_cc.i b/gnuradio-core/src/lib/general/gr_costas_loop_cc.i
index 39f49dd4f..488cab370 100644
--- a/gnuradio-core/src/lib/general/gr_costas_loop_cc.i
+++ b/gnuradio-core/src/lib/general/gr_costas_loop_cc.i
@@ -40,5 +40,5 @@ class gr_costas_loop_cc : public gr_sync_block
float alpha();
void set_beta(float beta);
float beta();
-
+ float freq();
};