diff options
author | mattprost <matt.prost@ni.com> | 2022-02-24 11:45:49 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-03 14:02:04 -0600 |
commit | 08ab1925be4bccf47ca10b121a076b350bc8e79e (patch) | |
tree | a9f37f71cc85e223a629f75910ad1c3a061a11da /host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp | |
parent | 60ca903776c5e6c676a52551f45a8a09d2dfe374 (diff) | |
download | uhd-08ab1925be4bccf47ca10b121a076b350bc8e79e.tar.gz uhd-08ab1925be4bccf47ca10b121a076b350bc8e79e.tar.bz2 uhd-08ab1925be4bccf47ca10b121a076b350bc8e79e.zip |
N310: Deactivate frontend components on radio shutdown
Make sure no active components are connected to the TX frontend during
next boot. This avoids configurations that could generate unwanted tones
during operations such as the Mykonos init cals.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp index 637d85d49..a2de485e3 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_control.cpp @@ -129,6 +129,12 @@ magnesium_radio_control_impl::magnesium_radio_control_impl(make_args_ptr make_ar _init_prop_tree(); } +void magnesium_radio_control_impl::deinit() +{ + RFNOC_LOG_TRACE("magnesium_radio_control_impl::deinit()"); + _reset_tx_frontend(magnesium_cpld_ctrl::BOTH); +} + magnesium_radio_control_impl::~magnesium_radio_control_impl() { RFNOC_LOG_TRACE("magnesium_radio_control_impl::dtor() "); |