GNU Radio's MAPPER Package
preamble_sync_demapper_hard_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_DECODE_HARD_IMPL_H
22#define INCLUDED_MAPPER_PREAMBLE_SYNC_DECODE_HARD_IMPL_H
23
25
26namespace gr {
27 namespace mapper {
28
30 {
31 private:
32 std::vector<uint8_t> d_preamble;
33 std::vector<gr_complex> d_preamble_map;
34 std::vector<int> d_symbol_map;
35
36 int d_acq_bt;
37 int d_loo_bt;
38 int d_bps;
39 int d_state;
40 int d_width;
41 int d_offset;
42 int d_mapidx;
43 // int d_loose_count;
44 bool d_passthrough;
45
46 modtype_t d_modtype;
47
48 constellation d_const;
49
50 int d_processed;
51
52
53 public:
54 preamble_sync_demapper_hard_impl(int width, const std::vector<unsigned char> &preamble, modtype_t modtype,
55 const std::vector<int> &symbol_map, int acquire_bit_thresh, int loose_bit_thresh,
56 bool passthrough);
58
59 // Where all the action really happens
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 } // namespace mapper
69} // namespace gr
70
71#endif /* INCLUDED_MAPPER_PREAMBLE_SYNC_DECODE_HARD_IMPL_H */
72
Definition: constellation.h:33
Definition: preamble_sync_demapper_hard_impl.h:30
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
preamble_sync_demapper_hard_impl(int width, const std::vector< unsigned char > &preamble, modtype_t modtype, const std::vector< int > &symbol_map, int acquire_bit_thresh, int loose_bit_thresh, bool passthrough)
<+description of block+>
Definition: preamble_sync_demapper_hard.h:39
modtype_t
Definition: constellation.h:23
Definition: constellation.h:11