summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorTom Rondeau2011-09-30 12:31:19 -0400
committerTom Rondeau2011-09-30 12:31:19 -0400
commit68e482626119f5e9b3782f8655debf1dd8d22979 (patch)
tree9fc935bdbd9f819d32646e2c82d2ef6ca0429db1 /gnuradio-core/src
parentde4405ab0d8f6c423baadc15ab7d9fa11b6898c4 (diff)
downloadgnuradio-68e482626119f5e9b3782f8655debf1dd8d22979.tar.gz
gnuradio-68e482626119f5e9b3782f8655debf1dd8d22979.tar.bz2
gnuradio-68e482626119f5e9b3782f8655debf1dd8d22979.zip
Added a method to get the current timing rate from the pfb clock sync block.
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc5
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
index a939609f3..622701ab7 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
@@ -187,6 +187,11 @@ gr_pfb_clock_sync_ccf::get_beta() const
return d_beta;
}
+float get_clock_rate() const
+{
+ return d_rate_f;
+}
+
/*******************************************************************
*******************************************************************/
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
index fbe803d42..06a6f5720 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
@@ -314,6 +314,11 @@ public:
*/
float get_beta() const;
+ /*!
+ * \brief Returns the current clock rate
+ */
+ float get_clock_rate() const;
+
/*******************************************************************
*******************************************************************/