GNU Radio's MAPPER Package
preamble_insert_bb.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
22#ifndef INCLUDED_MAPPER_PREAMBLE_INSERT_BB_H
23#define INCLUDED_MAPPER_PREAMBLE_INSERT_BB_H
24
25#include <mapper/api.h>
26#include <gnuradio/block.h>
27
28namespace gr {
29 namespace mapper {
30
31 class MAPPER_API preamble_insert_bb : virtual public gr::block
32 {
33 public:
34 typedef boost::shared_ptr<preamble_insert_bb> sptr;
35
36 static sptr make(int width, const std::vector<unsigned char> &preamble);
37
38 virtual void rewind() = 0;
39 virtual void set_width(int nw) = 0;
40 virtual void set_preamble(const std::vector<unsigned char> &np) = 0;
41 };
42
43 } // namespace mapper
44} // namespace gr
45
46#endif /* INCLUDED_MAPPER_PREAMBLE_INSERT_BB_H */
47
#define MAPPER_API
Definition: api.h:30
Definition: preamble_insert_bb.h:32
virtual void set_preamble(const std::vector< unsigned char > &np)=0
virtual void set_width(int nw)=0
boost::shared_ptr< preamble_insert_bb > sptr
Definition: preamble_insert_bb.h:34
static sptr make(int width, const std::vector< unsigned char > &preamble)
Definition: constellation.h:11