GNU Radio C++ API
gr_freq_xlating_fir_filter_scc.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2002,2004 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* GNU Radio is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3, or (at your option)
10
* any later version.
11
*
12
* GNU Radio is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with GNU Radio; see the file COPYING. If not, write to
19
* the Free Software Foundation, Inc., 51 Franklin Street,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
/*
24
* WARNING: This file is automatically generated by
25
* generate_gr_freq_xlating_fir_filter_XXX.py Any changes made to this file
26
* will be overwritten.
27
*/
28
29
#ifndef INCLUDED_GR_FREQ_XLATING_FIR_FILTER_SCC_H
30
#define INCLUDED_GR_FREQ_XLATING_FIR_FILTER_SCC_H
31
32
#include <
gr_core_api.h
>
33
#include <
gr_sync_decimator.h
>
34
#include <
gr_rotator.h
>
35
36
class
gr_freq_xlating_fir_filter_scc
;
37
typedef
boost::shared_ptr<gr_freq_xlating_fir_filter_scc>
gr_freq_xlating_fir_filter_scc_sptr
;
38
39
/*!
40
* Construct a FIR filter with the given taps and a composite frequency
41
* translation that shifts center_freq down to zero Hz. The frequency
42
* translation logically comes before the filtering operation.
43
*/
44
GR_CORE_API
gr_freq_xlating_fir_filter_scc_sptr
45
gr_make_freq_xlating_fir_filter_scc
(
int
decimation
,
const
std::vector<gr_complex> &
taps
,
46
double
center_freq,
double
sampling_freq);
47
48
49
class
gr_fir_scc
;
50
51
/*!
52
* \brief FIR filter combined with frequency translation with short input, gr_complex output and gr_complex taps
53
* \ingroup filter_blk
54
*
55
* This class efficiently combines a frequency translation
56
* (typically "down conversion") with a FIR filter (typically low-pass)
57
* and decimation. It is ideally suited for a "channel selection filter"
58
* and can be efficiently used to select and decimate a narrow band signal
59
* out of wide bandwidth input.
60
*
61
* Uses a single input array to produce a single output array.
62
* Additional inputs and/or outputs are ignored.
63
*/
64
class
GR_CORE_API
gr_freq_xlating_fir_filter_scc
:
public
gr_sync_decimator
65
{
66
public
:
67
virtual
~
gr_freq_xlating_fir_filter_scc
();
68
69
void
set_center_freq (
double
center_freq);
70
void
set_taps (
const
std::vector<gr_complex> &
taps
);
71
72
int
work
(
int
noutput_items,
73
gr_vector_const_void_star
&input_items,
74
gr_vector_void_star
&output_items);
75
76
private
:
77
friend
GR_CORE_API
gr_freq_xlating_fir_filter_scc_sptr
78
gr_make_freq_xlating_fir_filter_scc
(
int
decimation,
const
std::vector<gr_complex> &taps,
79
double
center_freq,
double
sampling_freq);
80
81
protected
:
82
std::vector<gr_complex>
d_proto_taps
;
83
gr_fir_scc
*
d_composite_fir
;
84
gr_rotator
d_r
;
85
double
d_center_freq
;
86
double
d_sampling_freq
;
87
bool
d_updated
;
88
89
virtual
void
build_composite_fir ();
90
91
/*!
92
* Construct a FIR filter with the given taps and a composite frequency
93
* translation that shifts center_freq down to zero Hz. The frequency
94
* translation logically comes before the filtering operation.
95
*/
96
gr_freq_xlating_fir_filter_scc
(
int
decimation,
97
const
std::vector<gr_complex> &taps,
98
double
center_freq,
double
sampling_freq);
99
};
100
101
#endif
/* _gr_freq_xlating_fir_filter_scc_H_ */
gnuradio-core
src
lib
filter
gr_freq_xlating_fir_filter_scc.h
Generated on Mon Jul 8 2013 17:07:42 for GNU Radio C++ API by
1.8.4