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
e8ea78dd
Commit
e8ea78dd
authored
Aug 14, 2017
by
rdoost
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deactivate stream first in iris close
parent
a668f1f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
+17
-15
No files found.
targets/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
View file @
e8ea78dd
...
...
@@ -88,12 +88,28 @@ static int trx_iris_start(openair0_device *device)
}
return
0
;
}
/*! \brief Stop Iris
* \param card refers to the hardware index to use
*/
int
trx_iris_stop
(
openair0_device
*
device
)
{
iris_state_t
*
s
=
(
iris_state_t
*
)
device
->
priv
;
int
r
;
for
(
r
=
0
;
r
<
s
->
device_num
;
r
++
)
{
s
->
iris
[
r
]
->
deactivateStream
(
s
->
txStream
[
r
]);
s
->
iris
[
r
]
->
deactivateStream
(
s
->
rxStream
[
r
]);
}
return
(
0
);
}
/*! \brief Terminate operation of the Iris lime transceiver -- free all associated resources
* \param device the hardware to use
*/
static
void
trx_iris_end
(
openair0_device
*
device
)
{
LOG_I
(
HW
,
"Closing Iris device.
\n
"
);
trx_iris_stop
(
device
);
iris_state_t
*
s
=
(
iris_state_t
*
)
device
->
priv
;
int
r
;
for
(
r
=
0
;
r
<
s
->
device_num
;
r
++
)
...
...
@@ -353,20 +369,6 @@ int trx_iris_set_gains(openair0_device* device,
return
(
0
);
}
/*! \brief Stop Iris
* \param card refers to the hardware index to use
*/
int
trx_iris_stop
(
openair0_device
*
device
)
{
iris_state_t
*
s
=
(
iris_state_t
*
)
device
->
priv
;
int
r
;
for
(
r
=
0
;
r
<
s
->
device_num
;
r
++
)
{
s
->
iris
[
r
]
->
deactivateStream
(
s
->
txStream
[
r
]);
s
->
iris
[
r
]
->
deactivateStream
(
s
->
rxStream
[
r
]);
}
return
(
0
);
}
/*! \brief Iris RX calibration table */
rx_gain_calib_table_t
calib_table_iris
[]
=
{
{
3500000000.0
,
83
},
...
...
@@ -469,7 +471,7 @@ extern "C" {
while
(
srl
!=
NULL
)
{
LOG_I
(
HW
,
"Attempting to open Iris device: %s
\n
"
,
srl
);
std
::
string
args
=
"driver=iris,serial="
+
std
::
string
(
srl
)
+
",remote:format=CS16"
;
std
::
string
args
=
"driver=iris,serial="
+
std
::
string
(
srl
);
s
->
iris
.
push_back
(
SoapySDR
::
Device
::
make
(
args
));
srl
=
strtok
(
NULL
,
","
);
}
...
...
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