GNU Radio's GSM Package
clock_offset_control_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * @file
4  * @author Piotr Krysik <ptrkrysik@gmail.com>
5  * @section LICENSE
6  *
7  * Gr-gsm is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * Gr-gsm is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with gr-gsm; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_GSM_CLOCK_OFFSET_CONTROL_IMPL_H
24 #define INCLUDED_GSM_CLOCK_OFFSET_CONTROL_IMPL_H
25 
27 #include <string>
28 
29 namespace gr {
30  namespace gsm {
32  {
33  private:
34  float d_fc;
35  float d_alfa;
36  float d_ppm_estimate;
37  float d_last_ppm_estimate;
38  bool d_first_measurement;
39  int d_counter;
40  std::string d_last_state;
41  float d_current_time;
42  float d_last_fcch_time;
43  bool d_first_time;
44 
45  void process_measurement(pmt::pmt_t msg);
46  void timed_reset();
47  void reset();
48  public:
49  clock_offset_control_impl(float fc);
51 
52  virtual void set_fc(float fc);
53  };
54  } // namespace gsm
55 } // namespace gr
56 
57 #endif /* INCLUDED_GSM_CLOCK_OFFSET_CONTROL_IMPL_H */
58 
virtual void set_fc(float fc)
&lt;+description of block+&gt;
Definition: clock_offset_control.h:39
Definition: clock_offset_control_impl.h:31