2014-12-13 09:11:00 +00:00
|
|
|
/* -*- c++ -*- */
|
2017-08-23 14:02:19 +00:00
|
|
|
/*
|
|
|
|
* @file
|
2017-11-29 15:39:22 +00:00
|
|
|
* @author (C) 2014-2017 by Piotr Krysik <ptrkrysik@gmail.com>
|
2017-08-23 14:02:19 +00:00
|
|
|
* @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.
|
|
|
|
*/
|
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
|
2016-05-29 11:05:48 +00:00
|
|
|
#define GRGSM_API
|
2014-12-13 09:11:00 +00:00
|
|
|
|
2017-11-03 08:56:49 +00:00
|
|
|
%include <std_pair.i>
|
|
|
|
%template(pairud) std::pair<unsigned long long,double>;
|
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "gnuradio.i" // the common stuff
|
|
|
|
|
|
|
|
//load generated python docstrings
|
|
|
|
%include "grgsm_swig_doc.i"
|
|
|
|
|
|
|
|
%{
|
2017-08-24 13:35:42 +00:00
|
|
|
#include "grgsm/constants.h"
|
2014-12-13 09:11:00 +00:00
|
|
|
#include "grgsm/receiver/receiver.h"
|
2015-04-04 10:28:20 +00:00
|
|
|
#include "grgsm/receiver/clock_offset_control.h"
|
2015-06-10 08:23:30 +00:00
|
|
|
#include "grgsm/receiver/cx_channel_hopper.h"
|
2014-12-15 08:09:18 +00:00
|
|
|
#include "grgsm/decoding/control_channels_decoder.h"
|
2015-05-20 10:49:46 +00:00
|
|
|
#include "grgsm/decoding/tch_f_decoder.h"
|
2018-05-05 23:13:36 +00:00
|
|
|
#include "grgsm/decoding/tch_h_decoder.h"
|
2014-12-15 08:09:18 +00:00
|
|
|
#include "grgsm/decryption/decryption.h"
|
2014-12-13 09:11:00 +00:00
|
|
|
#include "grgsm/demapping/universal_ctrl_chans_demapper.h"
|
2015-04-14 13:44:40 +00:00
|
|
|
#include "grgsm/demapping/tch_f_chans_demapper.h"
|
2018-05-07 12:55:39 +00:00
|
|
|
#include "grgsm/demapping/tch_h_chans_demapper.h"
|
2017-07-21 03:59:51 +00:00
|
|
|
#include "grgsm/flow_control/common.h"
|
2015-08-03 21:20:20 +00:00
|
|
|
#include "grgsm/flow_control/burst_timeslot_splitter.h"
|
2015-08-05 10:30:29 +00:00
|
|
|
#include "grgsm/flow_control/burst_sdcch_subslot_splitter.h"
|
2015-08-06 09:54:22 +00:00
|
|
|
#include "grgsm/flow_control/burst_timeslot_filter.h"
|
2015-08-06 15:30:04 +00:00
|
|
|
#include "grgsm/flow_control/burst_sdcch_subslot_filter.h"
|
2015-08-04 09:16:04 +00:00
|
|
|
#include "grgsm/flow_control/burst_fnr_filter.h"
|
2017-11-07 18:31:42 +00:00
|
|
|
#include "grgsm/flow_control/burst_type_filter.h"
|
2015-08-04 10:26:54 +00:00
|
|
|
#include "grgsm/flow_control/dummy_burst_filter.h"
|
2016-08-30 19:31:24 +00:00
|
|
|
#include "grgsm/flow_control/uplink_downlink_splitter.h"
|
2014-12-13 09:11:00 +00:00
|
|
|
#include "grgsm/misc_utils/bursts_printer.h"
|
|
|
|
#include "grgsm/misc_utils/controlled_rotator_cc.h"
|
|
|
|
#include "grgsm/misc_utils/extract_system_info.h"
|
2015-06-24 15:59:13 +00:00
|
|
|
#include "grgsm/misc_utils/extract_immediate_assignment.h"
|
2014-12-13 09:11:00 +00:00
|
|
|
#include "grgsm/misc_utils/message_printer.h"
|
2015-01-15 10:48:20 +00:00
|
|
|
#include "grgsm/misc_utils/tmsi_dumper.h"
|
2015-08-03 08:58:57 +00:00
|
|
|
#include "grgsm/misc_utils/burst_file_sink.h"
|
|
|
|
#include "grgsm/misc_utils/burst_file_source.h"
|
2017-01-11 11:50:38 +00:00
|
|
|
#include "grgsm/misc_utils/collect_system_info.h"
|
2016-12-04 15:19:40 +00:00
|
|
|
#include "grgsm/misc_utils/extract_cmc.h"
|
2018-03-05 12:16:32 +00:00
|
|
|
#include "grgsm/misc_utils/extract_assignment_cmd.h"
|
2015-08-03 09:16:10 +00:00
|
|
|
#include "grgsm/qa_utils/burst_sink.h"
|
|
|
|
#include "grgsm/qa_utils/burst_source.h"
|
2015-08-03 08:08:18 +00:00
|
|
|
#include "grgsm/qa_utils/message_source.h"
|
|
|
|
#include "grgsm/qa_utils/message_sink.h"
|
2015-08-03 14:17:46 +00:00
|
|
|
#include "grgsm/misc_utils/message_file_sink.h"
|
|
|
|
#include "grgsm/misc_utils/message_file_source.h"
|
2016-07-18 08:24:35 +00:00
|
|
|
#include "grgsm/misc_utils/msg_to_tag.h"
|
|
|
|
#include "grgsm/misc_utils/controlled_fractional_resampler_cc.h"
|
2017-12-03 19:05:49 +00:00
|
|
|
#include "grgsm/misc_utils/burst_to_fn_time.h"
|
2017-10-31 10:30:59 +00:00
|
|
|
#include "grgsm/misc_utils/fn_time.h"
|
2017-11-05 11:23:15 +00:00
|
|
|
#include "grgsm/transmitter/txtime_setter.h"
|
2017-11-07 18:34:22 +00:00
|
|
|
#include "grgsm/transmitter/preprocess_tx_burst.h"
|
2017-11-29 15:39:22 +00:00
|
|
|
#include "grgsm/transmitter/gen_test_ab.h"
|
2018-05-06 20:23:06 +00:00
|
|
|
#include "grgsm/trx/trx_burst_if.h"
|
2014-12-13 09:11:00 +00:00
|
|
|
%}
|
|
|
|
|
2017-08-24 13:35:42 +00:00
|
|
|
%include "constants.i"
|
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "grgsm/receiver/receiver.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, receiver);
|
2015-04-04 10:28:20 +00:00
|
|
|
%include "grgsm/receiver/clock_offset_control.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, clock_offset_control);
|
2015-06-10 08:23:30 +00:00
|
|
|
%include "grgsm/receiver/cx_channel_hopper.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, cx_channel_hopper);
|
2014-12-13 09:11:00 +00:00
|
|
|
|
|
|
|
%include "grgsm/decoding/control_channels_decoder.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, control_channels_decoder);
|
2015-05-20 10:49:46 +00:00
|
|
|
%include "grgsm/decoding/tch_f_decoder.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, tch_f_decoder);
|
2018-05-05 23:13:36 +00:00
|
|
|
%include "grgsm/decoding/tch_h_decoder.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, tch_h_decoder);
|
2014-12-13 09:11:00 +00:00
|
|
|
|
2014-12-15 08:09:18 +00:00
|
|
|
%include "grgsm/decryption/decryption.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, decryption);
|
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "grgsm/demapping/universal_ctrl_chans_demapper.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, universal_ctrl_chans_demapper);
|
2015-04-14 13:44:40 +00:00
|
|
|
%include "grgsm/demapping/tch_f_chans_demapper.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, tch_f_chans_demapper);
|
2018-05-07 12:55:39 +00:00
|
|
|
%include "grgsm/demapping/tch_h_chans_demapper.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, tch_h_chans_demapper);
|
2014-12-13 09:11:00 +00:00
|
|
|
|
2017-07-21 03:59:51 +00:00
|
|
|
%include "grgsm/flow_control/common.h"
|
2015-08-03 21:20:20 +00:00
|
|
|
%include "grgsm/flow_control/burst_timeslot_splitter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_timeslot_splitter);
|
2015-08-05 10:30:29 +00:00
|
|
|
%include "grgsm/flow_control/burst_sdcch_subslot_splitter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_sdcch_subslot_splitter);
|
2015-08-06 09:54:22 +00:00
|
|
|
%include "grgsm/flow_control/burst_timeslot_filter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_timeslot_filter);
|
2015-08-06 15:30:04 +00:00
|
|
|
%include "grgsm/flow_control/burst_sdcch_subslot_filter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_sdcch_subslot_filter);
|
2015-08-04 09:16:04 +00:00
|
|
|
%include "grgsm/flow_control/burst_fnr_filter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_fnr_filter);
|
2017-11-07 18:31:42 +00:00
|
|
|
%include "grgsm/flow_control/burst_type_filter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_type_filter);
|
2015-08-04 10:26:54 +00:00
|
|
|
%include "grgsm/flow_control/dummy_burst_filter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, dummy_burst_filter);
|
2016-08-30 19:31:24 +00:00
|
|
|
%include "grgsm/flow_control/uplink_downlink_splitter.h"
|
2017-11-05 11:25:51 +00:00
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, uplink_downlink_splitter);
|
2016-08-30 19:31:24 +00:00
|
|
|
|
2015-08-03 21:20:20 +00:00
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "grgsm/misc_utils/bursts_printer.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, bursts_printer);
|
2015-08-03 08:58:57 +00:00
|
|
|
%include "grgsm/misc_utils/burst_file_sink.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_file_sink);
|
|
|
|
%include "grgsm/misc_utils/burst_file_source.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_file_source);
|
2017-01-11 11:50:38 +00:00
|
|
|
%include "grgsm/misc_utils/collect_system_info.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, collect_system_info);
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "grgsm/misc_utils/extract_system_info.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, extract_system_info);
|
2015-06-24 15:59:13 +00:00
|
|
|
%include "grgsm/misc_utils/extract_immediate_assignment.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, extract_immediate_assignment);
|
2014-12-13 09:11:00 +00:00
|
|
|
%include "grgsm/misc_utils/controlled_rotator_cc.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, controlled_rotator_cc);
|
|
|
|
%include "grgsm/misc_utils/message_printer.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, message_printer);
|
2015-01-15 10:48:20 +00:00
|
|
|
%include "grgsm/misc_utils/tmsi_dumper.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, tmsi_dumper);
|
2015-08-03 14:17:46 +00:00
|
|
|
%include "grgsm/misc_utils/message_file_sink.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, message_file_sink);
|
|
|
|
%include "grgsm/misc_utils/message_file_source.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, message_file_source);
|
2016-07-18 08:24:35 +00:00
|
|
|
%include "grgsm/misc_utils/msg_to_tag.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, msg_to_tag);
|
|
|
|
%include "grgsm/misc_utils/controlled_fractional_resampler_cc.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, controlled_fractional_resampler_cc);
|
2016-12-04 15:19:40 +00:00
|
|
|
%include "grgsm/misc_utils/extract_cmc.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, extract_cmc);
|
2018-03-05 12:16:32 +00:00
|
|
|
%include "grgsm/misc_utils/extract_assignment_cmd.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, extract_assignment_cmd);
|
2018-05-06 20:23:06 +00:00
|
|
|
%include "grgsm/trx/trx_burst_if.h"
|
2017-12-03 19:05:49 +00:00
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, trx_burst_if);
|
|
|
|
%include "grgsm/misc_utils/burst_to_fn_time.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_to_fn_time);
|
2015-08-03 08:08:18 +00:00
|
|
|
|
2015-08-03 09:16:10 +00:00
|
|
|
%include "grgsm/qa_utils/burst_sink.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_sink);
|
|
|
|
%include "grgsm/qa_utils/burst_source.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, burst_source);
|
2015-08-03 08:08:18 +00:00
|
|
|
%include "grgsm/qa_utils/message_source.h"
|
2015-07-27 13:52:02 +00:00
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, message_source);
|
2015-08-03 08:08:18 +00:00
|
|
|
%include "grgsm/qa_utils/message_sink.h"
|
2015-07-29 09:01:34 +00:00
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, message_sink);
|
2017-11-03 08:58:13 +00:00
|
|
|
|
2017-11-03 08:56:49 +00:00
|
|
|
%include "grgsm/misc_utils/fn_time.h"
|
2018-05-06 20:23:06 +00:00
|
|
|
|
2017-11-05 11:23:15 +00:00
|
|
|
%include "grgsm/transmitter/txtime_setter.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, txtime_setter);
|
2017-11-07 18:34:22 +00:00
|
|
|
%include "grgsm/transmitter/preprocess_tx_burst.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, preprocess_tx_burst);
|
2017-11-29 15:39:22 +00:00
|
|
|
%include "grgsm/transmitter/gen_test_ab.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(gsm, gen_test_ab);
|