GNU Radio's MAPPER Package
preamble_sync_cc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2015 Free Software Foundation, Inc
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_MAPPER_PREAMBLE_SYNC_CC_IMPL_H
22#define INCLUDED_MAPPER_PREAMBLE_SYNC_CC_IMPL_H
23
25
26namespace gr {
27 namespace mapper {
28
30 {
31 private:
32 int d_last;
33 int d_state;
34 int d_width;
35 std::vector<uint8_t> d_preamble;
36 std::vector<gr_complex> d_preamble_map;
37 modtype_t d_modtype;
38 std::vector<int> d_symbol_map;
39 float d_gtas;
40 float d_gtls;
41 int d_interp;
42 float d_offset;
43
44 constellation d_const;
45 uint16_t d_mapidx;
46
47 std::vector<float> d_preamble_phase;
48
50
51 void get_preamble_phase(void);
52 void unwrap(float *phase_array, int N);
53
54 bool d_early_term;
55
56 public:
57 preamble_sync_cc_impl(int width, const std::vector<unsigned char> &preamble, modtype_t modtype, const std::vector<int> &symbol_map,
58 float garble_thresh_acquire_sync, float garble_thresh_loose_sync);
60
61 // Where all the action really happens
62 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
63
64 int general_work(int noutput_items,
65 gr_vector_int &ninput_items,
66 gr_vector_const_void_star &input_items,
67 gr_vector_void_star &output_items);
68 };
69
70 } // namespace mapper
71} // namespace gr
72
73#endif /* INCLUDED_MAPPER_PREAMBLE_SYNC_CC_IMPL_H */
74
Definition constellation.h:33
Definition pream_sync_correlator.h:34
Definition preamble_sync_cc_impl.h:30
preamble_sync_cc_impl(int width, const std::vector< unsigned char > &preamble, modtype_t modtype, const std::vector< int > &symbol_map, float garble_thresh_acquire_sync, float garble_thresh_loose_sync)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition preamble_sync_cc.h:39
modtype_t
Definition constellation.h:23
Definition constellation.h:11