diff options
author | mattprost <matt.prost@ni.com> | 2020-07-22 12:13:59 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-04 15:46:02 -0500 |
commit | d1799df5a43eb350a8d11f3b225a33254abb0401 (patch) | |
tree | c73c47a355ab3aa78f7930b0ba3863a9631ee24a /host/lib/usrp/dboard/db_ubx.cpp | |
parent | 18aeb2077b8c6a339f833fb53d90171a359175be (diff) | |
download | uhd-d1799df5a43eb350a8d11f3b225a33254abb0401.tar.gz uhd-d1799df5a43eb350a8d11f3b225a33254abb0401.tar.bz2 uhd-d1799df5a43eb350a8d11f3b225a33254abb0401.zip |
x300: change default dboard clock rate from 50 to 100 MHz
This sets the reference clock for X300 daughterboards (other than UBX)
to 100 MHz by default to improve RF performance.
Note: The UBX daughterboard requires a clock rate of no more than the
max pfd frequency (50 or 25 MHz depending on the hardware rev) in
order to maintain phase synchronization. If a UBX daughterboard is
present on the X300, the clock rate for all daughterboards will be set
to the pfd frequency by default. This is because of the limitation on
X300 that requires the daughterboards to use the same clock rate.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib/usrp/dboard/db_ubx.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_ubx.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/host/lib/usrp/dboard/db_ubx.cpp b/host/lib/usrp/dboard/db_ubx.cpp index 8ac96a2fe..733a4b8e2 100644 --- a/host/lib/usrp/dboard/db_ubx.cpp +++ b/host/lib/usrp/dboard/db_ubx.cpp @@ -7,6 +7,7 @@ /*********************************************************************** * Included Files and Libraries **********************************************************************/ +#include "db_ubx.hpp" #include <uhd/types/device_addr.hpp> #include <uhd/types/dict.hpp> #include <uhd/types/direction.hpp> @@ -30,6 +31,7 @@ using namespace uhd; using namespace uhd::usrp; +using namespace uhd::usrp::dboard::ubx; /*********************************************************************** * UBX Data Structures @@ -134,22 +136,6 @@ enum spi_dest_t { * UBX Constants **********************************************************************/ #define fMHz (1000000.0) -static const dboard_id_t UBX_PROTO_V3_TX_ID(0x73); -static const dboard_id_t UBX_PROTO_V3_RX_ID(0x74); -static const dboard_id_t UBX_PROTO_V4_TX_ID(0x75); -static const dboard_id_t UBX_PROTO_V4_RX_ID(0x76); -static const dboard_id_t UBX_V1_40MHZ_TX_ID(0x77); -static const dboard_id_t UBX_V1_40MHZ_RX_ID(0x78); -static const dboard_id_t UBX_V1_160MHZ_TX_ID(0x79); -static const dboard_id_t UBX_V1_160MHZ_RX_ID(0x7A); -static const dboard_id_t UBX_V2_40MHZ_TX_ID(0x7B); -static const dboard_id_t UBX_V2_40MHZ_RX_ID(0x7C); -static const dboard_id_t UBX_V2_160MHZ_TX_ID(0x7D); -static const dboard_id_t UBX_V2_160MHZ_RX_ID(0x7E); -static const dboard_id_t UBX_LP_160MHZ_TX_ID(0x0200); -static const dboard_id_t UBX_LP_160MHZ_RX_ID(0x0201); -static const dboard_id_t UBX_TDD_160MHZ_TX_ID(0x0202); -static const dboard_id_t UBX_TDD_160MHZ_RX_ID(0x0203); static const freq_range_t ubx_freq_range(10e6, 6.0e9); static const gain_range_t ubx_tx_gain_range(0, 31.5, double(0.5)); static const gain_range_t ubx_rx_gain_range(0, 31.5, double(0.5)); |