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
wangjie
OpenXG-RAN
Commits
5f0e15a4
Commit
5f0e15a4
authored
Jul 07, 2016
by
Sandeep Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save for switching pc
parent
9cbf5819
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
openair1/PHY/LTE_TRANSPORT/if4_tools.c
openair1/PHY/LTE_TRANSPORT/if4_tools.c
+8
-8
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+15
-0
No files found.
openair1/PHY/LTE_TRANSPORT/if4_tools.c
View file @
5f0e15a4
...
...
@@ -210,8 +210,11 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
*
subframe
=
((
packet_header
->
frame_status
)
>>
22
)
&
0x000f
;
if
(
*
packet_type
==
IF4_PDLFFT
)
{
// Find and return symbol_number
*
symbol_number
=
((
packet_header
->
frame_status
)
>>
26
)
&
0x000f
;
// Calculate from received packet
slotoffsetF
=
(
*
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
slotoffsetF
=
(
*
s
ymbol_number
)
*
(
fp
->
ofdm_symbol_size
)
+
(
*
s
ubframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
;
// Do decompression of the two parts and generate txdataF
...
...
@@ -222,13 +225,13 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
txdataF
[
0
][
slotoffsetF
+
element_id
]
=
alaw2lin
[
(
data_block
[
element_id
+
db_halflength
]
&
0xff
)
];
txdataF
[
0
][
slotoffsetF
+
element_id
]
|=
alaw2lin
[
(
data_block
[
element_id
+
db_halflength
]
>>
8
)
]
<<
16
;
}
}
else
if
(
*
packet_type
==
IF4_PULFFT
)
{
// Find and return symbol_number
*
symbol_number
=
((
packet_header
->
frame_status
)
>>
26
)
&
0x000f
;
}
else
if
(
*
packet_type
==
IF4_PULFFT
)
{
// Calculate from received packet
slotoffsetF
=
(
*
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
slotoffsetF
=
(
*
s
ymbol_number
)
*
(
fp
->
ofdm_symbol_size
)
+
(
*
s
ubframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
;
// Do decompression of the two parts and generate rxdataF
...
...
@@ -240,9 +243,6 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
rxdataF
[
0
][
slotoffsetF
+
element_id
]
|=
alaw2lin
[
(
data_block
[
element_id
+
db_halflength
]
>>
8
)
]
<<
16
;
}
// Find and return symbol_number
*
symbol_number
=
((
packet_header
->
frame_status
)
>>
26
)
&
0x000f
;
}
else
if
(
*
packet_type
==
IF4_PRACH
)
{
// FIX: hard coded prach samples length
db_fulllength
=
839
*
2
;
...
...
targets/RT/USER/lte-enb.c
View file @
5f0e15a4
...
...
@@ -501,6 +501,14 @@ static void* eNB_thread_rxtx( void* param ) {
do
{
recv_IF4
(
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
],
&
proc
->
frame_tx
,
&
proc
->
subframe_tx
,
&
packet_type
,
&
symbol_number
);
}
while
(
symbol_number
<
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
frame_parms
.
symbols_per_tti
-
1
);
if
(
proc
->
subframe_tx
==
0
&&
proc
->
frame_tx
==
0
)
{
write_output
(
"eNBtxsigF.m"
,
"txF"
,
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
common_vars
.
txdataF
[
0
][
0
],
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
frame_parms
.
symbols_per_tti
*
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
frame_parms
.
ofdm_symbol_size
,
1
,
1
);
exit
(
1
);
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4
,
0
);
}
else
if
(
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
node_function
==
NGFI_RRU_IF5
)
{
...
...
@@ -570,6 +578,13 @@ static void* eNB_thread_rxtx( void* param ) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4
,
1
);
send_IF4
(
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
],
proc
->
frame_tx
,
proc
->
subframe_tx
,
IF4_PDLFFT
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4
,
0
);
if
(
proc
->
subframe_tx
==
0
&&
proc
->
frame_tx
==
0
)
{
write_output
(
"fr_bf_comp.m"
,
"txF"
,
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
common_vars
.
txdataF
[
0
][
0
],
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
frame_parms
.
symbols_per_tti
*
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
]
->
frame_parms
.
ofdm_symbol_size
,
1
,
1
);
exit
(
1
);
}
}
...
...
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