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
常顺宇
OpenXG-RAN
Commits
960e8dc9
Commit
960e8dc9
authored
Jun 11, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexRAN: Calculate sfnsn such that diff 1s = 1000
parent
a90a7f35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+2
-11
openair2/ENB_APP/flexran_agent_ran_api.h
openair2/ENB_APP/flexran_agent_ran_api.h
+1
-1
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
960e8dc9
...
@@ -71,19 +71,10 @@ sub_frame_t flexran_get_current_subframe(mid_t mod_id)
...
@@ -71,19 +71,10 @@ sub_frame_t flexran_get_current_subframe(mid_t mod_id)
return
RC
.
mac
[
mod_id
]
->
subframe
;
return
RC
.
mac
[
mod_id
]
->
subframe
;
}
}
/* Why uint16_t, frame_t and sub_frame_t are defined as uint32_t? */
uint32_t
flexran_get_sfn_sf
(
mid_t
mod_id
)
uint16_t
flexran_get_sfn_sf
(
mid_t
mod_id
)
{
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
if
(
!
mac_is_present
(
mod_id
))
return
0
;
frame_t
frame
=
flexran_get_current_system_frame_num
(
mod_id
);
return
flexran_get_current_frame
(
mod_id
)
*
10
+
flexran_get_current_subframe
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
uint16_t
sfn_sf
,
frame_mask
,
sf_mask
;
frame_mask
=
(
1
<<
12
)
-
1
;
sf_mask
=
(
1
<<
4
)
-
1
;
sfn_sf
=
(
subframe
&
sf_mask
)
|
((
frame
&
frame_mask
)
<<
4
);
return
sfn_sf
;
}
}
uint16_t
flexran_get_future_sfn_sf
(
mid_t
mod_id
,
int
ahead_of_time
)
uint16_t
flexran_get_future_sfn_sf
(
mid_t
mod_id
,
int
ahead_of_time
)
...
...
openair2/ENB_APP/flexran_agent_ran_api.h
View file @
960e8dc9
...
@@ -63,7 +63,7 @@ sub_frame_t flexran_get_current_subframe(mid_t mod_id);
...
@@ -63,7 +63,7 @@ sub_frame_t flexran_get_current_subframe(mid_t mod_id);
/*Return the frame and subframe number in compact 16-bit format.
/*Return the frame and subframe number in compact 16-bit format.
Bits 0-3 subframe, rest for frame. Required by FlexRAN protocol*/
Bits 0-3 subframe, rest for frame. Required by FlexRAN protocol*/
uint
16
_t
flexran_get_sfn_sf
(
mid_t
mod_id
);
uint
32
_t
flexran_get_sfn_sf
(
mid_t
mod_id
);
/* Return a future frame and subframe number that is ahead_of_time
/* Return a future frame and subframe number that is ahead_of_time
subframes later in compact 16-bit format. Bits 0-3 subframe,
subframes later in compact 16-bit format. Bits 0-3 subframe,
...
...
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