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
Michael Black
OpenXG-RAN
Commits
6aea63a0
Commit
6aea63a0
authored
Nov 11, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init SRS parameters at gNB
parent
7e8dd298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
openair1/PHY/INIT/nr_parms.c
openair1/PHY/INIT/nr_parms.c
+26
-0
No files found.
openair1/PHY/INIT/nr_parms.c
View file @
6aea63a0
...
...
@@ -237,6 +237,30 @@ uint32_t get_samples_slot_timestamp(int slot, NR_DL_FRAME_PARMS* fp, uint8_t sl_
return
samp_count
;
}
// FIXME: It is hardcoded for now
void
set_srs_parameters
(
NR_DL_FRAME_PARMS
*
fp
)
{
// init resource
SRS_Resource_t
*
p_srs_resource
=
calloc
(
1
,
sizeof
(
*
p_srs_resource
));
p_srs_resource
->
nrof_SrsPorts
=
port1
;
p_srs_resource
->
transmissionComb
=
2
;
// K_TC
p_srs_resource
->
resourceMapping_nrofSymbols
=
1
;
p_srs_resource
->
resourceMapping_repetitionFactor
=
1
;
p_srs_resource
->
SRS_Periodicity
=
srs_sl4
;
p_srs_resource
->
SRS_Offset
=
3
;
// init resource set with only 1 resource
SRS_ResourceSet_t
*
p_srs_resource_set
=
calloc
(
1
,
sizeof
(
*
p_srs_resource_set
));
p_srs_resource_set
->
resourceType
=
periodic
;
p_srs_resource_set
->
number_srs_Resource
++
;
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
=
p_srs_resource
;
SRS_NR
*
p_srs_nr
=
&
fp
->
srs_nr
;
p_srs_nr
->
active_srs_Resource_Set
=
0
;
p_srs_nr
->
number_srs_Resource_Set
++
;
p_srs_nr
->
p_SRS_ResourceSetList
[
0
]
=
p_srs_resource_set
;
}
int
nr_init_frame_parms
(
nfapi_nr_config_request_scf_t
*
cfg
,
NR_DL_FRAME_PARMS
*
fp
)
{
...
...
@@ -294,6 +318,8 @@ int nr_init_frame_parms(nfapi_nr_config_request_scf_t* cfg,
for
(
int
p
=
0
;
p
<
num_tx_ant
;
p
++
)
fp
->
N_ssb
+=
((
fp
->
L_ssb
>>
(
63
-
p
))
&
0x01
);
set_srs_parameters
(
fp
);
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