diff options
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_costas_loop_cc.h | 5 | ||||
-rw-r--r-- | gnuradio-core/src/lib/general/gr_costas_loop_cc.i | 2 |
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(); }; |