Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
8915eda4
Commit
8915eda4
authored
Aug 25, 2019
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed terminology from/to split
parent
ad9784ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
21 deletions
+16
-21
executables/main-fs6.c
executables/main-fs6.c
+16
-21
No files found.
executables/main-fs6.c
View file @
8915eda4
...
...
@@ -22,7 +22,7 @@
static
UDPsock_t
sockFS6
;
void
prach_eNB_
extrac
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
void
prach_eNB_
tospli
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
fs6_ul_t
*
header
=
(
fs6_ul_t
*
)
commonUDPdata
(
bufferZone
);
if
(
is_prach_subframe
(
&
eNB
->
frame_parms
,
eNB
->
proc
.
frame_prach
,
eNB
->
proc
.
subframe_prach
)
<=
0
)
...
...
@@ -77,7 +77,7 @@ void prach_eNB_extract(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *eNB) {
return
;
}
void
prach_eNB_
process
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
void
prach_eNB_
fromsplit
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
fs6_ul_t
*
header
=
(
fs6_ul_t
*
)
commonUDPdata
(
bufferZone
);
uint16_t
*
max_preamble
=
header
->
max_preamble
;
uint16_t
*
max_preamble_energy
=
header
->
max_preamble_energy
;
...
...
@@ -239,7 +239,7 @@ void sendFs6Ul(PHY_VARS_eNB *eNB, int UE_id, int harq_pid, int segmentID, int16_
hULUE
(
newUDPheader
)
->
segLen
=
dataLen
;
}
void
pusch_procedures_
extrac
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
)
{
void
pusch_procedures_
tospli
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
)
{
uint32_t
harq_pid
;
LTE_DL_FRAME_PARMS
*
fp
=&
eNB
->
frame_parms
;
const
int
subframe
=
proc
->
subframe_rx
;
...
...
@@ -260,11 +260,6 @@ void pusch_procedures_extract(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *eN
i
,
harq_pid
,
frame
,
subframe
,
i
,
ulsch
->
rnti
,
ulsch_harq
->
status
,
ulsch_harq
->
frame
,
ulsch_harq
->
subframe
,
ulsch_harq
->
status
,
ulsch_harq
->
handled
);
if
((
ulsch
)
&&
(
ulsch
->
rnti
>
0
)
&&
(
ulsch_harq
->
status
==
ACTIVE
))
LOG_E
(
PHY
,
"active ulsch harq
\n
"
);
if
((
ulsch
)
&&
(
ulsch
->
rnti
>
0
)
&&
(
ulsch_harq
->
status
==
ACTIVE
)
&&
...
...
@@ -318,7 +313,7 @@ void pusch_procedures_extract(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *eN
}
}
void
phy_procedures_eNB_uespec_RX_
extrac
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
)
{
void
phy_procedures_eNB_uespec_RX_
tospli
t
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
)
{
//RX processing for ue-specific resources (i
LTE_DL_FRAME_PARMS
*
fp
=
&
eNB
->
frame_parms
;
const
int
subframe
=
proc
->
subframe_rx
;
...
...
@@ -341,7 +336,7 @@ void phy_procedures_eNB_uespec_RX_extract(uint8_t *bufferZone, int bufSize, PHY_
uci_procedures
(
eNB
,
proc
);
if
(
NFAPI_MODE
==
NFAPI_MONOLITHIC
||
NFAPI_MODE
==
NFAPI_MODE_PNF
)
{
// If PNF or monolithic
pusch_procedures_
extrac
t
(
bufferZone
,
bufSize
,
eNB
,
proc
);
pusch_procedures_
tospli
t
(
bufferZone
,
bufSize
,
eNB
,
proc
);
}
lte_eNB_I0_measurements
(
eNB
,
subframe
,
0
,
eNB
->
first_run_I0_measurements
);
...
...
@@ -461,7 +456,7 @@ int ulsch_decoding_process(PHY_VARS_eNB *eNB, int UE_id, int llr8_flag) {
return
(
ret
);
}
void
pusch_procedures_
process
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
void
pusch_procedures_
fromsplit
(
uint8_t
*
bufferZone
,
int
bufSize
,
PHY_VARS_eNB
*
eNB
)
{
//LTE_DL_FRAME_PARMS *fp=&eNB->frame_parms;
const
int
subframe
=
eNB
->
proc
.
subframe_rx
;
const
int
frame
=
eNB
->
proc
.
frame_rx
;
...
...
@@ -657,10 +652,10 @@ void recvFs6Ul(uint8_t *bufferZone, int nbBlocks, PHY_VARS_eNB *eNB) {
}
}
void
phy_procedures_eNB_uespec_RX_
process
(
uint8_t
*
bufferZone
,
int
nbBlocks
,
PHY_VARS_eNB
*
eNB
)
{
void
phy_procedures_eNB_uespec_RX_
fromsplit
(
uint8_t
*
bufferZone
,
int
nbBlocks
,
PHY_VARS_eNB
*
eNB
)
{
// The configuration arrived in Dl, so we can extract the UL data
recvFs6Ul
(
bufferZone
,
nbBlocks
,
eNB
);
pusch_procedures_
process
(
bufferZone
,
nbBlocks
,
eNB
);
pusch_procedures_
fromsplit
(
bufferZone
,
nbBlocks
,
eNB
);
}
void
rcvFs6DL
(
uint8_t
*
bufferZone
,
int
nbBlocks
,
PHY_VARS_eNB
*
eNB
,
int
frame
,
int
subframe
)
{
...
...
@@ -744,7 +739,7 @@ void rcvFs6DL(uint8_t *bufferZone, int nbBlocks, PHY_VARS_eNB *eNB, int frame, i
}
}
void
phy_procedures_eNB_TX_
process
(
uint8_t
*
bufferZone
,
int
nbBlocks
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
int
do_meas
)
{
void
phy_procedures_eNB_TX_
fromsplit
(
uint8_t
*
bufferZone
,
int
nbBlocks
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
int
do_meas
)
{
LTE_DL_FRAME_PARMS
*
fp
=&
eNB
->
frame_parms
;
int
subframe
=
proc
->
subframe_tx
;
int
frame
=
proc
->
frame_tx
;
...
...
@@ -1001,7 +996,7 @@ void appendFs6DLUEcch(uint8_t *bufferZone, PHY_VARS_eNB *eNB, int frame, int sub
}
}
void
phy_procedures_eNB_TX_
extrac
t
(
uint8_t
*
bufferZone
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
int
do_meas
,
uint8_t
*
buf
,
int
bufSize
)
{
void
phy_procedures_eNB_TX_
tospli
t
(
uint8_t
*
bufferZone
,
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
int
do_meas
,
uint8_t
*
buf
,
int
bufSize
)
{
int
frame
=
proc
->
frame_tx
;
int
subframe
=
proc
->
subframe_tx
;
LTE_DL_FRAME_PARMS
*
fp
=&
eNB
->
frame_parms
;
...
...
@@ -1180,7 +1175,7 @@ void DL_du_fs6(RU_t *ru) {
}
setAllfromTS
(
hUDP
(
bufferZone
)
->
timestamp
-
sf_ahead
*
ru
->
eNB_list
[
i
]
->
frame_parms
.
samples_per_tti
);
phy_procedures_eNB_TX_
process
(
bufferZone
,
nb_blocks
,
ru
->
eNB_list
[
i
],
&
ru
->
eNB_list
[
i
]
->
proc
.
L1_proc
,
1
);
phy_procedures_eNB_TX_
fromsplit
(
bufferZone
,
nb_blocks
,
ru
->
eNB_list
[
i
],
&
ru
->
eNB_list
[
i
]
->
proc
.
L1_proc
,
1
);
}
else
LOG_E
(
PHY
,
"DL not received for subframe
\n
"
);
}
...
...
@@ -1210,10 +1205,10 @@ void UL_du_fs6(RU_t *ru, int frame, int subframe) {
initBufferZone
(
bufferZone
);
hUDP
(
bufferZone
)
->
timestamp
=
ru
->
proc
.
timestamp_rx
;
prach_eNB_
extrac
t
(
bufferZone
,
FS6_BUF_SIZE
,
eNB
);
prach_eNB_
tospli
t
(
bufferZone
,
FS6_BUF_SIZE
,
eNB
);
if
(
NFAPI_MODE
==
NFAPI_MONOLITHIC
||
NFAPI_MODE
==
NFAPI_MODE_PNF
)
{
phy_procedures_eNB_uespec_RX_
extrac
t
(
bufferZone
,
FS6_BUF_SIZE
,
eNB
,
&
proc
->
L1_proc
);
phy_procedures_eNB_uespec_RX_
tospli
t
(
bufferZone
,
FS6_BUF_SIZE
,
eNB
,
&
proc
->
L1_proc
);
}
if
(
hUDP
(
bufferZone
)
->
nbBlocks
==
0
)
{
...
...
@@ -1239,7 +1234,7 @@ void DL_cu_fs6(RU_t *ru) {
eNB
->
if_inst
->
UL_indication
(
&
eNB
->
UL_INFO
);
pthread_mutex_unlock
(
&
eNB
->
UL_INFO_mutex
);
initBufferZone
(
bufferZone
);
phy_procedures_eNB_TX_
extrac
t
(
bufferZone
,
eNB
,
&
proc
->
L1_proc
,
1
,
bufferZone
,
FS6_BUF_SIZE
);
phy_procedures_eNB_TX_
tospli
t
(
bufferZone
,
eNB
,
&
proc
->
L1_proc
,
1
,
bufferZone
,
FS6_BUF_SIZE
);
hUDP
(
bufferZone
)
->
timestamp
=
proc
->
L1_proc
.
timestamp_tx
;
if
(
hUDP
(
bufferZone
)
->
nbBlocks
==
0
)
{
...
...
@@ -1270,11 +1265,11 @@ void UL_cu_fs6(RU_t *ru, uint64_t *TS) {
setAllfromTS
(
hUDP
(
bufferZone
)
->
timestamp
);
PHY_VARS_eNB
*
eNB
=
RC
.
eNB
[
0
][
0
];
prach_eNB_
process
(
bufferZone
,
sizeof
(
bufferZone
),
eNB
);
prach_eNB_
fromsplit
(
bufferZone
,
sizeof
(
bufferZone
),
eNB
);
release_UE_in_freeList
(
eNB
->
Mod_id
);
if
(
NFAPI_MODE
==
NFAPI_MONOLITHIC
||
NFAPI_MODE
==
NFAPI_MODE_PNF
)
{
phy_procedures_eNB_uespec_RX_
process
(
bufferZone
,
nb_blocks
,
eNB
);
phy_procedures_eNB_uespec_RX_
fromsplit
(
bufferZone
,
nb_blocks
,
eNB
);
}
}
...
...
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