Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
99cf3b65
Commit
99cf3b65
authored
9 years ago
by
Xenofon Foukas
Browse files
Options
Downloads
Patches
Plain Diff
Added functions to get the current frame and subframe
parent
f2f0e68f
No related branches found
No related tags found
1 merge request
!47
Feature 68 enb agent
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/ENB_APP/enb_agent_common.c
+12
-0
12 additions, 0 deletions
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.h
+4
-0
4 additions, 0 deletions
openair2/ENB_APP/enb_agent_common.h
with
16 additions
and
0 deletions
openair2/ENB_APP/enb_agent_common.c
+
12
−
0
View file @
99cf3b65
...
@@ -282,6 +282,18 @@ int get_current_time_ms (mid_t mod_id, int subframe_flag){
...
@@ -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
){
int
get_num_ues
(
mid_t
mod_id
){
return
((
UE_list_t
*
)
enb_ue
[
mod_id
])
->
num_UEs
;
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
+
4
−
0
View file @
99cf3b65
...
@@ -104,6 +104,10 @@ void set_enb_vars(mid_t mod_id, ran_name_t ran);
...
@@ -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_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_num_ues
(
mid_t
mod_id
);
int
get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
);
int
get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment