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
canghaiwuhen
OpenXG-RAN
Commits
f822c17d
Commit
f822c17d
authored
Jun 13, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add if_inst as a global paramters
parent
87aff44c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
openair2/LAYER2/MAC/defs_nb_iot.h
openair2/LAYER2/MAC/defs_nb_iot.h
+1
-0
openair2/LAYER2/MAC/extern.h
openair2/LAYER2/MAC/extern.h
+4
-1
openair2/LAYER2/MAC/vars.h
openair2/LAYER2/MAC/vars.h
+1
-0
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
+5
-5
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+2
-2
No files found.
openair2/LAYER2/MAC/defs_nb_iot.h
View file @
f822c17d
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
#include "RACH-ConfigCommon-NB-r13.h"
#include "RACH-ConfigCommon-NB-r13.h"
#include "MasterInformationBlock-NB.h"
#include "MasterInformationBlock-NB.h"
#include "BCCH-BCH-Message-NB.h"
#include "BCCH-BCH-Message-NB.h"
#include "openair2/PHY_INTERFACE/IF_Module_nb_iot.h"
//#ifdef PHY_EMUL
//#ifdef PHY_EMUL
//#include "SIMULATION/PHY_EMULATION/impl_defs.h"
//#include "SIMULATION/PHY_EMULATION/impl_defs.h"
//#endif
//#endif
...
...
openair2/LAYER2/MAC/extern.h
View file @
f822c17d
...
@@ -45,7 +45,10 @@
...
@@ -45,7 +45,10 @@
#endif //PHY_EMUL
#endif //PHY_EMUL
#include "PHY_INTERFACE/defs.h"
#include "PHY_INTERFACE/defs.h"
#include "RRC/LITE/defs.h"
#include "RRC/LITE/defs.h"
#include "defs_nb_iot.h"
//NB-IoT
extern
IF_Module_t
*
if_inst
;
extern
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
];
extern
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
];
//extern uint32_t EBSR_Level[63];
//extern uint32_t EBSR_Level[63];
...
...
openair2/LAYER2/MAC/vars.h
View file @
f822c17d
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
//NB-IoT
//NB-IoT
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
IF_Module_t
*
if_inst
;
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
]
=
{
0
,
10
,
12
,
14
,
17
,
19
,
22
,
26
,
31
,
36
,
42
,
49
,
57
,
67
,
78
,
91
,
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
]
=
{
0
,
10
,
12
,
14
,
17
,
19
,
22
,
26
,
31
,
36
,
42
,
49
,
57
,
67
,
78
,
91
,
105
,
125
,
146
,
171
,
200
,
234
,
274
,
321
,
376
,
440
,
515
,
603
,
706
,
826
,
967
,
1132
,
105
,
125
,
146
,
171
,
200
,
234
,
274
,
321
,
376
,
440
,
515
,
603
,
706
,
826
,
967
,
1132
,
...
...
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
View file @
f822c17d
...
@@ -5,18 +5,18 @@
...
@@ -5,18 +5,18 @@
#include "LAYER2/MAC/proto_nb_iot.h"
#include "LAYER2/MAC/proto_nb_iot.h"
//called at initialization of
the PHY
//called at initialization of
L2
//TODO: define the input
//TODO: define the input
IF_Module_t
*
IF_Module_init_L
1
(
IF_Module_t
*
if_inst
)
//southbound IF-Module Interface
IF_Module_t
*
IF_Module_init_L
2
(
void
)
//southbound IF-Module Interface
{
{
//
fill the UL_IND_t??
//
register the IF Module to MAC
if_inst
->
UL_indication
=
UL_indication
;
if_inst
->
UL_indication
=
UL_indication
;
return
0
;
return
0
;
}
}
//called at initialization of L
2
//called at initialization of L
1
//TODO: define the input
//TODO: define the input
IF_Module_t
*
IF_Module_init_L
2
(
IF_Module_t
*
if_inst
)
//northbound IF-Module Interface
IF_Module_t
*
IF_Module_init_L
1
(
void
)
//northbound IF-Module Interface
{
{
//fill the Sched_Rsp_t
//fill the Sched_Rsp_t
//fill the PHY_Config_t -->already done in rrc_mac_config
//fill the PHY_Config_t -->already done in rrc_mac_config
...
...
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
View file @
f822c17d
...
@@ -331,8 +331,8 @@ typedef struct IF_Module_s{
...
@@ -331,8 +331,8 @@ typedef struct IF_Module_s{
//int IF_Module_init(IF_Module_t *if_inst);
//int IF_Module_init(IF_Module_t *if_inst);
IF_Module_t
*
IF_Module_init_L1
(
IF_Module_t
*
if_inst
);
IF_Module_t
*
IF_Module_init_L1
(
void
);
IF_Module_t
*
IF_Module_init_L2
(
IF_Module_t
*
if_inst
);
IF_Module_t
*
IF_Module_init_L2
(
void
);
#endif
#endif
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