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
e5a91747
Commit
e5a91747
authored
Dec 06, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_get_csi_bitlen()
parent
45e6a577
Changes
1
Show 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 @
e5a91747
...
@@ -167,20 +167,12 @@ void compute_csi_bitlen (NR_CellGroupConfig_t *secondaryCellGroup, NR_UE_info_t
...
@@ -167,20 +167,12 @@ void compute_csi_bitlen (NR_CellGroupConfig_t *secondaryCellGroup, NR_UE_info_t
}
}
uint16_t
nr_get_csi_bitlen
(
int
Mod_idP
,
uint16_t
nr_get_csi_bitlen
(
const
nr_csi_report_t
*
csi_report
)
int
UE_id
,
{
uint8_t
csi_report_id
)
{
const
CRI_SSBRI_RSRP_bitlen_t
*
bitlen
=
&
csi_report
->
CSI_report_bitlen
[
0
];
return
bitlen
->
cri_ssbri_bitlen
*
bitlen
->
nb_ssbri_cri
uint16_t
csi_bitlen
=
0
;
+
bitlen
->
rsrp_bitlen
NR_UE_info_t
*
UE_info
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_info
;
+
bitlen
->
diff_rsrp_bitlen
*
(
bitlen
->
nb_ssbri_cri
-
1
)
*
csi_report
->
nb_of_csi_ssb_report
;
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
;
}
}
...
@@ -262,7 +254,9 @@ void nr_csi_meas_reporting(int Mod_idP,
...
@@ -262,7 +254,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
->
frame
=
frame
;
curr_pucch
->
ul_slot
=
sched_slot
;
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