aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver/receiver_impl.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-24 19:21:02 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-07-24 19:59:46 +0700
commitcc82cf0300cb005f424bf6f5ebc02674a5537cbf (patch)
tree33e91c11ad8bacb67790722cea3d4c11165f7f02 /lib/receiver/receiver_impl.h
parent5eb5db2fc1f4ac2ddfcdb81fc2351b629517ca3a (diff)
receiver_impl.cc: refactor the source code
This change formats the receiver implementation source code according to a mix of GNURadio and the Kernel coding styles. The main changes are: - Line length limit is 80 columns - Usage of /* comments */ is prefered - Do not use curly braces for single line loops / conditions For more details, see: https://wiki.gnuradio.org/index.php/Coding_guide_impl https://www.kernel.org/doc/html/v4.10/process/coding-style.html
Diffstat (limited to 'lib/receiver/receiver_impl.h')
-rw-r--r--lib/receiver/receiver_impl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h
index 6074dd5..23aa085 100644
--- a/lib/receiver/receiver_impl.h
+++ b/lib/receiver/receiver_impl.h
@@ -63,6 +63,7 @@ namespace gr {
/**@name Variables used to store result of the find_fcch_burst fuction */
//@{
+ bool d_freq_offset_tag_in_fcch; ///< frequency offset tag presence
unsigned d_fcch_start_pos; ///< position of the first sample of the fcch burst
float d_freq_offset_setting; ///< frequency offset set in frequency shifter located upstream
//@}
@@ -200,9 +201,13 @@ namespace gr {
* Configures burst types in different channels
*/
void configure_receiver();
-
-
+ /* State machine handlers */
+ void fcch_search_handler(gr_complex *input, int noutput_items);
+ void sch_search_handler(gr_complex *input, int noutput_items);
+ void synchronized_handler(gr_complex *input,
+ gr_vector_const_void_star &input_items, int noutput_items);
+
public:
receiver_impl(int osr, const std::vector<int> &cell_allocation, const std::vector<int> &tseq_nums, bool process_uplink);
~receiver_impl();