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
lizhongxiao
OpenXG-RAN
Commits
1bbdc2dc
Commit
1bbdc2dc
authored
Apr 27, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the function NB_phy_config_mib_eNB & NB_phy_config_sib2_eNB (TODO)
parent
9d8268e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
openair1/PHY/INIT/lte_init.c
openair1/PHY/INIT/lte_init.c
+64
-0
No files found.
openair1/PHY/INIT/lte_init.c
View file @
1bbdc2dc
...
...
@@ -37,6 +37,70 @@ extern uint16_t prach_root_sequence_map0_3[838];
extern
uint16_t
prach_root_sequence_map4
[
138
];
uint8_t
dmrs1_tab
[
8
]
=
{
0
,
2
,
3
,
4
,
6
,
8
,
9
,
10
};
#if defined(NB_IoT)
void
NB_phy_config_mib_eNB
(
int
Mod_id
,
int
CC_id
,
int
eutra_band
,
int
Nid_cell
,
int
Ncp
,
int
p_eNB
,
uint32_t
dl_CarrierFreq
,
uint32_t
ul_CarrierFreq
)
{
LTE_DL_FRAME_PARMS
*
fp
;
LOG_I
(
PHY
,
"Configuring MIB for instance %d, CCid %d : (band %d,N_RB_DL %d,Nid_cell %d,p %d,DL freq %u)
\n
"
,
Mod_id
,
CC_id
,
eutra_band
,
N_RB_DL_array
[
dl_Bandwidth
],
Nid_cell
,
p_eNB
,
dl_CarrierFreq
);
/*if (RC.eNB == NULL) {
RC.eNB = (PHY_VARS_eNB ***)malloc((1+NUMBER_OF_eNB_MAX)*sizeof(PHY_VARS_eNB***));
LOG_I(PHY,"RC.eNB = %p\n",RC.eNB);
memset(RC.eNB,0,(1+NUMBER_OF_eNB_MAX)*sizeof(PHY_VARS_eNB***));
}
if (RC.eNB[Mod_id] == NULL) {
RC.eNB[Mod_id] = (PHY_VARS_eNB **)malloc((1+MAX_NUM_CCs)*sizeof(PHY_VARS_eNB**));
LOG_I(PHY,"RC.eNB[%d] = %p\n",Mod_id,RC.eNB[Mod_id]);
memset(RC.eNB[Mod_id],0,(1+MAX_NUM_CCs)*sizeof(PHY_VARS_eNB***));
}
if (RC.eNB[Mod_id][CC_id] == NULL) {
RC.eNB[Mod_id][CC_id] = (PHY_VARS_eNB *)malloc(sizeof(PHY_VARS_eNB));
LOG_I(PHY,"RC.eNB[%d][%d] = %p\n",Mod_id,CC_id,RC.eNB[Mod_id][CC_id]);
RC.eNB[Mod_id][CC_id]->Mod_id = Mod_id;
RC.eNB[Mod_id][CC_id]->CC_id = CC_id;
}
RC.eNB[Mod_id][CC_id]->mac_enabled = 1;
fp = &RC.eNB[Mod_id][CC_id]->frame_parms; */
fp
->
Nid_cell
=
Nid_cell
;
fp
->
nushift
=
Nid_cell
%
6
;
fp
->
eutra_band
=
eutra_band
;
fp
->
Ncp
=
Ncp
;
fp
->
nb_antenna_ports_eNB
=
p_eNB
;
fp
->
dl_CarrierFreq
=
dl_CarrierFreq
;
fp
->
ul_CarrierFreq
=
ul_CarrierFreq
;
init_frame_parms
(
fp
,
1
);
init_lte_top
(
fp
);
}
void
NB_phy_config_sib2_eNB
(
uint8_t
Mod_id
,
int
CC_id
,
RadioResourceConfigCommonSIB_t
*
radioResourceConfigCommon
,
ARFCN_ValueEUTRA_t
*
ul_CArrierFreq
,
AdditionalSpectrumEmission_t
*
additionalSpectrumEmission
,
)
{
}
#endif
// FIXME not used anywhere
void
phy_config_mib
(
LTE_DL_FRAME_PARMS
*
fp
,
uint8_t
N_RB_DL
,
...
...
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