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
wangjie
OpenXG-RAN
Commits
4638bbdf
Commit
4638bbdf
authored
Jul 16, 2021
by
yihongzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add time measure tools
parent
ba0d2dae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+21
-0
No files found.
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
4638bbdf
...
@@ -59,6 +59,27 @@ extern uint8_t nfapi_mode;
...
@@ -59,6 +59,27 @@ extern uint8_t nfapi_mode;
int8_t
ul_de_llr8
[
0x40000
];
int8_t
ul_de_llr8
[
0x40000
];
struct
timespec
nr_t
[
10
];
#define NR_TIMESPEC_TO_DOUBLE_US( nr_t ) ( ( (double)nr_t.tv_sec * 1000000 ) + ( (double)nr_t.tv_nsec / 1000 ) )
struct
timespec
nr_get_timespec_diff
(
struct
timespec
*
start
,
struct
timespec
*
stop
)
{
struct
timespec
result
;
if
(
(
stop
->
tv_nsec
-
start
->
tv_nsec
)
<
0
)
{
result
.
tv_sec
=
stop
->
tv_sec
-
start
->
tv_sec
-
1
;
result
.
tv_nsec
=
stop
->
tv_nsec
-
start
->
tv_nsec
+
1000000000
;
}
else
{
result
.
tv_sec
=
stop
->
tv_sec
-
start
->
tv_sec
;
result
.
tv_nsec
=
stop
->
tv_nsec
-
start
->
tv_nsec
;
}
return
result
;
}
void
nr_set_ssb_first_subcarrier
(
nfapi_nr_config_request_scf_t
*
cfg
,
NR_DL_FRAME_PARMS
*
fp
)
{
void
nr_set_ssb_first_subcarrier
(
nfapi_nr_config_request_scf_t
*
cfg
,
NR_DL_FRAME_PARMS
*
fp
)
{
uint8_t
sco
=
0
;
uint8_t
sco
=
0
;
...
...
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