GNU Radio's CCS Package
packet_pad_impl.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#ifndef INCLUDED_FOO_PACKET_PAD_IMPL_H
21#define INCLUDED_FOO_PACKET_PAD_IMPL_H
22
23#include <foo/packet_pad.h>
24
25namespace gr {
26namespace foo {
27
28 class packet_pad_impl : public packet_pad {
29 private:
30 void add_eob(uint64_t item);
31 void add_sob(uint64_t item);
32
33 bool d_debug;
34 bool d_delay;
35 double d_delay_sec;
36
37 int d_pad_front;
38 int d_pad_tail;
39
40 int d_pad;
41 bool d_eob;
42
43 public:
44 packet_pad_impl(bool debug, bool delay, double delay_sec,
45 unsigned int pad_front, unsigned int pad_tail);
46
48
49 int general_work (int noutput_items,
50 gr_vector_int& ninput_items,
51 gr_vector_const_void_star& input_items,
52 gr_vector_void_star& output_items);
53 void forecast (int noutput_items,
54 gr_vector_int &ninput_items_required);
55 };
56
57} // namespace foo
58} // namespace gr
59
60#endif /* INCLUDED_FOO_BURST_TAGGER_IMPL_H */
61
Definition packet_pad_impl.h:28
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)
packet_pad_impl(bool debug, bool delay, double delay_sec, unsigned int pad_front, unsigned int pad_tail)
Definition packet_pad.h:27
Definition burst_tagger.h:27