diff options
Diffstat (limited to 'gr-noaa/include/gnuradio')
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/CMakeLists.txt | 31 | ||||
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/api.h | 33 | ||||
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/hrpt.h | 39 | ||||
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/hrpt_decoder.h | 51 | ||||
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/hrpt_deframer.h | 51 | ||||
-rw-r--r-- | gr-noaa/include/gnuradio/noaa/hrpt_pll_cf.h | 52 |
6 files changed, 257 insertions, 0 deletions
diff --git a/gr-noaa/include/gnuradio/noaa/CMakeLists.txt b/gr-noaa/include/gnuradio/noaa/CMakeLists.txt new file mode 100644 index 0000000000..a3a18d2c26 --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/CMakeLists.txt @@ -0,0 +1,31 @@ +# Copyright 2012,2013 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 + hrpt_decoder.h + hrpt_deframer.h + hrpt.h + hrpt_pll_cf.h + DESTINATION ${GR_INCLUDE_DIR}/gnuradio/noaa + COMPONENT "noaa_devel" +) diff --git a/gr-noaa/include/gnuradio/noaa/api.h b/gr-noaa/include/gnuradio/noaa/api.h new file mode 100644 index 0000000000..d30cbf4746 --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/api.h @@ -0,0 +1,33 @@ +/* + * Copyright 2011 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_NOAA_API_H +#define INCLUDED_NOAA_API_H + +#include <gnuradio/attributes.h> + +#ifdef gnuradio_noaa_EXPORTS +# define NOAA_API __GR_ATTR_EXPORT +#else +# define NOAA_API __GR_ATTR_IMPORT +#endif + +#endif /* INCLUDED_NOAA_API_H */ diff --git a/gr-noaa/include/gnuradio/noaa/hrpt.h b/gr-noaa/include/gnuradio/noaa/hrpt.h new file mode 100644 index 0000000000..f0f0e53f4d --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/hrpt.h @@ -0,0 +1,39 @@ +/* -*- c++ -*- */ +/* + * Copyright 2009 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_NOAA_HRPT_H +#define INCLUDED_NOAA_HRPT_H + +#define HRPT_SYNC1 0x0284 +#define HRPT_SYNC2 0x016F +#define HRPT_SYNC3 0x035C +#define HRPT_SYNC4 0x019D +#define HRPT_SYNC5 0x020F +#define HRPT_SYNC6 0x0095 + +#define HRPT_MINOR_FRAME_SYNC 0x0A116FD719D83C95LL + +#define HRPT_SYNC_WORDS 6 +#define HRPT_MINOR_FRAME_WORDS 11090 +#define HRPT_BITS_PER_WORD 10 + +#endif /* INCLUDED_NOAA_HRPT_H */ diff --git a/gr-noaa/include/gnuradio/noaa/hrpt_decoder.h b/gr-noaa/include/gnuradio/noaa/hrpt_decoder.h new file mode 100644 index 0000000000..1a8882633e --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/hrpt_decoder.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +/* + * Copyright 2009,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_NOAA_HRPT_DECODER_H +#define INCLUDED_NOAA_HRPT_DECODER_H + +#include <gnuradio/noaa/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace noaa { + + /*! + * \brief NOAA HRPT Decoder + * \ingroup noaa_blk + */ + class NOAA_API hrpt_decoder : virtual public sync_block + { + public: + // gr::noaa::hrpt_decoder::sptr + typedef boost::shared_ptr<hrpt_decoder> sptr; + + /*! + * \brief Make NOAA HRPT Decoder + */ + static sptr make(bool verbose, bool output_files); + }; + + } /* namespace noaa */ +} /* namespace gr */ + +#endif /* INCLUDED_NOAA_HRPT_DECODER_H */ diff --git a/gr-noaa/include/gnuradio/noaa/hrpt_deframer.h b/gr-noaa/include/gnuradio/noaa/hrpt_deframer.h new file mode 100644 index 0000000000..cafb2334e8 --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/hrpt_deframer.h @@ -0,0 +1,51 @@ +/* -*- c++ -*- */ +/* + * Copyright 2009,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_NOAA_HRPT_DEFRAMER_H +#define INCLUDED_NOAA_HRPT_DEFRAMER_H + +#include <gnuradio/noaa/api.h> +#include <gnuradio/block.h> + +namespace gr { + namespace noaa { + + /*! + * \brief NOAA HRPT Deframer + * \ingroup noaa_blk + */ + class NOAA_API hrpt_deframer : virtual public block + { + public: + // gr::noaa::hrpt_deframer::sptr + typedef boost::shared_ptr<hrpt_deframer> sptr; + + /*! + * \brief Make NOAA HRPT Deframer + */ + static sptr make(); + }; + + } /* namespace noaa */ +} /* namespace gr */ + +#endif /* INCLUDED_NOAA_HRPT_DEFRAMER_H */ diff --git a/gr-noaa/include/gnuradio/noaa/hrpt_pll_cf.h b/gr-noaa/include/gnuradio/noaa/hrpt_pll_cf.h new file mode 100644 index 0000000000..d66663da01 --- /dev/null +++ b/gr-noaa/include/gnuradio/noaa/hrpt_pll_cf.h @@ -0,0 +1,52 @@ +/* -*- c++ -*- */ +/* + * Copyright 2009,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_NOAA_HRPT_PLL_CF_H +#define INCLUDED_NOAA_HRPT_PLL_CF_H + +#include <gnuradio/noaa/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace noaa { + + /*! + * \brief NOAA HRPT PLL + * \ingroup noaa_blk + */ + class NOAA_API hrpt_pll_cf : virtual public sync_block + { + public: + // gr::noaa::hrpt_pll_cf::sptr + typedef boost::shared_ptr<hrpt_pll_cf> sptr; + + static sptr make(float alpha, float beta, float max_offset); + + virtual void set_alpha(float alpha) = 0; + virtual void set_beta(float beta) = 0; + virtual void set_max_offset(float max_offset) = 0; + }; + + } /* namespace noaa */ +} /* namespace gr */ + +#endif /* INCLUDED_NOAA_HRPT_PLL_CF_H */ |