Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
517d4122
Commit
517d4122
authored
Jul 24, 2017
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replacing NB by NB_IoT + remouving warnings (139 remaining)
parent
bab0bf57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
51 deletions
+51
-51
openair1/PHY/defs_nb_iot.h
openair1/PHY/defs_nb_iot.h
+37
-37
openair1/PHY/impl_defs_lte_nb_iot.h
openair1/PHY/impl_defs_lte_nb_iot.h
+9
-9
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+1
-1
openair2/RRC/LITE/L2_interface_nb_iot.c
openair2/RRC/LITE/L2_interface_nb_iot.c
+4
-4
No files found.
openair1/PHY/defs_nb_iot.h
View file @
517d4122
...
...
@@ -137,11 +137,11 @@ static inline void* malloc16_clear( size_t size )
#include "targets/ARCH/COMMON/common_lib.h"
#define NUM_DCI_MAX 32
#define NUM_DCI_MAX
_NB_IoT
32
#define NUMBER_OF_eNB_SECTORS_MAX 3
#define NUMBER_OF_eNB_SECTORS_MAX
_NB_IoT
3
#define NB_BANDS_MAX 8
#define NB_BANDS_MAX
_NB_IoT
8
/*
#ifdef OCP_FRAMEWORK
#include <enums.h>
...
...
@@ -476,25 +476,25 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
uint8_t
local_flag
;
uint32_t
rx_total_gain_dB
;
LTE_DL_FRAME_PARMS
frame_parms
;
PHY_MEASUREMENTS_eNB
measurements
[
NUMBER_OF_eNB_SECTORS_MAX
];
/// Measurement variables
PHY_MEASUREMENTS_eNB
measurements
[
NUMBER_OF_eNB_SECTORS_MAX
_NB_IoT
];
/// Measurement variables
LTE_eNB_COMMON
common_vars
;
LTE_eNB_SRS
srs_vars
[
NUMBER_OF_UE_MAX
];
LTE_eNB_SRS
srs_vars
[
NUMBER_OF_UE_MAX
_NB_IoT
];
LTE_eNB_PBCH
pbch
;
LTE_eNB_PUSCH
*
pusch_vars
[
NUMBER_OF_UE_MAX
];
LTE_eNB_PUSCH
*
pusch_vars
[
NUMBER_OF_UE_MAX
_NB_IoT
];
LTE_eNB_PRACH
prach_vars
;
LTE_eNB_DLSCH_t
*
dlsch
[
NUMBER_OF_UE_MAX
][
2
];
// Nusers times two spatial streams
LTE_eNB_ULSCH_t
*
ulsch
[
NUMBER_OF_UE_MAX
+
1
];
// Nusers + number of RA (the ulsch[0] contains RAR)
LTE_eNB_DLSCH_t
*
dlsch
[
NUMBER_OF_UE_MAX
_NB_IoT
][
2
];
// Nusers times two spatial streams
LTE_eNB_ULSCH_t
*
ulsch
[
NUMBER_OF_UE_MAX
_NB_IoT
+
1
];
// Nusers + number of RA (the ulsch[0] contains RAR)
LTE_eNB_DLSCH_t
*
dlsch_SI
,
*
dlsch_ra
;
LTE_eNB_DLSCH_t
*
dlsch_MCH
;
LTE_eNB_UE_stats
UE_stats
[
NUMBER_OF_UE_MAX
];
LTE_eNB_UE_stats
*
UE_stats_ptr
[
NUMBER_OF_UE_MAX
];
LTE_eNB_UE_stats
UE_stats
[
NUMBER_OF_UE_MAX
_NB_IoT
];
LTE_eNB_UE_stats
*
UE_stats_ptr
[
NUMBER_OF_UE_MAX
_NB_IoT
];
/// cell-specific reference symbols
uint32_t
lte_gold_table
[
20
][
2
][
14
];
/// UE-specific reference symbols (p=5), TM 7
uint32_t
lte_gold_uespec_port5_table
[
NUMBER_OF_UE_MAX
][
20
][
38
];
uint32_t
lte_gold_uespec_port5_table
[
NUMBER_OF_UE_MAX
_NB_IoT
][
20
][
38
];
/// UE-specific reference symbols (p=7...14), TM 8/9/10
uint32_t
lte_gold_uespec_table
[
2
][
20
][
2
][
21
];
...
...
@@ -508,7 +508,7 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
char
eNB_generate_rar
;
/// Indicator set to 0 after first SR
uint8_t
first_sr
[
NUMBER_OF_UE_MAX
];
uint8_t
first_sr
[
NUMBER_OF_UE_MAX
_NB_IoT
];
uint32_t
max_peak_val
;
int
max_eNB_id
,
max_sync_pos
;
...
...
@@ -522,7 +522,7 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
/// N0 (used for abstraction)
double
N0
;
unsigned
char
first_run_timing_advance
[
NUMBER_OF_UE_MAX
];
unsigned
char
first_run_timing_advance
[
NUMBER_OF_UE_MAX
_NB_IoT
];
unsigned
char
first_run_I0_measurements
;
unsigned
char
cooperation_flag
;
// for cooperative communication
...
...
@@ -543,52 +543,52 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
/// For emulation only (used by UE abstraction to retrieve DCI)
uint8_t
num_common_dci
[
2
];
// num_dci in even/odd subframes
uint8_t
num_ue_spec_dci
[
2
];
// num_dci in even/odd subframes
DCI_ALLOC_t
dci_alloc
[
2
][
NUM_DCI_MAX
];
// dci_alloc from even/odd subframes
DCI_ALLOC_t
dci_alloc
[
2
][
NUM_DCI_MAX
_NB_IoT
];
// dci_alloc from even/odd subframes
// PDSCH Varaibles
PDSCH_CONFIG_DEDICATED
pdsch_config_dedicated
[
NUMBER_OF_UE_MAX
];
PDSCH_CONFIG_DEDICATED
pdsch_config_dedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// PUSCH Varaibles
PUSCH_CONFIG_DEDICATED
pusch_config_dedicated
[
NUMBER_OF_UE_MAX
];
PUSCH_CONFIG_DEDICATED
pusch_config_dedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// PUCCH variables
PUCCH_CONFIG_DEDICATED
pucch_config_dedicated
[
NUMBER_OF_UE_MAX
];
PUCCH_CONFIG_DEDICATED
pucch_config_dedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// UL-POWER-Control
UL_POWER_CONTROL_DEDICATED
ul_power_control_dedicated
[
NUMBER_OF_UE_MAX
];
UL_POWER_CONTROL_DEDICATED
ul_power_control_dedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// TPC
TPC_PDCCH_CONFIG
tpc_pdcch_config_pucch
[
NUMBER_OF_UE_MAX
];
TPC_PDCCH_CONFIG
tpc_pdcch_config_pusch
[
NUMBER_OF_UE_MAX
];
TPC_PDCCH_CONFIG
tpc_pdcch_config_pucch
[
NUMBER_OF_UE_MAX
_NB_IoT
];
TPC_PDCCH_CONFIG
tpc_pdcch_config_pusch
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// CQI reporting
CQI_REPORT_CONFIG
cqi_report_config
[
NUMBER_OF_UE_MAX
];
CQI_REPORT_CONFIG
cqi_report_config
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// SRS Variables
SOUNDINGRS_UL_CONFIG_DEDICATED
soundingrs_ul_config_dedicated
[
NUMBER_OF_UE_MAX
];
SOUNDINGRS_UL_CONFIG_DEDICATED
soundingrs_ul_config_dedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
uint8_t
ncs_cell
[
20
][
7
];
// Scheduling Request Config
SCHEDULING_REQUEST_CONFIG
scheduling_request_config
[
NUMBER_OF_UE_MAX
];
SCHEDULING_REQUEST_CONFIG
scheduling_request_config
[
NUMBER_OF_UE_MAX
_NB_IoT
];
// Transmission mode per UE
uint8_t
transmission_mode
[
NUMBER_OF_UE_MAX
];
uint8_t
transmission_mode
[
NUMBER_OF_UE_MAX
_NB_IoT
];
/// cba_last successful reception for each group, used for collision detection
uint8_t
cba_last_reception
[
4
];
// Pointers for active physicalConfigDedicated to be applied in current subframe
struct
PhysicalConfigDedicated
*
physicalConfigDedicated
[
NUMBER_OF_UE_MAX
];
struct
PhysicalConfigDedicated
*
physicalConfigDedicated
[
NUMBER_OF_UE_MAX
_NB_IoT
];
//Pointers for actve physicalConfigDedicated for NB-IoT to be applied in current subframe
struct
PhysicalConfigDedicated_NB_r13
*
phy_config_dedicated_NB
[
NUMBER_OF_UE_MAX
];
struct
PhysicalConfigDedicated_NB_r13
*
phy_config_dedicated_NB
[
NUMBER_OF_UE_MAX
_NB_IoT
];
uint32_t
rb_mask_ul
[
4
];
/// Information regarding TM5
MU_MIMO_mode
mu_mimo_mode
[
NUMBER_OF_UE_MAX
];
MU_MIMO_mode
mu_mimo_mode
[
NUMBER_OF_UE_MAX
_NB_IoT
];
/// target_ue_dl_mcs : only for debug purposes
...
...
@@ -656,16 +656,16 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
time_stats_t
localization_stats
;
#endif
int32_t
pucch1_stats_cnt
[
NUMBER_OF_UE_MAX
][
10
];
int32_t
pucch1_stats
[
NUMBER_OF_UE_MAX
][
10
*
1024
];
int32_t
pucch1_stats_thres
[
NUMBER_OF_UE_MAX
][
10
*
1024
];
int32_t
pucch1ab_stats_cnt
[
NUMBER_OF_UE_MAX
][
10
];
int32_t
pucch1ab_stats
[
NUMBER_OF_UE_MAX
][
2
*
10
*
1024
];
int32_t
pusch_stats_rb
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_round
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_mcs
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_bsr
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_BO
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pucch1_stats_cnt
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10
];
int32_t
pucch1_stats
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10
*
1024
];
int32_t
pucch1_stats_thres
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10
*
1024
];
int32_t
pucch1ab_stats_cnt
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10
];
int32_t
pucch1ab_stats
[
NUMBER_OF_UE_MAX
_NB_IoT
][
2
*
10
*
1024
];
int32_t
pusch_stats_rb
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10240
];
int32_t
pusch_stats_round
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10240
];
int32_t
pusch_stats_mcs
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10240
];
int32_t
pusch_stats_bsr
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10240
];
int32_t
pusch_stats_BO
[
NUMBER_OF_UE_MAX
_NB_IoT
][
10240
];
/// RF and Interface devices per CC
openair0_device
rfdevice
;
...
...
openair1/PHY/impl_defs_lte_nb_iot.h
View file @
517d4122
...
...
@@ -48,7 +48,7 @@
/// NPRACH-ParametersList-NB-r13 from 36.331 RRC spec
typedef
struct
NPRACH_Parameters_NB
{
typedef
struct
NPRACH_Parameters_NB
_IoT
{
/// the period time for nprach
uint16_t
nprach_Periodicity
;
/// for the start time for the NPRACH resource from 40ms-2560ms
...
...
@@ -69,11 +69,11 @@ typedef struct NPRACH_Parameters_NB{
uint16_t
npdcch_StartSF_CSS_RA
;
/// Fractional period offset of starting subframe for NPDCCH common search space
uint16_t
npdcch_Offset_RA
;
}
nprach_parameters_NB_t
;
}
nprach_parameters_NB_
IoT_
t
;
typedef
struct
{
A_SEQUENCE_OF
(
nprach_parameters_NB_t
)
list
;
}
NPRACH_List_NB_t
;
A_SEQUENCE_OF
(
nprach_parameters_NB_
IoT_
t
)
list
;
}
NPRACH_List_NB_
IoT_
t
;
typedef
long
RSRP_Range_t
;
...
...
@@ -89,7 +89,7 @@ typedef struct {
/// The criterion for UEs to select a NPRACH resource. Up to 2 RSRP threshold values can be signalled. \vr{[1..2]}
struct
rsrp_ThresholdsNPrachInfoList
*
rsrp_ThresholdsPrachInfoList
;
/// NPRACH Parameters List
NPRACH_List_NB_t
nprach_ParametersList
;
NPRACH_List_NB_
IoT_
t
nprach_ParametersList
;
}
NPRACH_CONFIG_COMMON
;
...
...
@@ -142,7 +142,7 @@ typedef struct{
uint8_t
alpha
;
/// See TS 36.213 [23, 16.2.1.1]. Actual value = IE value * 2 [dB].
uint8_t
deltaPreambleMsg3
;
}
UplinkPowerControlCommon_NB
;
}
UplinkPowerControlCommon_NB
_IoT
;
/* DL-GapConfig-NB-r13 */
...
...
@@ -150,7 +150,7 @@ typedef struct {
uint16_t
dl_GapThreshold
;
uint16_t
dl_GapPeriodicity
;
uint16_t
dl_GapDurationCoeff
;
}
DL_GapConfig_NB
;
}
DL_GapConfig_NB
_IoT
;
typedef
struct
{
...
...
@@ -222,9 +222,9 @@ typedef struct {
/// PUSCH Config Common (from 36-331 RRC spec)
NPUSCH_CONFIG_COMMON
npusch_config_common
;
/// UL Power Control (from 36-331 RRC spec)
UplinkPowerControlCommon_NB
ul_power_control_config_common
;
UplinkPowerControlCommon_NB
_IoT
ul_power_control_config_common
;
/// DL Gap
DL_GapConfig_NB
DL_gap_config
;
DL_GapConfig_NB
_IoT
DL_gap_config
;
/// Size of SI windows used for repetition of one SI message (in frames)
uint8_t
SIwindowsize
;
/// Period of SI windows used for repetition of one SI message (in frames)
...
...
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
View file @
517d4122
...
...
@@ -205,7 +205,7 @@ void phy_procedures_eNB_uespec_RX_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_
// delete the srs
/*Loop over the UE, i is the UE ID */
for
(
i
=
0
;
i
<
NUMBER_OF_UE_MAX
;
i
++
)
for
(
i
=
0
;
i
<
NUMBER_OF_UE_MAX
_NB_IoT
;
i
++
)
{
// delete srs
...
...
openair2/RRC/LITE/L2_interface_nb_iot.c
View file @
517d4122
...
...
@@ -908,10 +908,10 @@ uint8_t is_SIB1_start_NB_IoT(
{
uint8_t
nb_rep
=
0
;
// number of sib1-nb repetitions within the 256 radio frames
uint32_t
sib1_startFrame
;
uint32_t
sib1_NB_period
=
256
;
//from specs TS 36.331 (rf)
uint8_t
index
;
int
offset
;
int
period_nb
;
// the number of the actual period over the 1024 frames
//
uint32_t sib1_NB_period = 256;//from specs TS 36.331 (rf)
//
uint8_t index;
//
int offset;
//
int period_nb; // the number of the actual period over the 1024 frames
if
(
schedulingInfoSIB1
>
11
||
schedulingInfoSIB1
<
0
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment