diff options
Diffstat (limited to 'gr-wavelet/include/gnuradio')
-rw-r--r-- | gr-wavelet/include/gnuradio/wavelet/CMakeLists.txt | 31 | ||||
-rw-r--r-- | gr-wavelet/include/gnuradio/wavelet/api.h | 33 | ||||
-rw-r--r-- | gr-wavelet/include/gnuradio/wavelet/squash_ff.h | 51 | ||||
-rw-r--r-- | gr-wavelet/include/gnuradio/wavelet/wavelet_ff.h | 51 | ||||
-rw-r--r-- | gr-wavelet/include/gnuradio/wavelet/wvps_ff.h | 51 |
5 files changed, 217 insertions, 0 deletions
diff --git a/gr-wavelet/include/gnuradio/wavelet/CMakeLists.txt b/gr-wavelet/include/gnuradio/wavelet/CMakeLists.txt new file mode 100644 index 0000000000..43c1603d15 --- /dev/null +++ b/gr-wavelet/include/gnuradio/wavelet/CMakeLists.txt @@ -0,0 +1,31 @@ +# Copyright 2012 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# 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 header files +######################################################################## +install(FILES + api.h + squash_ff.h + wavelet_ff.h + wvps_ff.h + DESTINATION ${GR_INCLUDE_DIR}/gnuradio/wavelet + COMPONENT "wavelet_devel" +) + diff --git a/gr-wavelet/include/gnuradio/wavelet/api.h b/gr-wavelet/include/gnuradio/wavelet/api.h new file mode 100644 index 0000000000..371ac24d54 --- /dev/null +++ b/gr-wavelet/include/gnuradio/wavelet/api.h @@ -0,0 +1,33 @@ +/* + * Copyright 2012 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * 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_WAVELET_API_H +#define INCLUDED_WAVELET_API_H + +#include <gnuradio/attributes.h> + +#ifdef gnuradio_wavelet_EXPORTS +# define WAVELET_API __GR_ATTR_EXPORT +#else +# define WAVELET_API __GR_ATTR_IMPORT +#endif + +#endif /* INCLUDED_WAVELET_API_H */ diff --git a/gr-wavelet/include/gnuradio/wavelet/squash_ff.h b/gr-wavelet/include/gnuradio/wavelet/squash_ff.h new file mode 100644 index 0000000000..bf05fe9b5e --- /dev/null +++ b/gr-wavelet/include/gnuradio/wavelet/squash_ff.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +/* + * Copyright 2008,2012 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * 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_WAVELET_SQUASH_FF_H +#define INCLUDED_WAVELET_SQUASH_FF_H + +#include <gnuradio/wavelet/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace wavelet { + + class WAVELET_API squash_ff : virtual public sync_block + { + public: + + // gr::wavelet::squash_ff::sptr + typedef boost::shared_ptr<squash_ff> sptr; + + /*! + * \brief implements cheap resampling of spectrum directly from + * spectral points, using gsl interpolation + * \ingroup misc + */ + static sptr make(const std::vector<float> &igrid, + const std::vector<float> &ogrid); + }; + + } /* namespace wavelet */ +} /* namespace gr */ + +#endif diff --git a/gr-wavelet/include/gnuradio/wavelet/wavelet_ff.h b/gr-wavelet/include/gnuradio/wavelet/wavelet_ff.h new file mode 100644 index 0000000000..ffc73dee93 --- /dev/null +++ b/gr-wavelet/include/gnuradio/wavelet/wavelet_ff.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +/* + * Copyright 2008,2012 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * 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_WAVELET_WAVELET_FF_H +#define INCLUDED_WAVELET_WAVELET_FF_H + +#include <gnuradio/wavelet/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace wavelet { + + class WAVELET_API wavelet_ff : virtual public sync_block + { + public: + + // gr::wavelet::wavelet_ff:sptr + typedef boost::shared_ptr<wavelet_ff> sptr; + + /*! + * \brief compute wavelet transform using gsl routines + * \ingroup wavelet_blk + */ + static sptr make(int size = 1024, + int order = 20, + bool forward = true); + }; + + } /* namespace wavelet */ +} /* namespace gr */ + +#endif /* INCLUDED_WAVELET_WAVELET_FF_H */ diff --git a/gr-wavelet/include/gnuradio/wavelet/wvps_ff.h b/gr-wavelet/include/gnuradio/wavelet/wvps_ff.h new file mode 100644 index 0000000000..563ffb7db3 --- /dev/null +++ b/gr-wavelet/include/gnuradio/wavelet/wvps_ff.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +/* + * Copyright 2008,2012 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * 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_WAVELET_WVPS_FF_H +#define INCLUDED_WAVELET_WVPS_FF_H + +#include <gnuradio/wavelet/api.h> +#include <gnuradio/sync_decimator.h> + +class wavelet_wvps_ff; + +namespace gr { + namespace wavelet { + + class WAVELET_API wvps_ff : virtual public sync_block + { + public: + + // gr::wavelet::wvps_ff::sptr + typedef boost::shared_ptr<wvps_ff> sptr; + + /*! + * \brief computes the Wavelet Power Spectrum from a set of wavelet coefficients + * \ingroup wavelet_blk + */ + static sptr make(int ilen); + }; + + } /* namespace wavelet */ +} /* namespace gr */ + +#endif /* INCLUDED_WAVELET_WVPS_FF_H */ |