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
wangwenhui
OpenXG-RAN
Commits
9ff4dabc
Commit
9ff4dabc
authored
Jun 22, 2018
by
lfarizav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the frequency analysis for dlsim
parent
7d2d816f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
244 additions
and
62 deletions
+244
-62
openair1/PHY/TOOLS/defs.h
openair1/PHY/TOOLS/defs.h
+1
-0
openair1/PHY/TOOLS/file_output.c
openair1/PHY/TOOLS/file_output.c
+20
-0
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+196
-34
targets/SIMU/USER/channel_sim.c
targets/SIMU/USER/channel_sim.c
+27
-28
No files found.
openair1/PHY/TOOLS/defs.h
View file @
9ff4dabc
...
...
@@ -297,6 +297,7 @@ void bit8_rxdemux(int32_t length,int32_t offset);
@param format data format (0 = real 16-bit, 1 = complex 16-bit,2 real 32-bit, 3 complex 32-bit,4 = real 8-bit, 5 = complex 8-bit)
*/
int32_t
write_output
(
const
char
*
fname
,
const
char
*
vname
,
void
*
data
,
int
length
,
int
dec
,
char
format
);
int32_t
write_output_chFf
(
const
char
*
fname
,
const
char
*
vname
,
float
*
data1
,
float
*
data2
,
int
length
,
int
dec
,
char
format
);
#endif
void
Zero_Buffer
(
void
*
,
uint32_t
);
...
...
openair1/PHY/TOOLS/file_output.c
View file @
9ff4dabc
...
...
@@ -190,4 +190,24 @@ int write_output(const char *fname,const char *vname,void *data,int length,int d
return
0
;
}
int
write_output_chFf
(
const
char
*
fname
,
const
char
*
vname
,
float
*
data1
,
float
*
data2
,
int
length
,
int
dec
)
{
FILE
*
fp
=
NULL
;
int
i
;
printf
(
"Writing %d to %s
\n
"
,
length
,
fname
);
if
(
fp
==
NULL
)
{
printf
(
"[OPENAIR][FILE OUTPUT] Cannot open file %s
\n
"
,
fname
);
return
(
-
1
);
}
for
(
i
=
0
;
i
<
length
;
i
++
)
{
fprintf
(
fp
,
"%g + j*(%g)
\n
"
,
data1
[
i
],
data2
[
i
]);
}
return
0
;
}
#endif // USER_MODE
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
9ff4dabc
This diff is collapsed.
Click to expand it.
targets/SIMU/USER/channel_sim.c
View file @
9ff4dabc
This diff is collapsed.
Click to expand it.
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