aboutsummaryrefslogtreecommitdiffstats
path: root/include/grgsm/misc_utils
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2014-12-13 10:11:00 +0100
committerptrkrysik <ptrkrysik@gmail.com>2014-12-13 10:11:00 +0100
commit3be74a732b3fc4de0f99249e8bca975fee760210 (patch)
tree81731b4d5022ce40f8b0983c310c42f7d1a6838f /include/grgsm/misc_utils
parent0cd9ef0a801eeab7f501d012006f379b86c887a1 (diff)
Changed grgsm install directories and prefixes from "gsm" to "grgsm". The old prefix caused conflicts with libraries already available.
Diffstat (limited to 'include/grgsm/misc_utils')
-rw-r--r--include/grgsm/misc_utils/CMakeLists.txt29
-rw-r--r--include/grgsm/misc_utils/bursts_printer.h60
-rw-r--r--include/grgsm/misc_utils/controlled_const_source_f.h58
-rw-r--r--include/grgsm/misc_utils/controlled_rotator_cc.h61
-rw-r--r--include/grgsm/misc_utils/extract_system_info.h65
-rw-r--r--include/grgsm/misc_utils/message_printer.h58
6 files changed, 331 insertions, 0 deletions
diff --git a/include/grgsm/misc_utils/CMakeLists.txt b/include/grgsm/misc_utils/CMakeLists.txt
new file mode 100644
index 0000000..1f640a2
--- /dev/null
+++ b/include/grgsm/misc_utils/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Copyright 2011,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 public header files
+########################################################################
+install(FILES
+ bursts_printer.h
+ extract_system_info.h
+ controlled_rotator_cc.h
+ controlled_const_source_f.h
+ message_printer.h DESTINATION include/grgsm/misc_utils
+)
diff --git a/include/grgsm/misc_utils/bursts_printer.h b/include/grgsm/misc_utils/bursts_printer.h
new file mode 100644
index 0000000..5fb9b1b
--- /dev/null
+++ b/include/grgsm/misc_utils/bursts_printer.h
@@ -0,0 +1,60 @@
+/* -*- c++ -*- */
+/*
+ * @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ *
+ * Gr-gsm 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.
+ *
+ * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef INCLUDED_GSM_BURSTS_PRINTER_H
+#define INCLUDED_GSM_BURSTS_PRINTER_H
+
+#include <grgsm/api.h>
+#include <gnuradio/block.h>
+#include <string>
+#include <vector>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API bursts_printer : virtual public gr::block
+ {
+ public:
+ typedef boost::shared_ptr<bursts_printer> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of gsm::bursts_printer.
+ *
+ * To avoid accidental use of raw pointers, gsm::bursts_printer's
+ * constructor is in a private implementation
+ * class. gsm::bursts_printer::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make();
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_BURSTS_PRINTER_H */
+
diff --git a/include/grgsm/misc_utils/controlled_const_source_f.h b/include/grgsm/misc_utils/controlled_const_source_f.h
new file mode 100644
index 0000000..afd9d81
--- /dev/null
+++ b/include/grgsm/misc_utils/controlled_const_source_f.h
@@ -0,0 +1,58 @@
+/* -*- c++ -*- */
+/*
+ * @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ *
+ * Gr-gsm 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.
+ *
+ * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_GSM_CONTROLLED_CONST_SOURCE_F_H
+#define INCLUDED_GSM_CONTROLLED_CONST_SOURCE_F_H
+
+#include <grgsm/api.h>
+#include <gnuradio/sync_block.h>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API controlled_const_source_f : virtual public gr::sync_block
+ {
+ public:
+ typedef boost::shared_ptr<controlled_const_source_f> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of gsm::controlled_const_source_f.
+ *
+ * To avoid accidental use of raw pointers, gsm::controlled_const_source_f's
+ * constructor is in a private implementation
+ * class. gsm::controlled_const_source_f::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make(float constant);
+ virtual void set_constant(float constant) = 0;
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_CONTROLLED_CONST_SOURCE_F_H */
+
diff --git a/include/grgsm/misc_utils/controlled_rotator_cc.h b/include/grgsm/misc_utils/controlled_rotator_cc.h
new file mode 100644
index 0000000..bd9c04f
--- /dev/null
+++ b/include/grgsm/misc_utils/controlled_rotator_cc.h
@@ -0,0 +1,61 @@
+/* -*- c++ -*- */
+/*
+ * @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ *
+ * Gr-gsm 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.
+ *
+ * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef INCLUDED_GSM_CONTROLLED_ROTATOR_CC_H
+#define INCLUDED_GSM_CONTROLLED_ROTATOR_CC_H
+
+#include <grgsm/api.h>
+#include <gnuradio/sync_block.h>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API controlled_rotator_cc : virtual public sync_block
+ {
+ public:
+ typedef boost::shared_ptr<controlled_rotator_cc> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of gsm::controlled_rotator_cc.
+ *
+ * To avoid accidental use of raw pointers, gsm::controlled_rotator_cc's
+ * constructor is in a private implementation
+ * class. gsm::controlled_rotator_cc::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make(double phase_inc, double samp_rate);
+
+ virtual void set_phase_inc(double phase_inc) = 0;
+ virtual void set_samp_rate(double samp_rate) = 0;
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_CONTROLLED_ROTATOR_CC_H */
+
diff --git a/include/grgsm/misc_utils/extract_system_info.h b/include/grgsm/misc_utils/extract_system_info.h
new file mode 100644
index 0000000..c026096
--- /dev/null
+++ b/include/grgsm/misc_utils/extract_system_info.h
@@ -0,0 +1,65 @@
+/* -*- c++ -*- */
+/*
+ * @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ *
+ * Gr-gsm 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.
+ *
+ * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef INCLUDED_GSM_EXTRACT_SYSTEM_INFO_H
+#define INCLUDED_GSM_EXTRACT_SYSTEM_INFO_H
+
+#include <grgsm/api.h>
+#include <gnuradio/block.h>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API extract_system_info : virtual public gr::block
+ {
+ public:
+ typedef boost::shared_ptr<extract_system_info> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of gsm::extract_system_info.
+ *
+ * To avoid accidental use of raw pointers, gsm::extract_system_info's
+ * constructor is in a private implementation
+ * class. gsm::extract_system_info::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make();
+ virtual void show() = 0;
+ virtual std::vector<int> get_chans() = 0;
+ virtual std::vector<int> get_pwrs() = 0;
+ virtual std::vector<int> get_lac() = 0;
+ virtual std::vector<int> get_cell_id() = 0;
+ virtual std::vector<int> get_mnc() = 0;
+ virtual void reset() = 0;
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_EXTRACT_SYSTEM_INFO_H */
+
diff --git a/include/grgsm/misc_utils/message_printer.h b/include/grgsm/misc_utils/message_printer.h
new file mode 100644
index 0000000..3ed8bbd
--- /dev/null
+++ b/include/grgsm/misc_utils/message_printer.h
@@ -0,0 +1,58 @@
+/* -*- c++ -*- */
+/*
+ * @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ *
+ * Gr-gsm 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.
+ *
+ * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef INCLUDED_GSM_MESSAGE_PRINTER_H
+#define INCLUDED_GSM_MESSAGE_PRINTER_H
+
+#include <grgsm/api.h>
+#include <gnuradio/sync_block.h>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API message_printer : virtual public gr::block
+ {
+ public:
+ typedef boost::shared_ptr<message_printer> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of gsm::message_printer.
+ *
+ * To avoid accidental use of raw pointers, gsm::message_printer's
+ * constructor is in a private implementation
+ * class. gsm::message_printer::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make();
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_MESSAGE_PRINTER_H */
+