From 5c071b07710d2c4e127d321faba59b2a7b1d7c8d Mon Sep 17 00:00:00 2001 From: jcorgan Date: Sun, 14 Sep 2008 18:37:08 +0000 Subject: 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 --- gnuradio-core/src/lib/general/gr_costas_loop_cc.h | 5 +++++ gnuradio-core/src/lib/general/gr_costas_loop_cc.i | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gnuradio-core/src/lib/general') 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(); }; -- cgit