Go to the documentation of this file.
22 #ifndef INCLUDED_GSM_RECEIVER_CONFIG_H
23 #define INCLUDED_GSM_RECEIVER_CONFIG_H
34 std::vector<burst_type> d_burst_types;
38 fill(d_burst_types.begin(), d_burst_types.end(),
empty);
45 d_burst_types.resize(26);
47 d_burst_types.resize(51);
54 d_burst_types[nr] =
type;
62 return d_burst_types[nr];
70 uint32_t d_t1, d_t2, d_t3, d_timeslot_nr;
71 double d_offset_fractional;
72 double d_offset_integer;
80 d_offset_fractional(0.0),
81 d_offset_integer(0.0) {
89 d_timeslot_nr(timeslot_nr),
90 d_offset_fractional(0.0),
94 d_offset_fractional = 0;
99 void set(uint32_t
t1, uint32_t
t2, uint32_t
t3, uint32_t timeslot_nr);
114 return d_timeslot_nr;
118 return (51 * 26 * d_t1) + (51 * (((d_t3 + 26) - d_t2) % 26)) + d_t3;
122 return (d_t1 << 11) + (d_t3 << 5) + d_t2;
126 return (
unsigned)d_offset_integer;
147 for (i = 0; i < mapping_size; i++) {
148 d_timeslots_descriptions[timeslot_nr].
set_burst_type(mapping[i], b_type);
153 d_timeslots_descriptions[timeslot_nr].
set_burst_type(burst_nr, b_type);
burst_counter(int osr, uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr)
Definition: receiver_config.h:84
Definition: receiver_config.h:67
uint32_t get_frame_nr_mod()
Definition: receiver_config.h:121
multiframe_type
Definition: gsm_constants.h:64
void set(uint32_t t1, uint32_t t2, uint32_t t3, uint32_t timeslot_nr)
void set_type(multiframe_type type)
Definition: receiver_config.h:43
multiframe_type get_type()
Definition: receiver_config.h:57
void set_single_burst_type(int timeslot_nr, int burst_nr, burst_type b_type)
Definition: receiver_config.h:152
void set_burst_type(int nr, burst_type type)
Definition: receiver_config.h:53
uint32_t get_timeslot_nr()
Definition: receiver_config.h:113
void set_burst_types(int timeslot_nr, const unsigned mapping[], unsigned mapping_size, burst_type b_type)
Definition: receiver_config.h:145
burst_counter(int osr)
Definition: receiver_config.h:74
uint32_t get_t2()
Definition: receiver_config.h:105
uint32_t get_t3()
Definition: receiver_config.h:109
burst_counter & operator++(int)
@ multiframe_26
Definition: gsm_constants.h:64
burst_counter subtract_timeslots(unsigned int number_of_timeslots)
#define TS_PER_FRAME
Definition: gsm_constants.h:46
Definition: receiver_config.h:131
uint8_t type
Definition: gsm_04_08.h:0
channel_configuration()
Definition: receiver_config.h:135
burst_type get_burst_type(int nr)
Definition: receiver_config.h:61
uint8_t t1
Definition: gsm_04_08.h:2
uint8_t t3
Definition: gsm_04_08.h:5
@ empty
Definition: gsm_constants.h:63
uint8_t t2
Definition: gsm_04_08.h:4
burst_type
Definition: gsm_constants.h:63
@ unknown
Definition: gsm_constants.h:64
uint32_t get_t1()
Definition: receiver_config.h:101
multiframe_configuration()
Definition: receiver_config.h:36
unsigned get_offset()
Definition: receiver_config.h:125
uint32_t get_frame_nr()
Definition: receiver_config.h:117
Definition: receiver_config.h:31
burst_type get_burst_type(burst_counter burst_nr)
~multiframe_configuration()
Definition: receiver_config.h:41
void set_multiframe_type(int timeslot_nr, multiframe_type type)
Definition: receiver_config.h:141