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
常顺宇
OpenXG-RAN
Commits
b6ebdc2f
Commit
b6ebdc2f
authored
Dec 06, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_get_csi_bitlen()
parent
49c7dbf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+9
-15
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
b6ebdc2f
...
...
@@ -169,20 +169,12 @@ void compute_csi_bitlen (NR_CellGroupConfig_t *secondaryCellGroup, NR_UE_info_t
}
uint16_t
nr_get_csi_bitlen
(
int
Mod_idP
,
int
UE_id
,
uint8_t
csi_report_id
)
{
uint16_t
csi_bitlen
=
0
;
NR_UE_info_t
*
UE_info
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_info
;
CRI_SSBRI_RSRP_bitlen_t
*
CSI_report_bitlen
=
NULL
;
CSI_report_bitlen
=
&
(
UE_info
->
csi_report_template
[
UE_id
][
csi_report_id
].
CSI_report_bitlen
[
0
]);
csi_bitlen
=
((
CSI_report_bitlen
->
cri_ssbri_bitlen
*
CSI_report_bitlen
->
nb_ssbri_cri
)
+
CSI_report_bitlen
->
rsrp_bitlen
+
(
CSI_report_bitlen
->
diff_rsrp_bitlen
*
(
CSI_report_bitlen
->
nb_ssbri_cri
-
1
))
*
UE_info
->
csi_report_template
[
UE_id
][
csi_report_id
].
nb_of_csi_ssb_report
);
return
csi_bitlen
;
uint16_t
nr_get_csi_bitlen
(
const
nr_csi_report_t
*
csi_report
)
{
const
CRI_SSBRI_RSRP_bitlen_t
*
bitlen
=
&
csi_report
->
CSI_report_bitlen
[
0
];
return
bitlen
->
cri_ssbri_bitlen
*
bitlen
->
nb_ssbri_cri
+
bitlen
->
rsrp_bitlen
+
bitlen
->
diff_rsrp_bitlen
*
(
bitlen
->
nb_ssbri_cri
-
1
)
*
csi_report
->
nb_of_csi_ssb_report
;
}
...
...
@@ -264,7 +256,9 @@ void nr_csi_meas_reporting(int Mod_idP,
}
}
}
curr_pucch
->
csi_bits
+=
nr_get_csi_bitlen
(
Mod_idP
,
UE_id
,
csi_report_id
);
// TODO function to compute CSI meas report bit size
curr_pucch
->
csi_bits
+=
nr_get_csi_bitlen
(
&
UE_info
->
csi_report_template
[
UE_id
][
csi_report_id
]);
curr_pucch
->
frame
=
frame
;
curr_pucch
->
ul_slot
=
sched_slot
;
}
...
...
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