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
Michael Black
OpenXG-RAN
Commits
79e8653f
Commit
79e8653f
authored
Jul 15, 2016
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add read_F.c to openairinterface1/PHY/TOOLS
parent
47634381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
openair1/PHY/TOOLS/read_F.c
openair1/PHY/TOOLS/read_F.c
+24
-0
No files found.
openair1/PHY/TOOLS/read_F.c
0 → 100644
View file @
79e8653f
#include<stdio.h>
#include<stdint.h>
int
f_read
(
char
*
calibF_fname
,
int
nb_antM
,
int
nb_freq
,
int16_t
(
*
calibF_mtx
)[
nb_freq
*
2
]){
FILE
*
calibF_fd
;
int
i
,
j
,
l
,
calibF_e
;
calibF_fd
=
fopen
(
calibF_fname
,
"r"
);
if
(
calibF_fd
)
{
printf
(
"Loading Calibration matrix from %s
\n
"
,
calibF_fname
);
for
(
i
=
0
;
i
<
nb_antM
;
i
++
){
for
(
j
=
0
;
j
<
nb_freq
*
2
;
j
++
){
fscanf
(
calibF_fd
,
"%d"
,
&
calibF_e
);
calibF_mtx
[
i
][
j
]
=
(
int16_t
)
calibF_e
;
}
}
printf
(
"%d
\n
"
,(
int
)
calibF_mtx
[
0
][
0
]);
printf
(
"%d
\n
"
,(
int
)
calibF_mtx
[
1
][
599
]);
}
else
printf
(
"%s not found, running with defaults
\n
"
,
calibF_fname
);
}
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