aboutsummaryrefslogtreecommitdiffstats
path: root/include/grgsm/misc_utils
diff options
context:
space:
mode:
authorRoman Khassraf <roman@khassraf.at>2015-07-20 17:46:52 +0200
committerRoman Khassraf <roman@khassraf.at>2015-07-20 17:46:52 +0200
commit462fa4522da00d263122cccdc7cab00772376f98 (patch)
treead2660ad9c6590027bd492129c282087027a0858 /include/grgsm/misc_utils
parent4dec540b6e997289173b8486e51ef249c9d0fbfc (diff)
Added block burst_source_qa for unit testing of burst-based blocks
Diffstat (limited to 'include/grgsm/misc_utils')
-rw-r--r--include/grgsm/misc_utils/CMakeLists.txt1
-rw-r--r--include/grgsm/misc_utils/burst_source_qa.h64
2 files changed, 65 insertions, 0 deletions
diff --git a/include/grgsm/misc_utils/CMakeLists.txt b/include/grgsm/misc_utils/CMakeLists.txt
index 3d63d46..adedf1d 100644
--- a/include/grgsm/misc_utils/CMakeLists.txt
+++ b/include/grgsm/misc_utils/CMakeLists.txt
@@ -24,6 +24,7 @@ install(FILES
bursts_printer.h
burst_sink.h
burst_source.h
+ burst_source_qa.h
extract_system_info.h
extract_immediate_assignment.h
controlled_rotator_cc.h
diff --git a/include/grgsm/misc_utils/burst_source_qa.h b/include/grgsm/misc_utils/burst_source_qa.h
new file mode 100644
index 0000000..c3c5713
--- /dev/null
+++ b/include/grgsm/misc_utils/burst_source_qa.h
@@ -0,0 +1,64 @@
+/* -*- c++ -*- */
+/* @file
+ * @author Roman Khassraf <rkhassraf@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_BURST_SOURCE_QA_H
+#define INCLUDED_GSM_BURST_SOURCE_QA_H
+
+#include <grgsm/api.h>
+#include <gnuradio/block.h>
+
+namespace gr {
+ namespace gsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup gsm
+ *
+ */
+ class GSM_API burst_source_qa : virtual public gr::block
+ {
+ public:
+ typedef boost::shared_ptr<burst_source_qa> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of grgsm::burst_source_qa.
+ *
+ * To avoid accidental use of raw pointers, grgsm::burst_source_qa's
+ * constructor is in a private implementation
+ * class. grgsm::burst_source_qa::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make(const std::vector<int> &framenumbers,
+ const std::vector<int> &timeslots,
+ const std::vector<std::string> &burst_data);
+
+ virtual void set_framenumbers(const std::vector<int> &framenumbers) = 0;
+ virtual void set_timeslots(const std::vector<int> &timeslots) = 0;
+ virtual void set_burst_data(const std::vector<std::string> &burst_data) = 0;
+ };
+
+ } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_BURST_SOURCE_QA_H */
+
+