From 2bb54c8fcd55a1f80680ba11b788ecd5e00ef066 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Tue, 16 Aug 2016 16:05:23 +0200 Subject: Added uplink/downlink splitter --- include/grgsm/CMakeLists.txt | 3 +- include/grgsm/uplink_downlink_filter.h | 58 ++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 include/grgsm/uplink_downlink_filter.h (limited to 'include') diff --git a/include/grgsm/CMakeLists.txt b/include/grgsm/CMakeLists.txt index dc9b191..61f15bf 100644 --- a/include/grgsm/CMakeLists.txt +++ b/include/grgsm/CMakeLists.txt @@ -23,7 +23,8 @@ install(FILES plotting.hpp api.h - gsmtap.h DESTINATION include/grgsm + gsmtap.h + uplink_downlink_filter.h DESTINATION include/grgsm ) add_subdirectory(decoding) diff --git a/include/grgsm/uplink_downlink_filter.h b/include/grgsm/uplink_downlink_filter.h new file mode 100644 index 0000000..dec4af6 --- /dev/null +++ b/include/grgsm/uplink_downlink_filter.h @@ -0,0 +1,58 @@ +/* -*- c++ -*- */ +/* @file + * @author Piotr Krysik + * @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_GRGSM_UPLINK_DOWNLINK_FILTER_H +#define INCLUDED_GRGSM_UPLINK_DOWNLINK_FILTER_H + +#include +#include + +namespace gr { + namespace grgsm { + + /*! + * \brief <+description of block+> + * \ingroup grgsm + * + */ + class GRGSM_API uplink_downlink_filter : virtual public gr::block + { + public: + typedef boost::shared_ptr sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::uplink_downlink_filter. + * + * To avoid accidental use of raw pointers, grgsm::uplink_downlink_filter's + * constructor is in a private implementation + * class. grgsm::uplink_downlink_filter::make is the public interface for + * creating new instances. + */ + static sptr make(); + }; + + } // namespace grgsm +} // namespace gr + +#endif /* INCLUDED_GRGSM_UPLINK_DOWNLINK_FILTER_H */ + -- cgit v1.2.3