summaryrefslogtreecommitdiff
path: root/gr-digital/lib/digital_fll_band_edge_cc.h
diff options
context:
space:
mode:
authorTom Rondeau2011-07-30 15:58:40 -0400
committerTom Rondeau2011-07-30 15:58:40 -0400
commit6876cd276ed2e3f74161b2301f33941218fc7882 (patch)
tree5ea8c1d40e3bc3b5f8720f838786cb3ff1e088b7 /gr-digital/lib/digital_fll_band_edge_cc.h
parenta3551b0a34b02fcdb0f339b3bdb16b31c47dc1a3 (diff)
downloadgnuradio-6876cd276ed2e3f74161b2301f33941218fc7882.tar.gz
gnuradio-6876cd276ed2e3f74161b2301f33941218fc7882.tar.bz2
gnuradio-6876cd276ed2e3f74161b2301f33941218fc7882.zip
digital: better behavior of FLL code and added gets and sets for the frequency and phase estimates.
Diffstat (limited to 'gr-digital/lib/digital_fll_band_edge_cc.h')
-rw-r--r--gr-digital/lib/digital_fll_band_edge_cc.h48
1 files changed, 41 insertions, 7 deletions
diff --git a/gr-digital/lib/digital_fll_band_edge_cc.h b/gr-digital/lib/digital_fll_band_edge_cc.h
index f59b9becd..496289d90 100644
--- a/gr-digital/lib/digital_fll_band_edge_cc.h
+++ b/gr-digital/lib/digital_fll_band_edge_cc.h
@@ -236,6 +236,30 @@ public:
*/
void set_filter_size(int filter_size);
+ /*!
+ * \brief Set the FLL's frequency.
+ *
+ * Set's the FLL's frequency. While this is normally updated by the
+ * inner loop of the algorithm, it could be useful to manually initialize,
+ * set, or reset this under certain circumstances.
+ *
+ * \param freq (float) new frequency
+ *
+ */
+ void set_frequency(float freq);
+
+ /*!
+ * \brief Set the FLL's phase.
+ *
+ * Set's the FLL's phase. While this is normally updated by the
+ * inner loop of the algorithm, it could be useful to manually initialize,
+ * set, or reset this under certain circumstances.
+ *
+ * \param phase (float) new phase
+ *
+ */
+ void set_phase(float phase);
+
/*******************************************************************
GET FUNCTIONS
*******************************************************************/
@@ -243,37 +267,47 @@ public:
/*!
* \brief Returns the loop bandwidth
*/
- float get_loop_bandwidth();
+ float get_loop_bandwidth() const;
/*!
* \brief Returns the loop damping factor
*/
- float get_damping_factor();
+ float get_damping_factor() const;
/*!
* \brief Returns the loop gain alpha
*/
- float get_alpha();
+ float get_alpha() const;
/*!
* \brief Returns the loop gain beta
*/
- float get_beta();
+ float get_beta() const;
/*!
* \brief Returns the number of sampler per symbol used for the filter
*/
- float get_samples_per_symbol();
+ float get_samples_per_symbol() const;
/*!
* \brief Returns the rolloff factor used for the filter
*/
- float get_rolloff();
+ float get_rolloff() const;
/*!
* \brief Returns the number of taps of the filter
*/
- int get_filter_size();
+ int get_filter_size() const;
+
+ /*!
+ * \brief Get the FLL's frequency estimate
+ */
+ float get_frequency() const;
+
+ /*!
+ * \brief Get the FLL's phase estimate
+ */
+ float get_phase() const;
/*!
* Print the taps to screen.