Loading...
Searching...
No Matches
goertzel_fc.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2006,2011,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_FFT_GOERTZEL_FC_H
#define INCLUDED_FFT_GOERTZEL_FC_H
#include <gnuradio/fft/api.h>
#include <gnuradio/sync_decimator.h>
namespace gr {
namespace fft {
/*!
* \brief Goertzel single-bin DFT calculation.
* \ingroup fourier_analysis_blk
*/
class FFT_API goertzel_fc : virtual public sync_decimator
{
public:
// gr::fft::goertzel_fc::sptr
typedef std::shared_ptr<goertzel_fc> sptr;
static sptr make(int rate, int len, float freq);
virtual void set_freq(float freq) = 0;
virtual void set_rate(int rate) = 0;
virtual float freq() const = 0;
virtual int rate() const = 0;
};
} /* namespace fft */
} /* namespace gr */
#endif /* INCLUDED_FFT_GOERTZEL_FC_H */
gr::fft::goertzel_fc
Goertzel single-bin DFT calculation.
Definition goertzel_fc.h:25
gr::fft::goertzel_fc::make
static sptr make(int rate, int len, float freq)
gr::fft::goertzel_fc::set_rate
virtual void set_rate(int rate)=0
gr::fft::goertzel_fc::rate
virtual int rate() const =0
gr::fft::goertzel_fc::set_freq
virtual void set_freq(float freq)=0
gr::fft::goertzel_fc::sptr
std::shared_ptr< goertzel_fc > sptr
Definition goertzel_fc.h:28
gr::fft::goertzel_fc::freq
virtual float freq() const =0
gr::sync_decimator
synchronous N:1 input to output with history
Definition sync_decimator.h:26
api.h
FFT_API
#define FFT_API
Definition gr-fft/include/gnuradio/fft/api.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_decimator.h