GNU Radio's MAC Package
burst_tagger.h
Go to the documentation of this file.
1/*
2 * Copyright 2013 Bastian Bloessl<bloessl@ccs-labs.org>.
3 *
4 * This is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3, or (at your option)
7 * any later version.
8 *
9 * This software is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this software; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street,
17 * Boston, MA 02110-1301, USA.
18 */
19
20
21#ifndef INCLUDED_MAC_BURST_TAGGER_H
22#define INCLUDED_MAC_BURST_TAGGER_H
23
24#include <mac/api.h>
25#include <gnuradio/sync_block.h>
26
27namespace gr {
28namespace mac {
29
30class MAC_API burst_tagger : virtual public gr::block {
31public:
32 typedef boost::shared_ptr<burst_tagger> sptr;
33
34 static sptr make(const std::string& tag_name = "length", unsigned int mult = 1, unsigned int pad_front = 0, unsigned int pad_rear = 0, bool drop_residue = true);
35};
36
37} // namespace mac
38} // namespace gr
39
40#endif /* INCLUDED_MAC_BURST_TAGGER_H */
#define MAC_API
Definition: api.h:30
Definition: burst_tagger.h:30
boost::shared_ptr< burst_tagger > sptr
Definition: burst_tagger.h:32
static sptr make(const std::string &tag_name="length", unsigned int mult=1, unsigned int pad_front=0, unsigned int pad_rear=0, bool drop_residue=true)
Definition: burst_tagger.h:27