GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
goertzel_fc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006,2011,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_FFT_GOERTZEL_FC_H
12 #define INCLUDED_FFT_GOERTZEL_FC_H
13 
14 #include <gnuradio/fft/api.h>
16 
17 namespace gr {
18 namespace fft {
19 
20 /*!
21  * \brief Goertzel single-bin DFT calculation.
22  * \ingroup fourier_analysis_blk
23  */
24 class FFT_API goertzel_fc : virtual public sync_decimator
25 {
26 public:
27  // gr::fft::goertzel_fc::sptr
28  typedef std::shared_ptr<goertzel_fc> sptr;
29 
30  static sptr make(int rate, int len, float freq);
31 
32  virtual void set_freq(float freq) = 0;
33 
34  virtual void set_rate(int rate) = 0;
35 
36  virtual float freq() const = 0;
37 
38  virtual int rate() const = 0;
39 };
40 
41 } /* namespace fft */
42 } /* namespace gr */
43 
44 #endif /* INCLUDED_FFT_GOERTZEL_FC_H */
Goertzel single-bin DFT calculation.
Definition: goertzel_fc.h:25
static sptr make(int rate, int len, float freq)
virtual void set_rate(int rate)=0
virtual int rate() const =0
virtual void set_freq(float freq)=0
std::shared_ptr< goertzel_fc > sptr
Definition: goertzel_fc.h:28
virtual float freq() const =0
synchronous N:1 input to output with history
Definition: sync_decimator.h:26
#define FFT_API
Definition: gr-fft/include/gnuradio/fft/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29