aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_ubx.cpp
Commit message (Collapse)AuthorAgeFilesLines
* x300: change default dboard clock rate from 50 to 100 MHzmattprost2020-08-041-16/+2
| | | | | | | | | | | | | | 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>
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-424/+424
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* uhd: Replace all occurrences of boost::bind with std::bindMartin Braun2019-11-261-30/+30
| | | | | | | | | | | | | | | | | | | | | Note: Replacing everything with a lambda would be even better, but that can't be easily scripted so we'll do this as a first step to reduce the Boost footprint. This also removes occurences of #include <boost/bind.hpp>, and makes sure all usages of std::bind have an #include <functional>. clang-format wasn't always applied to minimize the changeset in this commit, however, it was applied to the blocks of #includes. Due to conflicts with other Boost libraries, the placeholders _1, _2, etc. could not be directly used, but had to be explicitly called out (as std::placeholders::_1, etc.). This makes the use of std::bind even uglier, which serves as another reminder that using std::bind (and even more so, boost::bind) should be avoided. nirio/rpc/rpc_client.cpp still contains a reference to boost::bind. It was not possible to remove it by simply doing a search and replace, so it will be removed in a separate commit.
* uhd: Replace usage of boost smart pointers with C++11 counterpartsMartin Braun2019-11-261-5/+5
| | | | | | | | | | | | | | | | | | | This removes the following Boost constructs: - boost::shared_ptr, boost::weak_ptr - boost::enable_shared_from_this - boost::static_pointer_cast, boost::dynamic_pointer_cast The appropriate includes were also removed. All C++11 versions of these require #include <memory>. Note that the stdlib and Boost versions have the exact same syntax, they only differ in the namespace (boost vs. std). The modifications were all done using sed, with the exception of boost::scoped_ptr, which was replaced by std::unique_ptr. References to boost::smart_ptr were also removed. boost::intrusive_ptr is not removed in this commit, since it does not have a 1:1 mapping to a C++11 construct.
* ubx: add temperature compensation modeMark Meserve2019-06-121-0/+41
| | | | | | | - This mode defaults to "disabled" (no change from current behavior) - Enabling this mode fixes some instances where the MAX287x would fail to lock when in integer-n mode - Enabling this mode increases the maximum lock time to up to 100ms
* uhd: skip formatting misc arrays, maps, etc.Brent Stapleton2019-01-161-0/+2
| | | | | | Various data structures are nicely formatted to be human-readable. clang-format makes these structures harder to read, so we can skip formatting these sections.
* UBX: Add support for phase synchronization at LTE clock ratesMichael West2018-07-171-12/+18
|
* lib: Purge use of boost::assign, except for uhd::dictMartin Braun2018-05-021-9/+8
| | | | | | | Replaced with initialization lists. Note: uhd::dict does not work with initializer lists without making changes to said data structure. This commit has no functional changes, so keeping the boost::assigns for uhd::dict.
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-301-2/+3
| | | | Replace with std::this_thread::sleep_for().
* UBX: Change antenna functions to coercers on antenna/value propertiesmichael-west2018-03-301-4/+7
|
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-141-2/+2
| | | | | | | | | | | | | | | | To avoid the proliferation of additional include directories and multiple ways of including project-local headers, we now default to moving all headers that are used across UHD into the uhdlib/ subdirectory. Some #include statements were also reordered as they were modified for closer compliance with the coding guidelines. Internal cpp source files should now include files like this: #include <uhdlib/rfnoc/ctrl_iface.hpp> Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* uhd: Update license headersMartin Braun2018-02-191-1/+1
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* UBX: Add support for CAL antenna for rev Emichael-west2018-02-081-1/+4
|
* fixup! UBX: Add implementation of TDD xcvr mode and force TX PA on in TDD ↵michael-west2018-01-161-1/+7
| | | | mode to reduce transient at start of transmission
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* UBX: Add support for UBX-TDDmichael-west2017-12-071-1/+9
|
* UBX: Add implementation of TDD xcvr mode and force TX PA on in TDD mode to ↵michael-west2017-12-071-12/+47
| | | | reduce transient at start of transmission
* ubx: Fixed UHD_MSG style log messagesMartin Braun2017-07-181-2/+6
|
* Merge branch 'maint'Martin Braun2017-07-171-3/+13
|\
| * UBX: Added error handling for setting the dboard clock rate.bstapleton2017-06-291-3/+13
| | | | | | | | Setting daughterboard clock rate while using UBX on X300 caused an error. Added handling, now throws a warning that the phase will vary.
| * UBX: Force on RX driver to eliminate transientmichael-west2016-12-011-1/+1
| |
* | logging: Demoted more DEBUG to TRACEMartin Braun2017-04-061-6/+6
| |
* | utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-11/+11
| |
* | uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-101-5/+5
| | | | | | | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* | UBX: Force on RX driver to eliminate transientmichael-west2016-12-091-1/+1
|/
* lib: Removed more superfluous variablesMartin Braun2016-11-281-2/+0
|
* UBX: changed default performance parametersNicolas Cuervo2016-10-071-5/+5
|
* Merge branch 'UHD-3.9.LTS' into maintMartin Braun2016-08-221-10/+35
|\
| * ubx: Added codes for the rev2 and LP versionsMartin Braun2016-08-221-10/+35
| |
* | Merge branch 'maint'Martin Braun2016-05-271-7/+26
|\|
| * UBX: Force RX LNAs on to reduce RX settling timemichael-west2016-05-261-7/+26
| |
* | Merge branch 'maint'Martin Braun2016-05-261-23/+37
|\|
| * UBX: Fixed noise issues and reduced power consumption and heatmichael-west2016-05-261-23/+37
| | | | | | | | | | - Removed force on of components to reduce noise, power consumption, and heat - Set TX PA force on only when RX antenna set to RX2 to remove long TX transient caused by HW issue on TX path
* | Merge branch 'maint'Martin Braun2016-03-291-1/+1
|\|
| * ubx: Changed member declaration to satisfy debug builds on WindowsMartin Braun2016-03-291-1/+1
| |
* | dboard: Made dboard class dtors virtualAshish Chaudhari2016-02-261-22/+26
| | | | | | | | | | - Interface and all base classes have virtual destructors - Wrapped UBX dtor in UHD_SAFE_CALL
* | Merge branch 'maint'Ashish Chaudhari2016-02-181-71/+149
|\| | | | | | | | | | | Conflicts: host/lib/usrp/cores/gpio_core_200.cpp host/lib/usrp/dboard/db_ubx.cpp
| * UBX: Phase synchronizationmichael-west2016-02-181-71/+149
| | | | | | | | | | | | | | - Disabled MAX2871 VCO auto selection for phase sync - Added checks for new phase sync constraints recently published by Maxim - Added dboard_clock_rate option for X300 - Adjusted timing of SYNC signal relative to dboard referenc clock
* | prop_tree: Multiple API enhancements to uhd::propertyAshish Chaudhari2016-02-111-10/+10
| | | | | | | | | | | | | | | | | | - Added desired and coerced values and accessors to property - Added support to register desired subscribers - set APIs don't reallocate storage for a property value - Renamed callback method registration APIs - Registering 2 coercers or publishers for a property will throw - Registering a coercer and a publisher for the same property will throw
* | Merge branch 'master' into ashish/gpio_atr_reduxAshish Chaudhari2015-10-151-17/+46
|\ \
| * | UBX: Support for Integer-N mode step size controlmichael-west2015-10-151-17/+46
| |/ | | | | | | - Also checks for invalid int_n_step values.
* / usrp3: Added new GPIO ATR 3000 coreAshish Chaudhari2015-09-291-8/+8
|/ | | | | | | | - Refactored GPIO ATR definitions - Added new 3000 core with a more efficient API - Added a separate db_gpio_atr core to control the ATR bus - Ported b2xx, e3xx and x3xx to the new core - Minor cleanup
* ubx: pfd frequency fix (relevant for X300 operation)Michael West2015-04-231-0/+2
|
* UBX Phase Synchronization Supportmichael-west2015-04-101-64/+187
| | | | - Added configuration and assertion of SYNC signal
* Fix for BUG #683: UHD: Need to factor out MAX287x code for UBX and CBXmichael-west2015-04-101-545/+87
| | | | | - Factored out MAX287x code into common header file - Added necessary code for MAX2871 synchronization.
* Warning fixesNicholas Corgan2015-03-271-1/+1
| | | | | | | * CMake now not applying C++ flags to C files * GCC 4.4: anti-aliasing rules * MSVC: narrowing, differences in subclass function parameters * Clang: uninitialized variables
* uhd: Fixed multiple compiler warnings (unused variables, missing literal f)Martin Braun2015-03-111-1/+1
|
* UBX: Revert LO shutdown method in ubx_xcvr destructormichael-west2015-02-161-4/+4
|
* UBX: Serialize SPI transactionsmichael-west2015-02-161-27/+31
|
* UBX: Add UBX Supportmichael-west2015-01-221-0/+1434