GNU Radio 3.6.3 C++ API
keep_one_in_n_impl.h
Go to the documentation of this file.
1
2
/* -*- c++ -*- */
3
/*
4
* Copyright 2012 Free Software Foundation, Inc.
5
*
6
* This file is part of GNU Radio
7
*
8
* GNU Radio is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3, or (at your option)
11
* any later version.
12
*
13
* GNU Radio is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with GNU Radio; see the file COPYING. If not, write to
20
* the Free Software Foundation, Inc., 51 Franklin Street,
21
* Boston, MA 02110-1301, USA.
22
*/
23
24
#ifndef INCLUDED_KEEP_ONE_IN_N_IMPL_H
25
#define INCLUDED_KEEP_ONE_IN_N_IMPL_H
26
27
#include <
blocks/keep_one_in_n.h
>
28
29
namespace
gr {
30
namespace
blocks {
31
32
class
BLOCKS_API
keep_one_in_n_impl
:
public
keep_one_in_n
33
{
34
int
d_n;
35
int
d_count;
36
float
d_decim_rate;
37
38
public
:
39
keep_one_in_n_impl
(
size_t
itemsize,
int
n);
40
41
int
general_work(
int
noutput_items,
42
gr_vector_int
&ninput_items,
43
gr_vector_const_void_star
&input_items,
44
gr_vector_void_star
&output_items);
45
46
void
set_n(
int
n);
47
};
48
49
}
/* namespace blocks */
50
}
/* namespace gr */
51
52
53
#endif
/* INCLUDED_KEEP_ONE_IN_N_IMPL_H */
gnuradio
gr-blocks
lib
keep_one_in_n_impl.h
Generated by
1.8.1.1