blob: ce57e5522f85863078080f35ff228d41578ad383 [file] [log] [blame]
Piotr Krysik2164b9b2017-09-13 09:33:27 +02001#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# @file
4# @author Piotr Krysik <ptrkrysik@gmail.com>
5# @section LICENSE
6#
7# Gr-gsm is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3, or (at your option)
10# any later version.
11#
12# Gr-gsm is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with gr-gsm; see the file COPYING. If not, write to
19# the Free Software Foundation, Inc., 51 Franklin Street,
20# Boston, MA 02110-1301, USA.
21#
22#
23
24import numpy
25from gnuradio import gr
26
27class txtime_bursts_tagger(gr.basic_block):
28 """
29 A block that adds txtime metadata to a burst
30 """
31 def __init__(self):
32 gr.basic_block.__init__(self,
33 name="txtime_bursts_tagger",
34 in_sig=[],
35 out_sig=[])
36 self.message_port_register_in(pmt.intern("fn_time"))
37 self.message_port_register_in(pmt.intern("bursts"))
38 self.message_port_register_out(pmt.intern("bursts"))
39
40 self.set_msg_handler(pmt.intern("fn_time"), self.set_fn_time_reference)
41 self.set_msg_handler(pmt.intern("bursts"), self.set_txtime_of_burst)
42
43 def set_fn_time_reference(self, msg):
44 pass
45
46 def set_txtime_of_burst()
47 pass