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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
0cffcedd
Commit
0cffcedd
authored
Sep 06, 2022
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments and re-formatting the code using clang-format
parent
6e36b540
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+7
-6
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
0cffcedd
...
...
@@ -261,19 +261,20 @@ int nr_get_csi_rs_signal(const PHY_VARS_NR_UE *ue,
return
0
;
}
uint32_t
calc_power_csirs
(
const
uint16_t
*
x
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
)
{
uint32_t
calc_power_csirs
(
const
uint16_t
*
x
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
)
{
uint64_t
sum_x
=
0
;
uint64_t
sum_x2
=
0
;
uint16_t
size
=
0
;
for
(
int
rb
=
csirs_config_pdu
->
start_rb
;
rb
<
(
csirs_config_pdu
->
start_rb
+
csirs_config_pdu
->
nr_of_rbs
)
;
rb
++
)
{
if
(
csirs_config_pdu
->
freq_density
<=
1
&&
csirs_config_pdu
->
freq_density
!=
(
rb
%
2
))
{
for
(
int
rb
=
0
;
rb
<
csirs_config_pdu
->
nr_of_rbs
;
rb
++
)
{
if
(
csirs_config_pdu
->
freq_density
<=
1
&&
csirs_config_pdu
->
freq_density
!=
(
(
rb
+
csirs_config_pdu
->
start_rb
)
%
2
))
{
continue
;
}
sum_x
=
sum_x
+
x
[
rb
-
csirs_config_pdu
->
start_rb
];
sum_x2
=
sum_x2
+
x
[
rb
-
csirs_config_pdu
->
start_rb
]
*
x
[
rb
-
csirs_config_pdu
->
start_
rb
];
sum_x
=
sum_x
+
x
[
rb
];
sum_x2
=
sum_x2
+
x
[
rb
]
*
x
[
rb
];
size
++
;
}
return
sum_x2
/
size
-
(
sum_x
/
size
)
*
(
sum_x
/
size
);
return
sum_x2
/
size
-
(
sum_x
/
size
)
*
(
sum_x
/
size
);
}
int
nr_csi_rs_channel_estimation
(
const
PHY_VARS_NR_UE
*
ue
,
...
...
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