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
lizhongxiao
OpenXG-RAN
Commits
728a9033
Commit
728a9033
authored
Apr 16, 2020
by
Ahmed Hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making "is_ptrs_symbol" as a static inline function
parent
9b52bf29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
23 deletions
+14
-23
openair1/PHY/NR_REFSIG/ptrs_nr.c
openair1/PHY/NR_REFSIG/ptrs_nr.c
+0
-22
openair1/PHY/NR_REFSIG/ptrs_nr.h
openair1/PHY/NR_REFSIG/ptrs_nr.h
+14
-1
No files found.
openair1/PHY/NR_REFSIG/ptrs_nr.c
View file @
728a9033
...
@@ -181,28 +181,6 @@ uint8_t is_ptrs_subcarrier(uint16_t k,
...
@@ -181,28 +181,6 @@ uint8_t is_ptrs_subcarrier(uint16_t k,
return
0
;
return
0
;
}
}
/*******************************************************************
*
* NAME : is_ptrs_symbol
*
* PARAMETERS : l ofdm symbol index within slot
* ptrs_symbols bit mask of ptrs
*
* RETURN : 1 if symbol is ptrs, or 0 otherwise
*
* DESCRIPTION : 3GPP TS 38.211 6.4.1.2 Phase-tracking reference signal for PUSCH
*
*********************************************************************/
uint8_t
is_ptrs_symbol
(
uint8_t
l
,
uint16_t
ptrs_symbols
)
{
if
(((
ptrs_symbols
>>
l
)
&
1
)
==
1
)
return
1
;
return
0
;
}
/*
/*
int main(int argc, char const *argv[])
int main(int argc, char const *argv[])
{
{
...
...
openair1/PHY/NR_REFSIG/ptrs_nr.h
View file @
728a9033
...
@@ -65,7 +65,20 @@ uint8_t is_ptrs_subcarrier(uint16_t k,
...
@@ -65,7 +65,20 @@ uint8_t is_ptrs_subcarrier(uint16_t k,
uint16_t
start_sc
,
uint16_t
start_sc
,
uint16_t
ofdm_symbol_size
);
uint16_t
ofdm_symbol_size
);
uint8_t
is_ptrs_symbol
(
uint8_t
l
,
uint16_t
ptrs_symbols
);
/*******************************************************************
*
* NAME : is_ptrs_symbol
*
* PARAMETERS : l ofdm symbol index within slot
* ptrs_symbols bit mask of ptrs
*
* RETURN : 1 if symbol is ptrs, or 0 otherwise
*
* DESCRIPTION : 3GPP TS 38.211 6.4.1.2 Phase-tracking reference signal for PUSCH
*
*********************************************************************/
static
inline
uint8_t
is_ptrs_symbol
(
uint8_t
l
,
uint16_t
ptrs_symbols
)
{
return
((
ptrs_symbols
>>
l
)
&
1
);
}
...
...
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