Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
4996f985
Commit
4996f985
authored
8 years ago
by
Raymond Knopp
Browse files
Options
Downloads
Patches
Plain Diff
first draft of the send_if function
parent
3bb81c07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/PHY/TOOLS/if4tools.c
+47
-0
47 additions, 0 deletions
openair1/PHY/TOOLS/if4tools.c
with
47 additions
and
0 deletions
openair1/PHY/TOOLS/if4tools.c
0 → 100644
+
47
−
0
View file @
4996f985
/*
typedef struct data_block_type {
} data_block;
*/
/*
void allocate_data_block(long *data_block ,int length){
data_block = malloc(length*sizeof(long));
}
*/
void
send_IF4
(
PHY_VARS_eNB
eNB
,
int
subframe
){
eNB_proc_t
*
proc
=
&
eNB
->
proc
;
//int frame=proc->frame_tx;
//int subframe=proc->subframe_tx;
LTE_DL_FRAME_PARMS
*
fp
=&
eNB
->
frame_parms
;
int
i
,
j
;
float
*
data_block
=
malloc
(
length
*
sizeof
(
long
));
// find number of consecutive non zero in values in symbol
// NrOfNonZeroValues
// how many values does the atan function output?
for
(
i
=
0
;
i
<=
fp
->
symbols_per_tti
;
i
++
){
for
(
j
=
0
;
j
<
NrOfNonZeroValues
;
j
=
j
+
2
){
symbol
=
eNB
->
common_vars
.
txdataF
[
0
][
0
/*antenna number*/
][
subframe
*
fp
->
ofdm_symbol_size
*
(
fp
->
symbols_per_tti
)]
data_block
[
j
]
=
Atan
(
symbol
[
fp
->
ofmd_symbol_size
-
NrOfNonZeroValues
+
j
-
1
])
<<
16
+
Atan
(
symbol
[
fp
->
ofmd_symbol_size
-
NrOfNonZeroValues
+
j
]);
data_block
[
j
+
NrOfNonZeroValues
]
=
Atan
(
subframe
[
i
][
j
+
1
])
<<
16
+
Atan
(
subframe
[
i
][
j
+
2
]);
// use memset?
}
}
/*
memset(&eNB->common_vars.txdataF[0][aa][subframe*fp->ofdm_symbol_size*(fp->symbols_per_tti)],
0,fp->ofdm_symbol_size*(fp->symbols_per_tti)*sizeof(int32_t));
}
*/
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment