GNU Radio's GSM Package: extract_immediate_assignment_impl.h Source File

GNU Radio's GSM Package

extract_immediate_assignment_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3 * @file
4 * @author (C) 2015 by Roman Khassraf <rkhassraf@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 #ifndef INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H
24 #define INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H
25
26 #include <grgsm/misc_utils/extract_immediate_assignment.h>
27 #include <map>
28 #include <vector>
29
30 namespace gr {
31 namespace gsm {
32
33 class immediate_assignment
34 {
35 public:
36 uint32_t frame_nr;
37 std::string channel_type;
38 uint8_t timeslot;
39 uint8_t subchannel;
40 uint8_t hopping;
41 uint8_t maio;
42 uint8_t hsn;
43 uint16_t arfcn;
44 uint8_t timing_advance;
45 std::string mobile_allocation;
46
47 immediate_assignment() : frame_nr(0), channel_type("unknown"), timeslot(0), subchannel(0),
48 hopping(false), maio(0), hsn(0), arfcn(0), timing_advance(0), mobile_allocation("") {};
49 ~immediate_assignment() {};
50 };
51
52 typedef std::map<uint32_t, immediate_assignment> immediate_assignment_map;
53
54 class extract_immediate_assignment_impl : public extract_immediate_assignment
55 {
56 private:
57 void process_message(pmt::pmt_t msg);
58 immediate_assignment_map d_assignment_map;
59 bool d_print_immediate_assignments;
60 bool d_ignore_gprs;
61 bool d_unique_references;
62 public:
63 virtual std::vector<int> get_frame_numbers();
64 virtual std::vector<std::string> get_channel_types();
65 virtual std::vector<int> get_timeslots();
66 virtual std::vector<int> get_subchannels();
67 virtual std::vector<int> get_hopping();
68 virtual std::vector<int> get_maios();
69 virtual std::vector<int> get_hsns();
70 virtual std::vector<int> get_arfcns();
71 virtual std::vector<int> get_timing_advances();
72 virtual std::vector<std::string> get_mobile_allocations();
73 extract_immediate_assignment_impl(bool print_immediate_assignments=false,
74 bool ignore_gprs=false, bool unique_references=false);
75 ~extract_immediate_assignment_impl();
76 };
77 } // namespace gsm
78 } // namespace gr
79
80 #endif /* INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H */
gr::gsm::immediate_assignment::hsn
uint8_t hsn
Definition: extract_immediate_assignment_impl.h:42
gr::gsm::immediate_assignment::immediate_assignment
immediate_assignment()
Definition: extract_immediate_assignment_impl.h:47
gr::gsm::extract_immediate_assignment
<+description of block+>
Definition: extract_immediate_assignment.h:38
gr::gsm::immediate_assignment::frame_nr
uint32_t frame_nr
Definition: extract_immediate_assignment_impl.h:36
gr::gsm::immediate_assignment::mobile_allocation
std::string mobile_allocation
Definition: extract_immediate_assignment_impl.h:45
gr::gsm::extract_immediate_assignment_impl
Definition: extract_immediate_assignment_impl.h:54
gr::gsm::immediate_assignment::hopping
uint8_t hopping
Definition: extract_immediate_assignment_impl.h:40
gr::gsm::immediate_assignment::maio
uint8_t maio
Definition: extract_immediate_assignment_impl.h:41
gr::gsm::immediate_assignment::arfcn
uint16_t arfcn
Definition: extract_immediate_assignment_impl.h:43
gr::gsm::immediate_assignment::timing_advance
uint8_t timing_advance
Definition: extract_immediate_assignment_impl.h:44
gr::gsm::immediate_assignment::channel_type
std::string channel_type
Definition: extract_immediate_assignment_impl.h:37
gr
Definition: constants.h:29
extract_immediate_assignment.h
gr::gsm::immediate_assignment
Definition: extract_immediate_assignment_impl.h:33
gr::gsm::immediate_assignment_map
std::map< uint32_t, immediate_assignment > immediate_assignment_map
Definition: extract_immediate_assignment_impl.h:52
gr::gsm::immediate_assignment::~immediate_assignment
~immediate_assignment()
Definition: extract_immediate_assignment_impl.h:49
gr::gsm::immediate_assignment::timeslot
uint8_t timeslot
Definition: extract_immediate_assignment_impl.h:38
gr::gsm::immediate_assignment::subchannel
uint8_t subchannel
Definition: extract_immediate_assignment_impl.h:39