deep-tempest/gr-tempest/include/gnuradio/tempest/infer_screen_resolution.h

63 lines
2.0 KiB
C++

/* -*- c++ -*- */
/*
* Copyright 2020
* Federico "Larroca" La Rocca <flarroca@fing.edu.uy>
*
* Instituto de Ingenieria Electrica, Facultad de Ingenieria,
* Universidad de la Republica, Uruguay.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef INCLUDED_TEMPEST_INFER_SCREEN_RESOLUTION_H
#define INCLUDED_TEMPEST_INFER_SCREEN_RESOLUTION_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API infer_screen_resolution : virtual public gr::block
{
public:
typedef std::shared_ptr<infer_screen_resolution> sptr;
virtual void set_refresh_rate(float refresh_rate) = 0;
/*!
* \brief Return a shared_ptr to a new instance of tempest::infer_screen_resolution.
*
* To avoid accidental use of raw pointers, tempest::infer_screen_resolution's
* constructor is in a private implementation
* class. tempest::infer_screen_resolution::make is the public interface for
* creating new instances.
*/
static sptr make(int sample_rate, int fft_size, float refresh_rate, bool automatic_mode);
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_INFER_SCREEN_RESOLUTION_H */