GNU Radio's MAPPER Package
preamble_generator.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_GENERATOR_H
22#define INCLUDED_MAPPER_PREAMBLE_GENERATOR_H
23
24#include <mapper/api.h>
25#include <stdio.h>
26#include <vector>
27
28
29namespace gr {
30 namespace mapper {
31
33 public:
35 preamble_generator(int N, int seed, int mask);
38 std::vector<int> get_preamble();
39
40 private:
41 int d_bit_length;
42 int d_reg;
43 int d_seed;
44 int d_mask;
45 std::vector<int> d_preamble;
46 void make_preamble();
47 };
48 }
49}
50
51#endif /* INCLUDED_MAPPER_PREAMBLE_GENERATOR_H */
#define MAPPER_API
Definition: api.h:30
Definition: preamble_generator.h:32
preamble_generator * clone() const
std::vector< int > get_preamble()
preamble_generator(int N, int seed, int mask)
Definition: constellation.h:11