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
wangwenhui
OpenXG-RAN
Commits
99cf3b65
Commit
99cf3b65
authored
9 years ago
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added functions to get the current frame and subframe
parent
f2f0e68f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+12
-0
openair2/ENB_APP/enb_agent_common.h
openair2/ENB_APP/enb_agent_common.h
+4
-0
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
99cf3b65
...
...
@@ -282,6 +282,18 @@ int get_current_time_ms (mid_t mod_id, int subframe_flag){
}
int
get_current_frame
(
mid_t
mod_id
)
{
return
((
eNB_MAC_INST
*
)
enb
[
mod_id
])
->
frame
;
}
int
get_current_subframe
(
mid_t
mod_id
)
{
return
((
eNB_MAC_INST
*
)
enb
[
mod_id
])
->
subframe
;
}
int
get_num_ues
(
mid_t
mod_id
){
return
((
UE_list_t
*
)
enb_ue
[
mod_id
])
->
num_UEs
;
...
...
This diff is collapsed.
Click to expand it.
openair2/ENB_APP/enb_agent_common.h
View file @
99cf3b65
...
...
@@ -104,6 +104,10 @@ void set_enb_vars(mid_t mod_id, ran_name_t ran);
int
get_current_time_ms
(
mid_t
mod_id
,
int
subframe_flag
);
int
get_current_frame
(
mid_t
mod_id
);
int
get_current_subframe
(
mid_t
mod_id
);
int
get_num_ues
(
mid_t
mod_id
);
int
get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
);
...
...
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