flexran_agent_ran_api.h 15.9 KB
Newer Older
shahab's avatar
shahab committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
 * the OAI Public License, Version 1.0  (the "License"); you may not use this file
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */ 

/*! \file flexran_agent_ran_api.h
 * \brief FlexRAN RAN API abstraction header 
24
 * \author N. Nikaein, X. Foukas and S. SHARIAT BAGHERI
shahab's avatar
shahab committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 * \date 2017
 * \version 0.1
 */

#include <stdio.h>
#include <time.h>

#include "flexran_agent_common.h"
#include "flexran_agent_common_internal.h"
#include "flexran_agent_extern.h"
#include "flexran_agent_defs.h"


#include "enb_config.h"
#include "LAYER2/MAC/extern.h"
#include "LAYER2/RLC/rlc.h"
#include "SCHED/defs.h"
42
#include "pdcp.h"
shahab's avatar
shahab committed
43
44
45
46
47
48
49
50
51
52
#include "RRC/LITE/extern.h"
#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h"
#include "RRC/LITE/rrc_eNB_UE_context.h"
#include "PHY/extern.h"
#include "log.h"

/****************************
 * get generic info from RAN
 ****************************/

Robert Schmidt's avatar
Robert Schmidt committed
53
uint32_t flexran_get_current_time_ms(mid_t mod_id, int subframe_flag);
shahab's avatar
shahab committed
54
55
56
57

/*Return the current frame number
 *Could be using implementation specific numbering of frames
 */
Robert Schmidt's avatar
Robert Schmidt committed
58
frame_t flexran_get_current_frame(mid_t mod_id);
shahab's avatar
shahab committed
59
60

/*Return the current SFN (0-1023)*/ 
Robert Schmidt's avatar
Robert Schmidt committed
61
frame_t flexran_get_current_system_frame_num(mid_t mod_id);
shahab's avatar
shahab committed
62

Robert Schmidt's avatar
Robert Schmidt committed
63
sub_frame_t flexran_get_current_subframe(mid_t mod_id);
shahab's avatar
shahab committed
64
65
66

/*Return the frame and subframe number in compact 16-bit format.
  Bits 0-3 subframe, rest for frame. Required by FlexRAN protocol*/
Robert Schmidt's avatar
Robert Schmidt committed
67
uint16_t flexran_get_sfn_sf(mid_t mod_id);
shahab's avatar
shahab committed
68
69
70
71
72
73
74
75
76
77

/* Return a future frame and subframe number that is ahead_of_time
   subframes later in compact 16-bit format. Bits 0-3 subframe,
   rest for frame */
uint16_t flexran_get_future_sfn_sf(mid_t mod_id, int ahead_of_time);

/* Return the number of attached UEs */
int flexran_get_num_ues(mid_t mod_id);

