diff options
author | Sugandha Gupta <sugandha.gupta@ettus.com> | 2018-08-03 18:59:24 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-08-09 17:39:14 -0700 |
commit | 885d5a8acc86162d4c728814d6b4f96686404684 (patch) | |
tree | 6bbf6d5024e1d3c765d36266b4e3feb61168aecc /host/lib/usrp/dboard/neon/neon_bands.cpp | |
parent | 4683f0fa1886e3d53749965471ce419d42f04fd2 (diff) | |
download | uhd-885d5a8acc86162d4c728814d6b4f96686404684.tar.gz uhd-885d5a8acc86162d4c728814d6b4f96686404684.tar.bz2 uhd-885d5a8acc86162d4c728814d6b4f96686404684.zip |
e320: Fix tx/rx atr - antenna and frequency settings
- Change RX/TX min/max frequency according to AD9361 datasheet
- Fix set_atr_bits to change with rx/tx frequency and antenna independently
- Make AMP switching active high
Diffstat (limited to 'host/lib/usrp/dboard/neon/neon_bands.cpp')
-rw-r--r-- | host/lib/usrp/dboard/neon/neon_bands.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard/neon/neon_bands.cpp b/host/lib/usrp/dboard/neon/neon_bands.cpp index 3b0ab2ca1..25aa0a181 100644 --- a/host/lib/usrp/dboard/neon/neon_bands.cpp +++ b/host/lib/usrp/dboard/neon/neon_bands.cpp @@ -101,7 +101,7 @@ neon_radio_ctrl_impl::rx_band neon_radio_ctrl_impl::_map_freq_to_rx_band(const double freq) { neon_radio_ctrl_impl::rx_band band; - if (fp_compare_epsilon<double>(freq) < AD9361_MIN_FREQ) { + if (fp_compare_epsilon<double>(freq) < AD9361_RX_MIN_FREQ) { band = rx_band::INVALID_BAND; } else if (fp_compare_epsilon<double>(freq) < NEON_RX_LB_BAND3_MIN_FREQ) { band = rx_band::LB_B2; @@ -115,7 +115,7 @@ neon_radio_ctrl_impl::_map_freq_to_rx_band(const double freq) { band = rx_band::LB_B6; } else if (fp_compare_epsilon<double>(freq) < NEON_RX_HB_MIN_FREQ) { band = rx_band::LB_B7; - } else if (fp_compare_epsilon<double>(freq) <= AD9361_MAX_FREQ) { + } else if (fp_compare_epsilon<double>(freq) <= AD9361_RX_MAX_FREQ) { band = rx_band::HB; } else { band = rx_band::INVALID_BAND; @@ -128,7 +128,7 @@ neon_radio_ctrl_impl::tx_band neon_radio_ctrl_impl::_map_freq_to_tx_band(const double freq) { neon_radio_ctrl_impl::tx_band band; - if (fp_compare_epsilon<double>(freq) < AD9361_MIN_FREQ) { + if (fp_compare_epsilon<double>(freq) < AD9361_TX_MIN_FREQ) { band = tx_band::INVALID_BAND; } else if (fp_compare_epsilon<double>(freq) < NEON_TX_LB_160_MIN_FREQ) { band = tx_band::LB_80; @@ -146,7 +146,7 @@ neon_radio_ctrl_impl::_map_freq_to_tx_band(const double freq) { band = tx_band::LB_1700; } else if (fp_compare_epsilon<double>(freq) < NEON_TX_HB_MIN_FREQ) { band = tx_band::LB_2750; - } else if (fp_compare_epsilon<double>(freq) <= AD9361_MAX_FREQ) { + } else if (fp_compare_epsilon<double>(freq) <= AD9361_TX_MAX_FREQ) { band = tx_band::HB; } else { band = tx_band::INVALID_BAND; |