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
lizhongxiao
OpenXG-RAN
Commits
e0156a33
Commit
e0156a33
authored
Aug 14, 2017
by
rdoost
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix antenna prints
parent
e8ea78dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
+11
-11
No files found.
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
View file @
e0156a33
...
...
@@ -577,22 +577,22 @@ extern "C" {
for
(
i
=
0
;
i
<
openair0_cfg
[
0
].
rx_num_channels
;
i
++
)
{
if
(
i
<
s
->
iris
[
r
]
->
getNumChannels
(
SOAPY_SDR_RX
))
{
printf
(
"RX Channel %lu
\n
"
,
i
);
printf
(
"Actual RX sample rate: %fMSps..."
,
(
s
->
iris
[
r
]
->
getSampleRate
(
SOAPY_SDR_RX
,
i
)
/
1e6
)
);
printf
(
"Actual RX frequency: %fGHz..."
,
(
s
->
iris
[
r
]
->
getFrequency
(
SOAPY_SDR_RX
,
i
)
/
1e9
)
);
printf
(
"Actual RX gain: %f..."
,
(
s
->
iris
[
r
]
->
getGain
(
SOAPY_SDR_RX
,
i
))
);
printf
(
"Actual RX bandwidth: %fM..."
,
(
s
->
iris
[
r
]
->
getBandwidth
(
SOAPY_SDR_RX
,
i
)
/
1e6
)
);
printf
(
"Actual RX antenna: %s...
"
,
(
s
->
iris
[
r
]
->
getAntenna
(
SOAPY_SDR_RX
,
i
))
);
printf
(
"Actual RX sample rate: %fMSps...
\n
"
,
(
s
->
iris
[
r
]
->
getSampleRate
(
SOAPY_SDR_RX
,
i
)
/
1e6
)
);
printf
(
"Actual RX frequency: %fGHz...
\n
"
,
(
s
->
iris
[
r
]
->
getFrequency
(
SOAPY_SDR_RX
,
i
)
/
1e9
)
);
printf
(
"Actual RX gain: %f...
\n
"
,
(
s
->
iris
[
r
]
->
getGain
(
SOAPY_SDR_RX
,
i
))
);
printf
(
"Actual RX bandwidth: %fM...
\n
"
,
(
s
->
iris
[
r
]
->
getBandwidth
(
SOAPY_SDR_RX
,
i
)
/
1e6
)
);
printf
(
"Actual RX antenna: %s...
\n
"
,
(
s
->
iris
[
r
]
->
getAntenna
(
SOAPY_SDR_RX
,
i
).
c_str
(
))
);
}
}
for
(
i
=
0
;
i
<
openair0_cfg
[
0
].
tx_num_channels
;
i
++
)
{
if
(
i
<
s
->
iris
[
r
]
->
getNumChannels
(
SOAPY_SDR_TX
))
{
printf
(
"TX Channel %lu
\n
"
,
i
);
printf
(
"Actual TX sample rate: %fMSps..."
,
(
s
->
iris
[
r
]
->
getSampleRate
(
SOAPY_SDR_TX
,
i
)
/
1e6
)
);
printf
(
"Actual TX frequency: %fGHz..."
,
(
s
->
iris
[
r
]
->
getFrequency
(
SOAPY_SDR_TX
,
i
)
/
1e9
)
);
printf
(
"Actual TX gain: %f..."
,
(
s
->
iris
[
r
]
->
getGain
(
SOAPY_SDR_TX
,
i
))
);
printf
(
"Actual TX bandwidth: %fM..."
,
(
s
->
iris
[
r
]
->
getBandwidth
(
SOAPY_SDR_TX
,
i
)
/
1e6
)
);
printf
(
"Actual TX antenna: %s...
"
,
(
s
->
iris
[
r
]
->
getAntenna
(
SOAPY_SDR_TX
,
i
))
);
printf
(
"Actual TX sample rate: %fMSps...
\n
"
,
(
s
->
iris
[
r
]
->
getSampleRate
(
SOAPY_SDR_TX
,
i
)
/
1e6
)
);
printf
(
"Actual TX frequency: %fGHz...
\n
"
,
(
s
->
iris
[
r
]
->
getFrequency
(
SOAPY_SDR_TX
,
i
)
/
1e9
)
);
printf
(
"Actual TX gain: %f...
\n
"
,
(
s
->
iris
[
r
]
->
getGain
(
SOAPY_SDR_TX
,
i
))
);
printf
(
"Actual TX bandwidth: %fM...
\n
"
,
(
s
->
iris
[
r
]
->
getBandwidth
(
SOAPY_SDR_TX
,
i
)
/
1e6
)
);
printf
(
"Actual TX antenna: %s...
\n
"
,
(
s
->
iris
[
r
]
->
getAntenna
(
SOAPY_SDR_TX
,
i
).
c_str
(
))
);
}
}
}
...
...
@@ -601,7 +601,7 @@ extern "C" {
s
->
iris
[
r
]
->
setHardwareTime
(
0
,
"TRIGGER"
);
s
->
iris
[
0
]
->
writeSetting
(
"TRIGGER_GEN"
,
""
);
for
(
r
=
0
;
r
<
s
->
device_num
;
r
++
)
printf
(
"Device timestamp: %f..."
,
(
s
->
iris
[
r
]
->
getHardwareTime
(
"TRIG"
)
/
1e9
)
);
printf
(
"Device timestamp: %f...
\n
"
,
(
s
->
iris
[
r
]
->
getHardwareTime
(
"TRIG"
)
/
1e9
)
);
device
->
priv
=
s
;
device
->
trx_start_func
=
trx_iris_start
;
...
...
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