gr-baz Package
baz_burst_tagger_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014 Balint Seeber <balint256@gmail.com>
4 * Copyright 2013 Bastian Bloessl <bloessl@ccs-labs.org>.
5 *
6 * This is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
9 * any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef INCLUDED_BAZ_BURST_TAGGER_IMPL_H
23#define INCLUDED_BAZ_BURST_TAGGER_IMPL_H
24
25#include <baz_burst_tagger.h>
26
27namespace gr {
28namespace baz {
29
31private:
32 void add_eob(uint64_t item);
33 void add_sob(uint64_t item);
34
35 pmt::pmt_t d_tag_name, d_ignore_name;
36 int d_copy, d_current_length;
37 float d_mult;
38 unsigned int d_pad_front, d_pad_rear;
39 unsigned int d_to_pad_front/*, d_to_pad_rear*/;
40 bool d_in_burst, d_drop_residue, d_verbose;
41 uint64_t d_count, d_work_count;
42public:
43 burst_tagger_impl(const std::string& tag_name = "length", float mult = 1, unsigned int pad_front = 0, unsigned int pad_rear = 0, bool drop_residue = true, bool verbose = true);
45
46 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
47 int general_work(int noutput_items, gr_vector_int& ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
48};
49
50} // namespace baz
51} // namespace gr
52
53#endif /* INCLUDED_BAZ_BURST_TAGGER_IMPL_H */
Definition: baz_burst_tagger_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)
burst_tagger_impl(const std::string &tag_name="length", float mult=1, unsigned int pad_front=0, unsigned int pad_rear=0, bool drop_residue=true, bool verbose=true)
Definition: baz_burst_tagger.h:30
Definition: baz_additive_scrambler_bb.h:28