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
b7caab05
Commit
b7caab05
authored
Sep 24, 2019
by
chenhsunyang0922
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error in MAC/defs_NB_IoT.h
parent
eca9fdc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
openair1/PHY/NBIoT_TRANSPORT/ulsch_decoding_NB_IoT.c
openair1/PHY/NBIoT_TRANSPORT/ulsch_decoding_NB_IoT.c
+2
-2
openair2/LAYER2/MAC/defs_NB_IoT.h
openair2/LAYER2/MAC/defs_NB_IoT.h
+20
-5
No files found.
openair1/PHY/NBIoT_TRANSPORT/ulsch_decoding_NB_IoT.c
View file @
b7caab05
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
#include "UTIL/OCG/OCG_extern.h"
#include "UTIL/OCG/OCG_extern.h"
#endif
#endif
*/
*/
#include "
UTIL
/LOG/vcd_signal_dumper.h"
#include "
common/utils
/LOG/vcd_signal_dumper.h"
//#define DEBUG_ULSCH_DECODING
//#define DEBUG_ULSCH_DECODING
...
@@ -921,7 +921,7 @@ int ulsch_decoding_data_2thread(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr
...
@@ -921,7 +921,7 @@ int ulsch_decoding_data_2thread(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr
// NB_IoT: functions in ulsch_decoding_data_NB_IoT must be defined
// NB_IoT: functions in ulsch_decoding_data_NB_IoT must be defined
int
ulsch_decoding_data_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
int
UE_id
,
int
harq_pid
,
int
llr8_flag
)
{
int
ulsch_decoding_data_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
UE_id
,
int
harq_pid
,
int
llr8_flag
)
{
unsigned
int
r
,
r_offset
=
0
,
Kr
,
Kr_bytes
,
iind
;
unsigned
int
r
,
r_offset
=
0
,
Kr
,
Kr_bytes
,
iind
;
uint8_t
crc_type
;
uint8_t
crc_type
;
...
...
openair2/LAYER2/MAC/defs_NB_IoT.h
View file @
b7caab05
...
@@ -100,7 +100,7 @@ typedef enum{
...
@@ -100,7 +100,7 @@ typedef enum{
DL
DL
}
message_direction_t
;
}
message_direction_t
;
#define MAX_
MAX_MOBILES_PER_ENB
_NB_IoT 20
#define MAX_
NUMBER_OF_UE_MAX
_NB_IoT 20
#define SCH_PAYLOAD_SIZE_MAX_NB_IoT 320
#define SCH_PAYLOAD_SIZE_MAX_NB_IoT 320
#define MAX_NUMBER_OF_SIBs_NB_IoT 16
#define MAX_NUMBER_OF_SIBs_NB_IoT 16
...
@@ -330,9 +330,9 @@ typedef struct{
...
@@ -330,9 +330,9 @@ typedef struct{
typedef
struct
{
typedef
struct
{
/// DCI template and MAC connection parameters for UEs
/// DCI template and MAC connection parameters for UEs
UE_TEMPLATE_NB_IoT
UE_template_NB_IoT
[
MAX_
MAX_MOBILES_PER_ENB
_NB_IoT
];
UE_TEMPLATE_NB_IoT
UE_template_NB_IoT
[
MAX_
NUMBER_OF_UE_MAX
_NB_IoT
];
UE_SCHED_CTRL_NB_IoT_t
UE_sched_ctrl_NB_IoT
[
MAX_
MAX_MOBILES_PER_ENB
_NB_IoT
];
UE_SCHED_CTRL_NB_IoT_t
UE_sched_ctrl_NB_IoT
[
MAX_
NUMBER_OF_UE_MAX
_NB_IoT
];
/// NPDCCH Period and searching space info
/// NPDCCH Period and searching space info
NPDCCH_config_dedicated_NB_IoT_t
NPDCCH_config_dedicated
;
NPDCCH_config_dedicated_NB_IoT_t
NPDCCH_config_dedicated
;
//int next[MAX_MAX_MOBILES_PER_ENB_NB_IoT];
//int next[MAX_MAX_MOBILES_PER_ENB_NB_IoT];
...
@@ -359,7 +359,7 @@ typedef struct{
...
@@ -359,7 +359,7 @@ typedef struct{
// flag to indicate scheduling type1 NPDCCH CSS with different CE level
// flag to indicate scheduling type1 NPDCCH CSS with different CE level
uint8_t
flag_type1_css
[
3
];
uint8_t
flag_type1_css
[
3
];
// flag to indicate scheduling NPDCCH USS with UE list
// flag to indicate scheduling NPDCCH USS with UE list
uint8_t
flag_uss
[
MAX_
MAX_MOBILES_PER_ENB
_NB_IoT
];
uint8_t
flag_uss
[
MAX_
NUMBER_OF_UE_MAX
_NB_IoT
];
// flag to indicate scheduling sib1/MIB
// flag to indicate scheduling sib1/MIB
uint8_t
flag_fix_scheduling
;
uint8_t
flag_fix_scheduling
;
// number of the type2 css to schedule in this period
// number of the type2 css to schedule in this period
...
@@ -526,6 +526,19 @@ typedef struct RA_template_list_s{
...
@@ -526,6 +526,19 @@ typedef struct RA_template_list_s{
RA_TEMPLATE_NB_IoT
*
tail
;
RA_TEMPLATE_NB_IoT
*
tail
;
}
RA_template_list_t
;
}
RA_template_list_t
;
/*36331 NPDCCH-ConfigDedicated-NB_IoT*/
typedef
struct
{
//npdcch-NumRepetitions-r13
uint32_t
R_max
;
//npdcch-StartSF-CSS-r13
double
G
;
//npdcch-Offset-USS-r13
double
a_offset
;
//NPDCCH period
uint32_t
T
;
//Starting subfrane of Search Space which is mod T
uint32_t
ss_start_css
;
}
NPDCCH_config_common_NB_IoT_t
;
/*! \brief top level eNB MAC structure */
/*! \brief top level eNB MAC structure */
typedef
struct
eNB_MAC_INST_NB_IoT_s
{
typedef
struct
eNB_MAC_INST_NB_IoT_s
{
...
@@ -548,7 +561,7 @@ typedef struct eNB_MAC_INST_NB_IoT_s {
...
@@ -548,7 +561,7 @@ typedef struct eNB_MAC_INST_NB_IoT_s {
RA_template_list_t
RA_msg3_list
;
RA_template_list_t
RA_msg3_list
;
RA_template_list_t
RA_msg4_list
;
RA_template_list_t
RA_msg4_list
;
RA_TEMPLATE_NB_IoT
RA_template
[
MAX_
MAX_MOBILES_PER_ENB
_NB_IoT
];
RA_TEMPLATE_NB_IoT
RA_template
[
MAX_
NUMBER_OF_UE_MAX
_NB_IoT
];
//int32_t last_tx_subframe;
//int32_t last_tx_subframe;
...
@@ -571,6 +584,8 @@ typedef struct eNB_MAC_INST_NB_IoT_s {
...
@@ -571,6 +584,8 @@ typedef struct eNB_MAC_INST_NB_IoT_s {
uint32_t
schedule_subframe_DL
;
uint32_t
schedule_subframe_DL
;
uint32_t
schedule_subframe_UL
;
uint32_t
schedule_subframe_UL
;
NPDCCH_config_common_NB_IoT_t
npdcch_config_common
[
3
];
rrc_config_NB_IoT_t
rrc_config
;
rrc_config_NB_IoT_t
rrc_config
;
nfapi_config_request_t
config
;
nfapi_config_request_t
config
;
...
...
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