/* Get the rnti of a UE with id ue_id */
Robert Schmidt's avatar
Robert Schmidt committed
78
rnti_t flexran_get_ue_crnti(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
79

80
81
82
/* Get the RLC buffer status report in bytes of a ue for a designated
 * logical channel id */
int flexran_get_ue_bsr_ul_buffer_info(mid_t mod_id, mid_t ue_id, lcid_t lcid);
shahab's avatar
shahab committed
83
84

/* Get power headroom of UE with id ue_id */
Robert Schmidt's avatar
Robert Schmidt committed
85
int8_t flexran_get_ue_phr(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
86
87

/* Get the UE wideband CQI */
Robert Schmidt's avatar
Robert Schmidt committed
88
uint8_t flexran_get_ue_wcqi(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
89
90

/* Get the transmission queue size for a UE with a channel_id logical channel id */
Robert Schmidt's avatar
Robert Schmidt committed
91
rlc_buffer_occupancy_t flexran_get_tx_queue_size(mid_t mod_id, mid_t ue_id, logical_chan_id_t channel_id);
shahab's avatar
shahab committed
92

93
/*Get number of pdus in RLC buffer*/
Robert Schmidt's avatar
Robert Schmidt committed
94
rlc_buffer_occupancy_t flexran_get_num_pdus_buffer(mid_t mod_id, mid_t ue_id, logical_chan_id_t channel_id);
95

shahab's avatar
shahab committed
96
/* Get the head of line delay for a UE with a channel_id logical channel id */
Robert Schmidt's avatar
Robert Schmidt committed
97
frame_t flexran_get_hol_delay(mid_t mod_id, mid_t ue_id, logical_chan_id_t channel_id);
shahab's avatar
shahab committed
98
99

/* Check the status of the timing advance for a UE */
Robert Schmidt's avatar
Robert Schmidt committed
100
int32_t flexran_get_TA(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
101

Robert Schmidt's avatar
Robert Schmidt committed
102
103
104
/* Update the timing advance status(find out whether a timing advance command is required) */
/* currently broken
void flexran_update_TA(mid_t mod_id, mid_t ue_id, uint8_t cc_id); */
shahab's avatar
shahab committed
105
106

/* Return timing advance MAC control element for a designated cell and UE */
Robert Schmidt's avatar
Robert Schmidt committed
107
108
/* this function is broken */
int flexran_get_MAC_CE_bitmap_TA(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
109
110
111
112
113

/* Get the number of active component carriers for a specific UE */
int flexran_get_active_CC(mid_t mod_id, mid_t ue_id);

/* Get the rank indicator for a designated cell and UE */
Robert Schmidt's avatar
Robert Schmidt committed
114
uint8_t flexran_get_current_RI(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
115
116

/* See TS 36.213, section 10.1 */
Robert Schmidt's avatar
Robert Schmidt committed
117
uint16_t flexran_get_n1pucch_an(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
118
119

/* See TS 36.211, section 5.4 */
Robert Schmidt's avatar
Robert Schmidt committed
120
uint8_t flexran_get_nRB_CQI(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
121
122

/* See TS 36.211, section 5.4 */
Robert Schmidt's avatar
Robert Schmidt committed
123
uint8_t flexran_get_deltaPUCCH_Shift(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
124
125

/* See TS 36.211, section 5.7.1 */
Robert Schmidt's avatar
Robert Schmidt committed
126
uint8_t flexran_get_prach_ConfigIndex(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
127
128

/* See TS 36.211, section 5.7.1 */
Robert Schmidt's avatar
Robert Schmidt committed
129
uint8_t flexran_get_prach_FreqOffset(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
130
131

/* See TS 36.321 */
Robert Schmidt's avatar
Robert Schmidt committed
132
uint8_t flexran_get_maxHARQ_Msg3Tx(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
133
134

/* Get the length of the UL cyclic prefix */
Robert Schmidt's avatar
Robert Schmidt committed
135
lte_prefix_type_t flexran_get_ul_cyclic_prefix_length(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
136
137

/* Get the length of the DL cyclic prefix */
Robert Schmidt's avatar
Robert Schmidt committed
138
lte_prefix_type_t flexran_get_dl_cyclic_prefix_length(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
139
140

/* Get the physical cell id of a cell */
Robert Schmidt's avatar
Robert Schmidt committed
141
uint16_t flexran_get_cell_id(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
142
143

/* See TS 36.211, section 5.5.3.2 */
Robert Schmidt's avatar
Robert Schmidt committed
144
uint8_t flexran_get_srs_BandwidthConfig(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
145
146

/* See TS 36.211, table 5.5.3.3-1 and 2 */
Robert Schmidt's avatar
Robert Schmidt committed
147
uint8_t flexran_get_srs_SubframeConfig(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
148
149
150

/* Boolean value. See TS 36.211,
   section 5.5.3.2. TDD only */
Robert Schmidt's avatar
Robert Schmidt committed
151
uint8_t flexran_get_srs_MaxUpPts(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
152
153

/* Get number of DL resource blocks */
Robert Schmidt's avatar
Robert Schmidt committed
154
uint8_t flexran_get_N_RB_DL(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
155
156

/* Get number of UL resource blocks */
Robert Schmidt's avatar
Robert Schmidt committed
157
uint8_t flexran_get_N_RB_UL(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
158
159

/* Get number of resource block groups */
Robert Schmidt's avatar
Robert Schmidt committed
160
uint8_t flexran_get_N_RBG(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
161
162

/* Get DL/UL subframe assignment. TDD only */
Robert Schmidt's avatar
Robert Schmidt committed
163
uint8_t flexran_get_subframe_assignment(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
164
165

/* TDD only. See TS 36.211, table 4.2.1 */
Robert Schmidt's avatar
Robert Schmidt committed
166
uint8_t flexran_get_special_subframe_assignment(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
167
168

/* Get the duration of the random access response window in subframes */
Robert Schmidt's avatar
Robert Schmidt committed
169
long flexran_get_ra_ResponseWindowSize(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
170
171

/* Get timer used for random access */
Robert Schmidt's avatar
Robert Schmidt committed
172
long flexran_get_mac_ContentionResolutionTimer(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
173

Robert Schmidt's avatar
Robert Schmidt committed
174
175
/* Get type of duplex mode(FDD/TDD) */
Protocol__FlexDuplexMode flexran_get_duplex_mode(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
176
177

/* Get the SI window length */
Robert Schmidt's avatar
Robert Schmidt committed
178
179
180
181
long flexran_get_si_window_length(mid_t mod_id, uint8_t cc_id);

/* Get length of SystemInformationBlock1 */
uint8_t flexran_get_sib1_length(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
182
183

/* Get the number of PDCCH symbols configured for the cell */
Robert Schmidt's avatar
Robert Schmidt committed
184
uint8_t flexran_get_num_pdcch_symb(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
185

Robert Schmidt's avatar
Robert Schmidt committed
186
uint8_t flexran_get_antenna_ports(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
187
188

/* See TS 36.213, sec 5.1.1.1 */
Robert Schmidt's avatar
Robert Schmidt committed
189
int flexran_get_tpc(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
190

Robert Schmidt's avatar
Robert Schmidt committed
191
uint8_t flexran_get_ue_wpmi(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
192
193
194
195

/* Get the first available HARQ process for a specific cell and UE during 
   a designated frame and subframe. Returns 0 for success. The id and the 
   status of the HARQ process are stored in id and status respectively */
Robert Schmidt's avatar
Robert Schmidt committed
196
197
198
199
/* currently broken
int flexran_get_harq(mid_t mod_id, uint8_t cc_id, mid_t ue_id, frame_t frame,
                     sub_frame_t subframe, unsigned char *id, unsigned char *round,
                     uint8_t harq_flag); */
shahab's avatar
shahab committed
200
201

/* Uplink power control management*/
Robert Schmidt's avatar
Robert Schmidt committed
202
int32_t flexran_get_p0_pucch_dbm(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
203

Robert Schmidt's avatar
Robert Schmidt committed
204
int8_t flexran_get_p0_nominal_pucch(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
205

Robert Schmidt's avatar
Robert Schmidt committed
206
int32_t flexran_get_p0_pucch_status(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
207

Robert Schmidt's avatar
Robert Schmidt committed
208
int flexran_update_p0_pucch(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
209

Robert Schmidt's avatar
Robert Schmidt committed
210
uint8_t flexran_get_threequarter_fs(mid_t mod_id, uint8_t cc_id);
211

Robert Schmidt's avatar
Robert Schmidt committed
212
PUSCH_HOPPING_t flexran_get_hopping_mode(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
213

Robert Schmidt's avatar
Robert Schmidt committed
214
uint8_t flexran_get_hopping_offset(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
215

Robert Schmidt's avatar
Robert Schmidt committed
216
uint8_t flexran_get_n_SB(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
217

Robert Schmidt's avatar
Robert Schmidt committed
218
int flexran_get_phich_resource(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
219

Robert Schmidt's avatar
Robert Schmidt committed
220
uint8_t flexran_get_enable64QAM(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
221

Robert Schmidt's avatar
Robert Schmidt committed
222
PHICH_DURATION_t flexran_get_phich_duration(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
223
224
225
226
227
228
229
230
231
232

/*
 * ************************************
 * Get Messages for UE Configuration Reply
 * ************************************
 */

/* Get timer in subframes. Controls the synchronization
   status of the UE, not the actual timing 
   advance procedure. See TS 36.321 */
Robert Schmidt's avatar
Robert Schmidt committed
233
TimeAlignmentTimer_t flexran_get_time_alignment_timer(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
234
235

/* Get measurement gap configuration. See TS 36.133 */
Robert Schmidt's avatar
Robert Schmidt committed
236
Protocol__FlexMeasGapConfigPattern flexran_get_meas_gap_config(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
237
238

/* Get measurement gap configuration offset if applicable */
Robert Schmidt's avatar
Robert Schmidt committed
239
long flexran_get_meas_gap_config_offset(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
240
241
242

/* DL aggregated bit-rate of non-gbr bearer
   per UE. See TS 36.413 */
Robert Schmidt's avatar
Robert Schmidt committed
243
uint64_t flexran_get_ue_aggregated_max_bitrate_dl(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
244
245
246

/* UL aggregated bit-rate of non-gbr bearer
   per UE. See TS 36.413 */
Robert Schmidt's avatar
Robert Schmidt committed
247
uint64_t flexran_get_ue_aggregated_max_bitrate_ul(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
248

249
250
/* Only half-duplex support. FDD operation. Boolean value */
int flexran_get_half_duplex(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
251

252
253
/* Support of intra-subframe hopping.  Boolean value */
int flexran_get_intra_sf_hopping(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
254

255
256
/* UE support for type 2 hopping with n_sb>1 */
int flexran_get_type2_sb_1(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
257
258

/* Get the UE category */
259
long flexran_get_ue_category(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
260

261
262
/* UE support for resource allocation type 1 */
int flexran_get_res_alloc_type1(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
263
264

/* Get UE transmission mode */
Robert Schmidt's avatar
Robert Schmidt committed
265
long flexran_get_ue_transmission_mode(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
266
267

/* Boolean value. See TS 36.321 */
Robert Schmidt's avatar
Robert Schmidt committed
268
BOOLEAN_t flexran_get_tti_bundling(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
269
270
271

/* The max HARQ retransmission for UL.
   See TS 36.321 */
Robert Schmidt's avatar
Robert Schmidt committed
272
long flexran_get_maxHARQ_TX(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
273
274

/* See TS 36.213 */
Robert Schmidt's avatar
Robert Schmidt committed
275
long flexran_get_beta_offset_ack_index(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
276
277

/* See TS 36.213 */
Robert Schmidt's avatar
Robert Schmidt committed
278
long flexran_get_beta_offset_ri_index(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
279
280

/* See TS 36.213 */
Robert Schmidt's avatar
Robert Schmidt committed
281
long flexran_get_beta_offset_cqi_index(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
282
283

/* Boolean. See TS36.213, Section 10.1 */
Robert Schmidt's avatar
Robert Schmidt committed
284
BOOLEAN_t flexran_get_simultaneous_ack_nack_cqi(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
285
286

/* Boolean. See TS 36.213, Section 8.2 */
Robert Schmidt's avatar
Robert Schmidt committed
287
BOOLEAN_t flexran_get_ack_nack_simultaneous_trans(mid_t mod_id, mid_t ue_id, uint8_t cc_id);
shahab's avatar
shahab committed
288
289

/* Get aperiodic CQI report mode */
Robert Schmidt's avatar
Robert Schmidt committed
290
CQI_ReportModeAperiodic_t flexran_get_aperiodic_cqi_rep_mode(mid_t mod_id,mid_t ue_id);
shahab's avatar
shahab committed
291
292

/* Get ACK/NACK feedback mode. TDD only */
Robert Schmidt's avatar
Robert Schmidt committed
293
long flexran_get_tdd_ack_nack_feedback_mode(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
294
295

/* See TS36.213, section 10.1 */
Robert Schmidt's avatar
Robert Schmidt committed
296
long flexran_get_ack_nack_repetition_factor(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
297
298

/* Boolean. Extended buffer status report size */
Robert Schmidt's avatar
Robert Schmidt committed
299
long flexran_get_extended_bsr_size(mid_t mod_id, mid_t ue_id);
shahab's avatar
shahab committed
300
301
302
303
304

/* Get number of UE transmission antennas */
int flexran_get_ue_transmission_antenna(mid_t mod_id, mid_t ue_id);

/* Get logical channel group of a channel with id lc_id */
305
long flexran_get_lcg(mid_t mod_id, mid_t ue_id, mid_t lc_id);
shahab's avatar
shahab committed
306
307

/* Get direction of logical channel with id lc_id */
shahab's avatar
shahab committed
308
309
int flexran_get_direction(mid_t ue_id, mid_t lc_id);

310
/*Get downlink frequency*/
Robert Schmidt's avatar
Robert Schmidt committed
311
uint32_t flexran_agent_get_operating_dl_freq(mid_t mod_id, uint8_t cc_id);
312
313

/*Get uplink frequency*/
Robert Schmidt's avatar
Robert Schmidt committed
314
uint32_t flexran_agent_get_operating_ul_freq(mid_t mod_id, uint8_t cc_id);
315
316

/*Get eutra band*/
Robert Schmidt's avatar
Robert Schmidt committed
317
uint8_t flexran_agent_get_operating_eutra_band(mid_t mod_id, uint8_t cc_id);
318
319

/*Get downlink ref signal power*/
Robert Schmidt's avatar
Robert Schmidt committed
320
int8_t flexran_agent_get_operating_pdsch_refpower(mid_t mod_id, uint8_t cc_id);
321
322

/*Get uplink power*/
Robert Schmidt's avatar
Robert Schmidt committed
323
long flexran_agent_get_operating_pusch_p0(mid_t mod_id, uint8_t cc_id);
shahab's avatar
shahab committed
324

325
/*set the dl freq */
Robert Schmidt's avatar
Robert Schmidt committed
326
void flexran_agent_set_operating_dl_freq(mid_t mod_id, uint8_t cc_id, uint32_t dl_freq_mhz);
327
328

/* set the ul freq */
Robert Schmidt's avatar
Robert Schmidt committed
329
void flexran_agent_set_operating_ul_freq(mid_t mod_id, uint8_t cc_id, int32_t ul_freq_mhz_offset);
330
331

/*set the the band */
Robert Schmidt's avatar
Robert Schmidt committed
332
void flexran_agent_set_operating_eutra_band(mid_t mod_id, uint8_t cc_id, uint8_t eutra_band);
333

Robert Schmidt's avatar
Robert Schmidt committed
334
335
/* set the bandwidth (in RB) */
void flexran_agent_set_operating_bandwidth(mid_t mod_id, uint8_t cc_id, uint8_t N_RB);
336
337

/*set frame type*/
Robert Schmidt's avatar
Robert Schmidt committed
338
void flexran_agent_set_operating_frame_type(mid_t mod_id, uint8_t cc_id, lte_frame_type_t frame_type);
339

shahab's avatar
shahab committed
340
/*RRC status flexRAN*/
341
uint8_t flexran_get_rrc_status(mid_t mod_id, mid_t ue_id);
342
343
344
345


/***************************** PDCP ***********************/

346
347
348
/*PDCP superframe numberflexRAN*/
uint32_t flexran_get_pdcp_sfn(const mid_t mod_id);

349
/*PDCP pdcp tx stats window*/
350
void flexran_set_pdcp_tx_stat_window(const mid_t mod_id, const mid_t ue_id, uint16_t obs_window);
351
352

/*PDCP pdcp rx stats window*/
353
void flexran_set_pdcp_rx_stat_window(const mid_t mod_id, const mid_t ue_id, uint16_t obs_window);
354

355
356
357
358
359
360
361
/*PDCP num tx pdu status flexRAN*/
uint32_t flexran_get_pdcp_tx(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP num tx bytes status flexRAN*/
uint32_t flexran_get_pdcp_tx_bytes(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP number of transmit packet / second status flexRAN*/
362
uint32_t flexran_get_pdcp_tx_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
363

364
365
/*PDCP pdcp tx bytes in a given window flexRAN*/
uint32_t flexran_get_pdcp_tx_bytes_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
366
367
368
369
370
371
372
373

/*PDCP tx sequence number flexRAN*/
uint32_t flexran_get_pdcp_tx_sn(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP tx aggregated packet arrival  flexRAN*/
uint32_t flexran_get_pdcp_tx_aiat(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP tx aggregated packet arrival per second flexRAN*/
374
uint32_t flexran_get_pdcp_tx_aiat_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
375
376
377
378
379
380
381
382
383


/*PDCP num rx pdu status flexRAN*/
uint32_t flexran_get_pdcp_rx(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP num rx bytes status flexRAN*/
uint32_t flexran_get_pdcp_rx_bytes(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP number of received packet / second  flexRAN*/
384
uint32_t flexran_get_pdcp_rx_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
385
386

/*PDCP gootput (bit/s) status flexRAN*/
387
uint32_t flexran_get_pdcp_rx_bytes_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
388
389
390
391
392
393
394
395

/*PDCP rx sequence number flexRAN*/
uint32_t flexran_get_pdcp_rx_sn(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP rx aggregated packet arrival  flexRAN*/
uint32_t flexran_get_pdcp_rx_aiat(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

/*PDCP rx aggregated packet arrival per second flexRAN*/
396
uint32_t flexran_get_pdcp_rx_aiat_w(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);
397
398
399
400

/*PDCP num of received outoforder pdu status flexRAN*/
uint32_t flexran_get_pdcp_rx_oo(const mid_t mod_id,  const mid_t ue_id, const lcid_t lcid);

401
402
/*********************RRC**********************/
/*Get primary cell measuremeant id flexRAN*/
Robert Schmidt's avatar
Robert Schmidt committed
403
MeasId_t flexran_get_rrc_pcell_measid(mid_t mod_id, mid_t ue_id);
404

405
/*Get primary cell RSRP measurement flexRAN*/  
Robert Schmidt's avatar
Robert Schmidt committed
406
float flexran_get_rrc_pcell_rsrp(mid_t mod_id, mid_t ue_id);
407
408

/*Get primary cell RSRQ measurement flexRAN*/
Robert Schmidt's avatar
Robert Schmidt committed
409
float flexran_get_rrc_pcell_rsrq(mid_t mod_id, mid_t ue_id);
410
411
412
413
414

/* Get RRC neighbouring measurement */
int flexran_get_rrc_num_ncell(mid_t mod_id, mid_t ue_id);

/*Get physical cell id*/
Robert Schmidt's avatar
Robert Schmidt committed
415
PhysCellId_t flexran_get_rrc_neigh_phy_cell_id(mid_t mod_id, mid_t ue_id, int cell_id);
416
417

/*Get RSRP of neighbouring Cell*/
Robert Schmidt's avatar
Robert Schmidt committed
418
float flexran_get_rrc_neigh_rsrp(mid_t mod_id, mid_t ue_id, int cell_id);
419
420

/*Get RSRQ of neighbouring Cell*/
Robert Schmidt's avatar
Robert Schmidt committed
421
float flexran_get_rrc_neigh_rsrq(mid_t mod_id, mid_t ue_id, int cell_id);
422
423

/*Get MCC PLMN identity neighbouring Cell*/
Robert Schmidt's avatar
Robert Schmidt committed
424
425
/* currently not implemented
int flexran_get_rrc_neigh_plmn_mcc(mid_t mod_id, mid_t ue_id, int cell_id); */
426
427

/*Get MNC PLMN identity neighbouring Cell*/
Robert Schmidt's avatar
Robert Schmidt committed
428
429
/* currently not implemented
int flexran_get_rrc_neigh_plmn_mnc(mid_t mod_id, mid_t ue_id, int cell_id); */