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
canghaiwuhen
OpenXG-RAN
Commits
e8b69323
Commit
e8b69323
authored
Nov 20, 2019
by
magounak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialization of UL_RB in frame parameters
parent
0b066b52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
openair1/PHY/INIT/nr_parms.c
openair1/PHY/INIT/nr_parms.c
+7
-3
No files found.
openair1/PHY/INIT/nr_parms.c
View file @
e8b69323
...
@@ -109,7 +109,8 @@ int nr_is_ssb_slot(nfapi_nr_config_request_t *cfg, int slot)
...
@@ -109,7 +109,8 @@ int nr_is_ssb_slot(nfapi_nr_config_request_t *cfg, int slot)
int
nr_init_frame_parms0
(
NR_DL_FRAME_PARMS
*
fp
,
int
nr_init_frame_parms0
(
NR_DL_FRAME_PARMS
*
fp
,
int
mu
,
int
mu
,
int
Ncp
,
int
Ncp
,
int
N_RB_DL
)
int
N_RB_DL
,
int
N_RB_UL
)
{
{
...
@@ -125,6 +126,7 @@ int nr_init_frame_parms0(NR_DL_FRAME_PARMS *fp,
...
@@ -125,6 +126,7 @@ int nr_init_frame_parms0(NR_DL_FRAME_PARMS *fp,
fp
->
numerology_index
=
mu
;
fp
->
numerology_index
=
mu
;
fp
->
Ncp
=
Ncp
;
fp
->
Ncp
=
Ncp
;
fp
->
N_RB_DL
=
N_RB_DL
;
fp
->
N_RB_DL
=
N_RB_DL
;
fp
->
N_RB_UL
=
N_RB_UL
;
switch
(
mu
)
{
switch
(
mu
)
{
...
@@ -287,7 +289,8 @@ int nr_init_frame_parms(nfapi_nr_config_request_t* config,
...
@@ -287,7 +289,8 @@ int nr_init_frame_parms(nfapi_nr_config_request_t* config,
return
nr_init_frame_parms0
(
fp
,
return
nr_init_frame_parms0
(
fp
,
config
->
subframe_config
.
numerology_index_mu
.
value
,
config
->
subframe_config
.
numerology_index_mu
.
value
,
config
->
subframe_config
.
dl_cyclic_prefix_type
.
value
,
config
->
subframe_config
.
dl_cyclic_prefix_type
.
value
,
config
->
rf_config
.
dl_carrier_bandwidth
.
value
);
config
->
rf_config
.
dl_carrier_bandwidth
.
value
,
config
->
rf_config
.
ul_carrier_bandwidth
.
value
);
}
}
int
nr_init_frame_parms_ue
(
NR_DL_FRAME_PARMS
*
fp
,
int
nr_init_frame_parms_ue
(
NR_DL_FRAME_PARMS
*
fp
,
...
@@ -297,8 +300,9 @@ int nr_init_frame_parms_ue(NR_DL_FRAME_PARMS *fp,
...
@@ -297,8 +300,9 @@ int nr_init_frame_parms_ue(NR_DL_FRAME_PARMS *fp,
int
n_ssb_crb
,
int
n_ssb_crb
,
int
ssb_subcarrier_offset
)
int
ssb_subcarrier_offset
)
{
{
int
N_RB_UL
=
N_RB_DL
;
/*n_ssb_crb and ssb_subcarrier_offset are given in 15kHz SCS*/
/*n_ssb_crb and ssb_subcarrier_offset are given in 15kHz SCS*/
nr_init_frame_parms0
(
fp
,
mu
,
Ncp
,
N_RB_DL
);
nr_init_frame_parms0
(
fp
,
mu
,
Ncp
,
N_RB_DL
,
N_RB_UL
);
fp
->
ssb_start_subcarrier
=
(
12
*
n_ssb_crb
+
ssb_subcarrier_offset
)
/
(
1
<<
mu
);
fp
->
ssb_start_subcarrier
=
(
12
*
n_ssb_crb
+
ssb_subcarrier_offset
)
/
(
1
<<
mu
);
return
0
;
return
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