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
ZhouShuya
OpenXG-RAN
Commits
76ea006b
Commit
76ea006b
authored
Jul 19, 2017
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming structures: DCI_ALLOC_NB_t and DCI_format_NB_t by DCI_ALLOC_NB_t and DCI_format_NB_IoT_t
parent
39566efc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
52 deletions
+57
-52
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.c
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.c
+1
-1
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
+1
-1
openair1/PHY/LTE_TRANSPORT/dci_tools_nb_iot.c
openair1/PHY/LTE_TRANSPORT/dci_tools_nb_iot.c
+2
-2
openair1/PHY/LTE_TRANSPORT/defs.h
openair1/PHY/LTE_TRANSPORT/defs.h
+3
-3
openair1/PHY/LTE_TRANSPORT/proto_nb_iot.h
openair1/PHY/LTE_TRANSPORT/proto_nb_iot.h
+49
-44
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+1
-1
No files found.
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.c
View file @
76ea006b
...
...
@@ -460,7 +460,7 @@ int dci_modulation_NB_IoT(int32_t **txdataF,
uint8_t
generate_dci_top_NB_IoT
(
NB_IoT_eNB_NPDCCH_t
*
npdcch
,
uint8_t
Num_dci
,
DCI_ALLOC_NB_t
*
dci_alloc
,
DCI_ALLOC_NB_
IoT_
t
*
dci_alloc
,
int16_t
amp
,
NB_IoT_DL_FRAME_PARMS
*
fp
,
int32_t
**
txdataF
,
...
...
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
View file @
76ea006b
...
...
@@ -47,7 +47,7 @@ typedef enum
DCIFormatN2
,
DCIFormatN2_Ind
,
DCIFormatN2_Pag
,
}
DCI_format_NB_t
;
}
DCI_format_NB_
IoT_
t
;
/// DCI Format Type 0 (180 kHz, 23 bits)
struct
DCIFormatN0
{
...
...
openair1/PHY/LTE_TRANSPORT/dci_tools_nb_iot.c
View file @
76ea006b
...
...
@@ -68,7 +68,7 @@ int generate_eNB_ulsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB,
eNB_rxtx_proc_t
*
proc
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_t
dci_format
,
DCI_format_NB_
IoT_
t
dci_format
,
uint8_t
UE_id
,
uint8_t
aggregation
,
uint8_t
npdcch_start_symbol
)
...
...
@@ -145,7 +145,7 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB,
uint8_t
subframe
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_t
dci_format
,
DCI_format_NB_
IoT_
t
dci_format
,
NB_IoT_eNB_NDLSCH_t
*
ndlsch
,
NB_IoT_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
aggregation
,
...
...
openair1/PHY/LTE_TRANSPORT/defs.h
View file @
76ea006b
...
...
@@ -867,10 +867,10 @@ typedef struct {
/// rnti
rnti_t
rnti
;
/// Format
DCI_format_NB_t
format
;
DCI_format_NB_
IoT_
t
format
;
/// DCI pdu
uint8_t
dci_pdu
[
8
];
}
DCI_ALLOC_NB_t
;
}
DCI_ALLOC_NB_
IoT_
t
;
typedef
struct
{
//delete the count for the DCI numbers,NUM_DCI_MAX should set to 2
...
...
@@ -879,7 +879,7 @@ typedef struct {
/// see FAPI/NFAPI specs Table 4-45
uint8_t
npdcch_start_symbol
;
uint8_t
Num_dci
;
DCI_ALLOC_NB_t
dci_alloc
[
2
]
;
DCI_ALLOC_NB_
IoT_
t
dci_alloc
[
2
]
;
}
DCI_PDU_NB
;
...
...
openair1/PHY/LTE_TRANSPORT/proto_nb_iot.h
View file @
76ea006b
...
...
@@ -37,68 +37,74 @@
//NPSS
int
generate_npss_NB_IoT
(
int32_t
**
txdataF
,
short
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
unsigned
short
symbol_offset
,
// symbol_offset should equal to 3 for NB-IoT
unsigned
short
slot_offset
,
unsigned
short
RB_IoT_ID
);
// new attribute (values are between 0.. Max_RB_number-1), it does not exist for LTE
short
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
unsigned
short
symbol_offset
,
// symbol_offset should equal to 3 for NB-IoT
unsigned
short
slot_offset
,
unsigned
short
RB_IoT_ID
);
// new attribute (values are between 0.. Max_RB_number-1), it does not exist for LTE
//NSSS
int
generate_sss_NB_IoT
(
int32_t
**
txdataF
,
int16_t
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint16_t
symbol_offset
,
// symbol_offset = 3 for NB-IoT
uint16_t
slot_offset
,
unsigned
short
frame_number
,
// new attribute (Get value from higher layer), it does not exist for LTE
unsigned
short
RB_IoT_ID
);
// new attribute (values are between 0.. Max_RB_number-1), it does not exist for LTE
int16_t
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint16_t
symbol_offset
,
// symbol_offset = 3 for NB-IoT
uint16_t
slot_offset
,
unsigned
short
frame_number
,
// new attribute (Get value from higher layer), it does not exist for LTE
unsigned
short
RB_IoT_ID
);
// new attribute (values are between 0.. Max_RB_number-1), it does not exist for LTE
//NRS
void
generate_pilots_NB_IoT
(
PHY_VARS_eNB
*
phy_vars_eNB
,
int32_t
**
txdataF
,
int16_t
amp
,
uint16_t
Ntti
,
// Ntti = 10
unsigned
short
RB_IoT_ID
,
// RB reserved for NB-IoT
unsigned
short
With_NSSS
);
// With_NSSS = 1; if the frame include a sub-Frame with NSSS signal
int32_t
**
txdataF
,
int16_t
amp
,
uint16_t
Ntti
,
// Ntti = 10
unsigned
short
RB_IoT_ID
,
// RB reserved for NB-IoT
unsigned
short
With_NSSS
);
// With_NSSS = 1; if the frame include a sub-Frame with NSSS signal
//NPBCH
int
allocate_npbch_REs_in_RB
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
txdataF
,
uint32_t
*
jj
,
uint32_t
symbol_offset
,
uint8_t
*
x0
,
uint8_t
pilots
,
int16_t
amp
,
unsigned
short
id_offset
,
uint32_t
*
re_allocated
);
int32_t
**
txdataF
,
uint32_t
*
jj
,
uint32_t
symbol_offset
,
uint8_t
*
x0
,
uint8_t
pilots
,
int16_t
amp
,
unsigned
short
id_offset
,
uint32_t
*
re_allocated
);
int
generate_npbch
(
NB_IoT_eNB_NPBCH_t
*
eNB_npbch
,
int32_t
**
txdataF
,
int
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
*
npbch_pdu
,
uint8_t
frame_mod64
,
unsigned
short
NB_IoT_RB_ID
);
int32_t
**
txdataF
,
int
amp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
*
npbch_pdu
,
uint8_t
frame_mod64
,
unsigned
short
NB_IoT_RB_ID
);
void
npbch_scrambling
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
*
npbch_e
,
uint32_t
length
);
uint8_t
*
npbch_e
,
uint32_t
length
);
// Functions below implement 36-211 and 36-212
/*Function to pack the DCI*/
// newly added function for NB-IoT , does not exist for LTE
void
add_dci_NB_IoT
(
DCI_PDU_NB
*
DCI_pdu
,
void
*
pdu
,
rnti_t
rnti
,
unsigned
char
dci_size_bytes
,
unsigned
char
aggregation
,
unsigned
char
dci_size_bits
,
unsigned
char
dci_fmt
,
uint8_t
npdcch_start_symbol
);
void
add_dci_NB_IoT
(
DCI_PDU_NB
*
DCI_pdu
,
void
*
pdu
,
rnti_t
rnti
,
unsigned
char
dci_size_bytes
,
unsigned
char
aggregation
,
unsigned
char
dci_size_bits
,
unsigned
char
dci_fmt
,
uint8_t
npdcch_start_symbol
);
/*Use the UL DCI Information to configure PHY and also Pack the DCI*/
int
generate_eNB_ulsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_t
dci_format
,
DCI_format_NB_
IoT_
t
dci_format
,
uint8_t
UE_id
,
uint8_t
aggregation
,
uint8_t
npdcch_start_symbol
);
...
...
@@ -109,22 +115,21 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB,
uint8_t
subframe
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_t
dci_format
,
DCI_format_NB_
IoT_
t
dci_format
,
NB_IoT_eNB_NDLSCH_t
*
ndlsch
,
NB_IoT_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
aggregation
,
uint8_t
npdcch_start_symbol
);
/*Function for DCI encoding, scrambling, modulation*/
uint8_t
generate_dci_top_NB_IoT
(
NB_IoT_eNB_NPDCCH_t
*
npdcch
,
uint8_t
Num_dci
,
DCI_ALLOC_NB_t
*
dci_alloc
,
int16_t
amp
,
NB_IoT_DL_FRAME_PARMS
*
fp
,
int32_t
**
txdataF
,
uint32_t
subframe
,
uint8_t
npdcch_start_symbol
);
uint8_t
generate_dci_top_NB_IoT
(
NB_IoT_eNB_NPDCCH_t
*
npdcch
,
uint8_t
Num_dci
,
DCI_ALLOC_NB_IoT_t
*
dci_alloc
,
int16_t
amp
,
NB_IoT_DL_FRAME_PARMS
*
fp
,
int32_t
**
txdataF
,
uint32_t
subframe
,
uint8_t
npdcch_start_symbol
);
...
...
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
View file @
76ea006b
...
...
@@ -487,7 +487,7 @@ void NB_generate_eNB_dlsch_params(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t * proc,nfapi
int
frame
=
proc
->
frame_tx
;
int
subframe
=
proc
->
subframe_tx
;
DCI_CONTENT
*
DCI_Content
;
DCI_format_NB_t
DCI_format
;
DCI_format_NB_
IoT_
t
DCI_format
;
NB_IoT_eNB_NDLSCH_t
*
ndlsch
;
NB_IoT_eNB_NPDCCH_t
*
npdcch
;
...
...
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