GNU Radio 3.7.3 C++ API
bit_timing_loop.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio 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  * GNU Radio 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 GNU Radio; 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_ATSC_BIT_TIMING_LOOP_H
24 #define INCLUDED_ATSC_BIT_TIMING_LOOP_H
25 
26 #include <gnuradio/atsc/api.h>
27 #include <cstdio>
28 #include <gnuradio/block.h>
32 
35 
37 
38 /*!
39  * \brief ATSC BitTimingLoop3
40  * \ingroup atsc
41  *
42  * This class accepts a single real input and produces two outputs,
43  * the raw symbol (float) and the tag (atsc_syminfo)
44  */
46 {
48 
50 
51 public:
52  int work (int noutput_items,
53  gr_vector_const_void_star &input_items,
54  gr_vector_void_star &output_items);
55 
56  void reset() { /* nop */ }
57 
59 
60  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
61 
62  int general_work (int noutput_items,
63  gr_vector_int &ninput_items,
64  gr_vector_const_void_star &input_items,
65  gr_vector_void_star &output_items);
66 
67 
68  // debug (NOPs)
69  void set_mu (double a_mu) { }
70  void set_no_update (bool a_no_update) { }
71  void set_loop_filter_tap (double tap) { }
72  void set_timing_rate (double rate) { }
73 
74 
75  protected:
76 
79  unsigned long long d_next_input;
81  int d_si;
82 
83 
84 };
85 
86 #endif /* INCLUDED_ATSC_BIT_TIMING_LOOP_H */
87 
88 
89 
#define ATSC_API
Definition: gr-atsc/include/gnuradio/atsc/api.h:30
atsci_sssr d_sssr
Definition: bit_timing_loop.h:77
ATSC_API atsc_bit_timing_loop_sptr atsc_make_bit_timing_loop()
~atsc_bit_timing_loop()
Definition: bit_timing_loop.h:58
int d_si
Definition: bit_timing_loop.h:81
ATSC Segment and Symbol Sync Recovery.
Definition: sssr_impl.h:132
std::vector< const void * > gr_vector_const_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:38
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
double d_rx_clock_to_symbol_freq
Definition: bit_timing_loop.h:80
std::vector< void * > gr_vector_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:37
std::vector< int > gr_vector_int
Definition: gnuradio-runtime/include/gnuradio/types.h:33
void reset()
Definition: bit_timing_loop.h:56
void set_no_update(bool a_no_update)
Definition: bit_timing_loop.h:70
void set_loop_filter_tap(double tap)
Definition: bit_timing_loop.h:71
interpolator control for segment and symbol sync recovery
Definition: sssr_impl.h:197
virtual void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Estimate input requirements given output request.
atsci_interpolator d_interp
Definition: bit_timing_loop.h:78
virtual int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
compute output items from input items
void set_timing_rate(double rate)
Definition: bit_timing_loop.h:72
ATSC BitTimingLoop3This class accepts a single real input and produces two outputs, the raw symbol (float) and the tag (atsc_syminfo)
Definition: bit_timing_loop.h:45
unsigned long long d_next_input
Definition: bit_timing_loop.h:79
The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: block.h:60
void set_mu(double a_mu)
Definition: bit_timing_loop.h:69