Adding missing include rep

This commit is contained in:
FlUxIuS 2024-07-19 00:19:18 +02:00
parent 26c3ccb6a2
commit 42576ad1ea
No known key found for this signature in database
GPG Key ID: E8B96449EE4FA72F
12 changed files with 689 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# Copyright 2011,2012 Free Software Foundation, Inc.
#
# This file was generated by gr_modtool, a tool from the GNU Radio framework
# This file is a part of gr-tempest
#
# GNU Radio 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.
#
# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
########################################################################
# Install public header files
########################################################################
install(FILES
api.h
sampling_synchronization.h
framing.h
Hsync.h
normalize_flow.h
fine_sampling_synchronization.h
sync_detector.h
frame_drop.h
fft_peak_fine_sampling_sync.h
infer_screen_resolution.h
ssamp_correction.h DESTINATION include/tempest
)

View File

@ -0,0 +1,62 @@
/* -*- 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_HSYNC_H
#define INCLUDED_TEMPEST_HSYNC_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API Hsync : virtual public gr::block
{
public:
typedef std::shared_ptr<Hsync> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::Hsync.
*
* To avoid accidental use of raw pointers, tempest::Hsync's
* constructor is in a private implementation
* class. tempest::Hsync::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, int delay);
virtual void set_Htotal_and_delay(int Htotal, int delay) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_HSYNC_H */

View File

@ -0,0 +1,34 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
*
* This file was generated by gr_modtool, a tool from the GNU Radio framework
* This file is a part of gr-tempest
*
* GNU Radio 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.
*
* GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_TEMPEST_API_H
#define INCLUDED_TEMPEST_API_H
#include <gnuradio/attributes.h>
#ifdef gnuradio_tempest_EXPORTS
#define TEMPEST_API __GR_ATTR_EXPORT
#else
#define TEMPEST_API __GR_ATTR_IMPORT
#endif
#endif /* INCLUDED_TEMPEST_API_H */

View File

@ -0,0 +1,60 @@
/* -*- 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_FFT_PEAK_FINE_SAMPLING_SYNC_H
#define INCLUDED_TEMPEST_FFT_PEAK_FINE_SAMPLING_SYNC_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API fft_peak_fine_sampling_sync : virtual public gr::block
{
public:
typedef std::shared_ptr<fft_peak_fine_sampling_sync> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::fft_peak_fine_sampling_sync.
*
* To avoid accidental use of raw pointers, tempest::fft_peak_fine_sampling_sync's
* constructor is in a private implementation
* class. tempest::fft_peak_fine_sampling_sync::make is the public interface for
* creating new instances.
*/
static sptr make(int sample_rate, int size, int refresh_rate, int Vvisible, int Hvisible, bool automatic_mode);
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_FFT_PEAK_FINE_SAMPLING_SYNC_H */

View File

@ -0,0 +1,64 @@
/* -*- 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_FINE_SAMPLING_SYNCHRONIZATION_H
#define INCLUDED_TEMPEST_FINE_SAMPLING_SYNCHRONIZATION_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API fine_sampling_synchronization : virtual public gr::block
{
public:
typedef std::shared_ptr<fine_sampling_synchronization> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::fine_sampling_synchronization.
*
* To avoid accidental use of raw pointers, tempest::fine_sampling_synchronization's
* constructor is in a private implementation
* class. tempest::fine_sampling_synchronization::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, int Vtotal, int correct_sampling, float max_deviation, float update_proba);
virtual void set_Htotal_Vtotal(int Htotal, int Vtotal) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_FINE_SAMPLING_SYNCHRONIZATION_H */

View File

@ -0,0 +1,60 @@
/* -*- 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_FRAME_DROP_H
#define INCLUDED_TEMPEST_FRAME_DROP_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API frame_drop : virtual public gr::block
{
public:
typedef std::shared_ptr<frame_drop> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::frame_drop.
*
* To avoid accidental use of raw pointers, tempest::frame_drop's
* constructor is in a private implementation
* class. tempest::frame_drop::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, int Vtotal, int correct_sampling, float max_deviation, float update_proba, double actual_samp_rate);
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_FRAME_DROP_H */

