22 #ifndef INCLUDED_GSM_RECEIVER_CONFIG_H
23 #define INCLUDED_GSM_RECEIVER_CONFIG_H
35 std::vector<burst_type> d_burst_types;
39 fill(d_burst_types.begin(), d_burst_types.end(),
empty);
46 d_burst_types.resize(26);
48 d_burst_types.resize(51);
55 d_burst_types[nr] =
type;
63 return d_burst_types[nr];
71 uint32_t d_t1, d_t2, d_t3, d_timeslot_nr;
72 double d_offset_fractional;
73 double d_offset_integer;
81 d_offset_fractional(0.0),
82 d_offset_integer(0.0) {
85 burst_counter(
int osr, uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr):
90 d_timeslot_nr(timeslot_nr),
91 d_offset_fractional(0.0),
92 d_offset_integer(0.0) {
94 d_offset_fractional = 0;
98 void set(uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr);
113 return d_timeslot_nr;
117 return (51 * 26 * d_t1) + (51 * (((d_t3 + 26) - d_t2) % 26)) + d_t3;
121 return (d_t1 << 11) + (d_t3 << 5) + d_t2;
125 return (
unsigned)d_offset_integer;
141 d_timeslots_descriptions[timeslot_nr].
set_type(type);
146 for (i = 0; i < mapping_size; i++) {
147 d_timeslots_descriptions[timeslot_nr].
set_burst_type(mapping[i], b_type);
152 d_timeslots_descriptions[timeslot_nr].
set_burst_type(burst_nr, b_type);
uint32_t get_t2()
Definition: receiver_config.h:104
uint32_t get_t3()
Definition: receiver_config.h:108
burst_counter(int osr)
Definition: receiver_config.h:75
void set_multiframe_type(int timeslot_nr, multiframe_type type)
Definition: receiver_config.h:140
burst_counter & operator++(int)
Definition: receiver_config.h:129
Definition: gsm_constants.h:63
void set_single_burst_type(int timeslot_nr, int burst_nr, burst_type b_type)
Definition: receiver_config.h:151
uint32_t get_frame_nr()
Definition: receiver_config.h:116
burst_counter(int osr, uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr)
Definition: receiver_config.h:85
Definition: receiver_config.h:31
uint32_t get_timeslot_nr()
Definition: receiver_config.h:112
void set_burst_types(int timeslot_nr, const unsigned mapping[], unsigned mapping_size, burst_type b_type)
Definition: receiver_config.h:144
unsigned get_offset()
Definition: receiver_config.h:124
burst_type
Definition: gsm_constants.h:62
~multiframe_configuration()
Definition: receiver_config.h:42
multiframe_type get_type()
Definition: receiver_config.h:58
#define TS_PER_FRAME
Definition: gsm_constants.h:45
channel_configuration()
Definition: receiver_config.h:134
burst_type get_burst_type(int nr)
Definition: receiver_config.h:62
uint32_t get_t1()
Definition: receiver_config.h:100
Definition: gsm_constants.h:62
multiframe_configuration()
Definition: receiver_config.h:37
multiframe_type
Definition: gsm_constants.h:63
uint8_t type
Definition: gsmtap.h:54
void set_burst_type(int nr, burst_type type)
Definition: receiver_config.h:54
burst_type get_burst_type(burst_counter burst_nr)
uint32_t get_frame_nr_mod()
Definition: receiver_config.h:120
Definition: receiver_config.h:67
void set(uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr)
Definition: gsm_constants.h:63
void set_type(multiframe_type type)
Definition: receiver_config.h:44