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
f2e1a4a1
Commit
f2e1a4a1
authored
May 19, 2022
by
Sagar Parsawar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix for subdev selection
parent
68dd4fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+12
-7
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
f2e1a4a1
...
...
@@ -1324,6 +1324,18 @@ extern "C" {
openair0_cfg
[
0
].
iq_txshift
=
4
;
//shift
openair0_cfg
[
0
].
iq_rxrescale
=
15
;
//rescale iqs
if
(
openair0_cfg
[
0
].
tx_subdev
!=
NULL
){
LOG_I
(
HW
,
"openair0_cfg[0].tx_subdev == %s
\n
"
,
openair0_cfg
[
0
].
tx_subdev
);
tx_subdev
=
openair0_cfg
[
0
].
tx_subdev
;
s
->
usrp
->
set_tx_subdev_spec
(
tx_subdev
);
}
if
(
openair0_cfg
[
0
].
rx_subdev
!=
NULL
){
LOG_I
(
HW
,
"openair0_cfg[0].rx_subdev == %s
\n
"
,
openair0_cfg
[
0
].
rx_subdev
);
rx_subdev
=
openair0_cfg
[
0
].
rx_subdev
;
s
->
usrp
->
set_rx_subdev_spec
(
rx_subdev
);
}
for
(
int
i
=
0
;
i
<
((
int
)
s
->
usrp
->
get_rx_num_channels
());
i
++
)
{
if
(
i
<
openair0_cfg
[
0
].
rx_num_channels
)
{
s
->
usrp
->
set_rx_rate
(
openair0_cfg
[
0
].
sample_rate
,
i
+
choffset
);
...
...
@@ -1347,13 +1359,6 @@ extern "C" {
LOG_D
(
HW
,
"usrp->get_tx_num_channels() == %zd
\n
"
,
s
->
usrp
->
get_tx_num_channels
());
LOG_D
(
HW
,
"openair0_cfg[0].tx_num_channels == %d
\n
"
,
openair0_cfg
[
0
].
tx_num_channels
);
LOG_I
(
HW
,
"openair0_cfg[0].tx_subdev == %s
\n
"
,
openair0_cfg
[
0
].
tx_subdev
);
LOG_I
(
HW
,
"openair0_cfg[0].rx_subdev == %s
\n
"
,
openair0_cfg
[
0
].
rx_subdev
);
tx_subdev
=
openair0_cfg
[
0
].
tx_subdev
;
rx_subdev
=
openair0_cfg
[
0
].
rx_subdev
;
s
->
usrp
->
set_tx_subdev_spec
(
tx_subdev
);
s
->
usrp
->
set_rx_subdev_spec
(
rx_subdev
);
for
(
int
i
=
0
;
i
<
((
int
)
s
->
usrp
->
get_tx_num_channels
());
i
++
)
{
::
uhd
::
gain_range_t
gain_range_tx
=
s
->
usrp
->
get_tx_gain_range
(
i
);
...
...
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