View File

@ -0,0 +1,63 @@
/* -*- 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_FRAMING_H
#define INCLUDED_TEMPEST_FRAMING_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API framing : virtual public gr::block
{
public:
typedef std::shared_ptr<framing> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::framing.
*
* To avoid accidental use of raw pointers, tempest::framing's
* constructor is in a private implementation
* class. tempest::framing::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, int Vtotal, int Hdisplay, int Vdisplay);
virtual void set_Htotal_and_Vtotal(int Htotal, int Vtotal) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_FRAMING_H */

View File

@ -0,0 +1,62 @@
/* -*- 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 */

View File

@ -0,0 +1,62 @@
/* -*- 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_NORMALIZE_FLOW_H
#define INCLUDED_TEMPEST_NORMALIZE_FLOW_H
#include <tempest/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace tempest {
/*!
* \brief Normalizes a flow between min and max. To be less CPU-intensive, it randomly chooses when to update the signal's maximum.
* \ingroup tempest
*
*/
class TEMPEST_API normalize_flow : virtual public gr::sync_block
{
public:
typedef std::shared_ptr<normalize_flow> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::normalize_flow.
*
* To avoid accidental use of raw pointers, tempest::normalize_flow's
* constructor is in a private implementation
* class. tempest::normalize_flow::make is the public interface for
* creating new instances.
*/
static sptr make(float min, float max, int window, float alpha_avg, float update_proba);
virtual void set_min_max(float min, float max) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_NORMALIZE_FLOW_H */

View File

@ -0,0 +1,65 @@
/* -*- 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_SAMPLING_SYNCHRONIZATION_H
#define INCLUDED_TEMPEST_SAMPLING_SYNCHRONIZATION_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief It correlates the signal and estimates what's the most probable line length. It then corrects the sampling rate so that the line length's is Htotal.
* \ingroup tempest
*
*/
class TEMPEST_API sampling_synchronization : virtual public gr::block
{
public:
typedef std::shared_ptr<sampling_synchronization> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::sampling_synchronization.
*
* To avoid accidental use of raw pointers, tempest::sampling_synchronization's
* constructor is in a private implementation
* class. tempest::sampling_synchronization::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, double manual_correction);
virtual void set_Htotal(int Htotal) = 0;
virtual void set_manual_correction(double correction) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_SAMPLING_SYNCHRONIZATION_H */

View File

@ -0,0 +1,61 @@
/* -*- 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_SSAMP_CORRECTION_H
#define INCLUDED_TEMPEST_SSAMP_CORRECTION_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API ssamp_correction : virtual public gr::block
{
public:
typedef std::shared_ptr<ssamp_correction> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::ssamp_correction.
*
* To avoid accidental use of raw pointers, tempest::ssamp_correction's
* constructor is in a private implementation
* class. tempest::ssamp_correction::make is the public interface for
* creating new instances.
*/
static sptr make(int Htotal, int Vtotal, int correct_sampling, float max_deviation);
virtual void set_Htotal_Vtotal(int Htotal, int Vtotal) = 0;
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_SSAMP_CORRECTION_H */

View File

@ -0,0 +1,60 @@
/* -*- 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_SYNC_DETECTOR_H
#define INCLUDED_TEMPEST_SYNC_DETECTOR_H
#include <tempest/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace tempest {
/*!
* \brief <+description of block+>
* \ingroup tempest
*
*/
class TEMPEST_API sync_detector : virtual public gr::block
{
public:
typedef std::shared_ptr<sync_detector> sptr;
/*!
* \brief Return a shared_ptr to a new instance of tempest::sync_detector.
*
* To avoid accidental use of raw pointers, tempest::sync_detector's
* constructor is in a private implementation
* class. tempest::sync_detector::make is the public interface for
* creating new instances.
*/
static sptr make(int hscreen, int vscreen, int hblanking, int vblanking);
};
} // namespace tempest
} // namespace gr
#endif /* INCLUDED_TEMPEST_SYNC_DETECTOR_H */