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
spbro
OpenXG-RAN
Commits
c87b3905
Commit
c87b3905
authored
Aug 15, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code formatting
parent
2039a4f2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
74 deletions
+64
-74
openair1/PHY/NR_REFSIG/dmrs_nr.c
openair1/PHY/NR_REFSIG/dmrs_nr.c
+6
-6
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+58
-68
No files found.
openair1/PHY/NR_REFSIG/dmrs_nr.c
View file @
c87b3905
...
...
@@ -299,7 +299,7 @@ uint16_t get_dmrs_freq_idx_ul(uint16_t n, uint8_t k_prime, uint8_t delta, uint8_
int8_t
get_next_dmrs_symbol_in_slot
(
uint16_t
ul_dmrs_symb_pos
,
uint8_t
counter
,
uint8_t
end_symbol
)
{
for
(
uint8_t
symbol
=
counter
;
symbol
<
end_symbol
;
symbol
++
)
{
if
((
ul_dmrs_symb_pos
>>
symbol
)
&
0x01
)
{
if
((
ul_dmrs_symb_pos
>>
symbol
)
&
0x01
)
{
return
symbol
;
}
}
...
...
@@ -318,23 +318,23 @@ uint8_t get_dmrs_symbols_in_slot(uint16_t l_prime_mask, uint16_t nb_symb, uint8
}
/* return the position of valid dmrs symbol in a slot for channel compensation */
int8_t
get_valid_dmrs_idx_for_channel_est
(
uint16_t
dmrs_symb_pos
,
uint8_t
counter
)
int8_t
get_valid_dmrs_idx_for_channel_est
(
uint16_t
dmrs_symb_pos
,
uint8_t
counter
)
{
int8_t
symbIdx
=
-
1
;
/* if current symbol is DMRS then return this index */
if
(
is_dmrs_symbol
(
counter
,
dmrs_symb_pos
)
==
1
)
{
if
(
is_dmrs_symbol
(
counter
,
dmrs_symb_pos
)
==
1
)
{
return
counter
;
}
/* find previous DMRS symbol */
for
(
int8_t
symbol
=
counter
;
symbol
>=
0
;
symbol
--
)
{
if
((
1
<<
symbol
&
dmrs_symb_pos
)
>
0
)
{
for
(
int8_t
symbol
=
counter
;
symbol
>=
0
;
symbol
--
)
{
if
((
1
<<
symbol
&
dmrs_symb_pos
)
>
0
)
{
symbIdx
=
symbol
;
break
;
}
}
/* if there is no previous dmrs available then find the next possible*/
if
(
symbIdx
==
-
1
)
{
symbIdx
=
get_next_dmrs_symbol_in_slot
(
dmrs_symb_pos
,
counter
,
15
);
symbIdx
=
get_next_dmrs_symbol_in_slot
(
dmrs_symb_pos
,
counter
,
15
);
}
return
symbIdx
;
}
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
c87b3905
This diff is collapsed.
Click to expand it.
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