aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver/receiver_impl.h
diff options
context:
space:
mode:
authorpiotr <Piotr Krysik pkrysik@elka.pw.edu.pl>2014-08-06 14:10:56 +0200
committerpiotr <Piotr Krysik pkrysik@elka.pw.edu.pl>2014-08-06 14:10:56 +0200
commit4089c1a7f3dbadf024b160667ebbd273d77984dd (patch)
tree2575805a52cd6c542a4e0911553c0114a94944a8 /lib/receiver/receiver_impl.h
parent969ecbcb4cf780673866a07abfc7a96ff86cd6f9 (diff)
Added new blocks for clock freqeuncy correction
Diffstat (limited to 'lib/receiver/receiver_impl.h')
-rw-r--r--lib/receiver/receiver_impl.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h
index d3083b2..76ad40b 100644
--- a/lib/receiver/receiver_impl.h
+++ b/lib/receiver/receiver_impl.h
@@ -34,6 +34,7 @@ namespace gr {
class receiver_impl : public receiver
{
private:
+ int d_prev_burst_start; //!!
/**@name Configuration of the receiver */
//@{
const int d_OSR; ///< oversampling ratio
@@ -59,8 +60,8 @@ namespace gr {
/**@name Variables used to store result of the find_fcch_burst fuction */
//@{
unsigned d_fcch_start_pos; ///< position of the first sample of the fcch burst
- float d_freq_offset; ///< frequency offset of the received signal
- float d_prev_freq_offset; //!!!
+// float d_freq_offset; ///< frequency offset of the received signal
+ float d_freq_offset_setting; ///< frequency offset set in frequency shifter located upstream
//@}
std::list<double> d_freq_offset_vals;
@@ -89,19 +90,19 @@ namespace gr {
/** Function whis is used to search a FCCH burst and to compute frequency offset before
* "synchronized" state of the receiver
*
- * TODO: Describe the FCCH search algorithm in the documentation
* @param input vector with input signal
* @param nitems number of samples in the input vector
* @return
*/
- bool find_fcch_burst(const gr_complex *input, const int nitems);
+ bool find_fcch_burst(const gr_complex *input, const int nitems, double & computed_freq_offset);
/** Computes frequency offset from FCCH burst samples
*
- * @param input vector with input samples
- * @param first_sample number of the first sample of the FCCH busrt
- * @param last_sample number of the last sample of the FCCH busrt
- * @return frequency offset
+ * @param[in] input vector with input samples
+ * @param[in] first_sample number of the first sample of the FCCH busrt
+ * @param[in] last_sample number of the last sample of the FCCH busrt
+ * @param[out] computed_freq_offset contains frequency offset estimate if FCCH burst was located
+ * @return true if frequency offset was faound
*/
double compute_freq_offset(const gr_complex * input, unsigned first_sample, unsigned last_sample);
@@ -206,8 +207,6 @@ namespace gr {
receiver_impl(feval_dd * tuner, int osr, int arfcn);
~receiver_impl();
-// void forecast(int noutput_items, gr_vector_int &ninput_items_required);
-
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
virtual void set_arfcn(int arfcn);
virtual void reset();