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 
27 #include <map>
28 #include <vector>
29 
30 namespace gr {
31  namespace gsm {
32 
34  {
35  public:
36  uint32_t arfcn_id;
37  uint32_t frame_nr;
38  std::string channel_type;
39  uint8_t timeslot;
40  uint8_t subchannel;
41  uint8_t tseq;
42  uint8_t hopping;
43  uint8_t maio;
44  uint8_t hsn;
45  uint16_t arfcn;
46  uint8_t timing_advance;
47  std::string mobile_allocation;
48 
50  hopping(false), maio(0), hsn(0), arfcn(0), timing_advance(0), mobile_allocation("") {};
52  };
53 
54  typedef std::map<uint32_t, immediate_assignment> immediate_assignment_map;
55 
57  {
58  private:
59  void process_message(pmt::pmt_t msg);
60  immediate_assignment_map d_assignment_map;
61  bool d_print_immediate_assignments;
62  bool d_ignore_gprs;
63  bool d_unique_references;
64  public:
65  virtual std::vector<int> get_arfcn_ids();
66  virtual std::vector<int> get_frame_numbers();
67  virtual std::vector<std::string> get_channel_types();
68  virtual std::vector<int> get_timeslots();
69  virtual std::vector<int> get_subchannels();
70  virtual std::vector<int> get_tseqs();
71  virtual std::vector<int> get_hopping();
72  virtual std::vector<int> get_maios();
73  virtual std::vector<int> get_hsns();
74  virtual std::vector<int> get_arfcns();
75  virtual std::vector<int> get_timing_advances();
76  virtual std::vector<std::string> get_mobile_allocations();
77  extract_immediate_assignment_impl(bool print_immediate_assignments=false,
78  bool ignore_gprs=false, bool unique_references=false);
80  };
81  } // namespace gsm
82 } // namespace gr
83 
84 #endif /* INCLUDED_GSM_EXTRACT_IMMEDIATE_ASSIGNMENT_IMPL_H */
Definition: extract_immediate_assignment_impl.h:57
virtual std::vector< int > get_arfcns()
virtual std::vector< int > get_maios()
virtual std::vector< int > get_frame_numbers()
virtual std::vector< int > get_timing_advances()
virtual std::vector< std::string > get_mobile_allocations()
virtual std::vector< int > get_tseqs()
virtual std::vector< int > get_arfcn_ids()
virtual std::vector< int > get_hopping()
virtual std::vector< int > get_timeslots()
extract_immediate_assignment_impl(bool print_immediate_assignments=false, bool ignore_gprs=false, bool unique_references=false)
virtual std::vector< int > get_subchannels()
virtual std::vector< int > get_hsns()
virtual std::vector< std::string > get_channel_types()
<+description of block+>
Definition: extract_immediate_assignment.h:39
Definition: extract_immediate_assignment_impl.h:34
uint32_t frame_nr
Definition: extract_immediate_assignment_impl.h:37
uint8_t timing_advance
Definition: extract_immediate_assignment_impl.h:46
uint16_t arfcn
Definition: extract_immediate_assignment_impl.h:45
immediate_assignment()
Definition: extract_immediate_assignment_impl.h:49
uint32_t arfcn_id
Definition: extract_immediate_assignment_impl.h:36
uint8_t tseq
Definition: extract_immediate_assignment_impl.h:41
uint8_t timeslot
Definition: extract_immediate_assignment_impl.h:39
~immediate_assignment()
Definition: extract_immediate_assignment_impl.h:51
std::string mobile_allocation
Definition: extract_immediate_assignment_impl.h:47
std::string channel_type
Definition: extract_immediate_assignment_impl.h:38
uint8_t subchannel
Definition: extract_immediate_assignment_impl.h:40
uint8_t maio
Definition: extract_immediate_assignment_impl.h:43
uint8_t hopping
Definition: extract_immediate_assignment_impl.h:42
uint8_t hsn
Definition: extract_immediate_assignment_impl.h:44
std::map< uint32_t, immediate_assignment > immediate_assignment_map
Definition: extract_immediate_assignment_impl.h:54
Definition: constants.h:29