aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common
Commit message (Collapse)AuthorAgeFilesLines
* x300/mpmd: Port all RFNoC devices to the new RFNoC frameworkMartin Braun2019-11-261-51/+49
| | | | | | | Co-Authored-By: Alex Williams <alex.williams@ni.com> Co-Authored-By: Sugandha Gupta <sugandha.gupta@ettus.com> Co-Authored-By: Brent Stapleton <brent.stapleton@ettus.com> Co-Authored-By: Ciro Nishiguchi <ciro.nishiguchi@ni.com>
* uhd: Remove support for N230Martin Braun2019-11-261-2/+2
| | | | Note: N230 is still supported on the 3.15 LTS branch
* ad9361: Improve loggingMartin Braun2019-07-181-10/+15
| | | | | - Remove some spurious \n - Remove some usage of boost::format
* e310/e320: Move E310 to MPM architecture and refactorSugandha Gupta2019-05-012-2/+2
| | | | | | | | | | | | - Turns the E310 into an MPM device (like N3xx, E320) - Factor out common code between E320 and E310, maximize sharing between the two devices - Remove all pre-MPM E310 code that is no longer needed - Modify MPM to remove all existing overlays before applying new ones (this is necessary to enable idle image mode for E310) Co-authored-by: Virendra Kakade <virendra.kakade@ni.com> Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
* ad9361: Fix return values for tune and set_clock_rateSugandha Gupta2019-05-012-3/+11
| | | | | | This fixes a potential mismatch between the returned frequency and clock rate and the actual value. The new function get_clock_rate is need for async call to set_clock_rate in E3xx devices
* lmx2592: fixup for correct frequency borderstvogel-nid2019-03-131-2/+2
| | | | | LMX2592 frequency borders were missing the correct exponent ('e6') in some cases.
* uhd: mpm: update all license header w/ "-or-later"Brent Stapleton2019-03-081-1/+1
| | | | Updating all SPDX license identifiers to include "-or-later"
* uhd: Replace all usage of boost::noncopyable with uhd::noncopyableMartin Braun2019-02-151-2/+2
| | | | | | This fixes the build errors that occur due to switching locations of noncopyable.hpp within Boost, and also allows us to remove boost::noncopyable in one fell swoop.
* ad9361: Replace Boost lock & mutex with std varietyMartin Braun2019-01-251-23/+21
|
* formatting: Apply clang-format to ad9361_ctrl.cppMartin Braun2019-01-251-72/+87
|
* math: Remove uhd::math::log2, replace with std::log2Martin Braun2019-01-181-1/+2
| | | | | Now that we're C++11, we can assume the existence of said symbol and need no more portability hacks.
* formatting: preparing for uhd::math cleanupBrent Stapleton2019-01-181-139/+108
| | | | Formatting files that will be touched in upcoming changes to uhd::math
* uhd: skip formatting misc arrays, maps, etc.Brent Stapleton2019-01-162-0/+6
| | | | | | 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.
* lmx2592: Better "abs()" compiler compatibilityMichael Dickens2018-12-121-3/+3
| | | | Use "std::abs" instead of "abs" for better compiler compatibility
* TwinRX: Tuning improvementsmichael-west2018-12-101-5/+5
| | | | | | - Added delay for VTUNE calibration as per ADF5355 and ADF5356 data sheets - Increased SPI clock to 10 MHz - Removed write to register 10 during tuning of ADF5356 to match ADF5355 code and reduce tune time
* cmake: Update coding style to use lowercase commandsMartin Braun2018-11-141-6/+6
| | | | | | | | | | | | | | | | | Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
* lmx2592: remove initial scratch register readbackMark Meserve2018-10-171-24/+0
| | | | | - This is the only read operation in the driver, so removing it simplifies the driver's requirements significantly.
* lmx2592: add spur dodgingMark Meserve2018-10-171-22/+326
|
* lib: ad9361: De-boostify AD9361 driverMartin Braun2018-10-172-106/+195
| | | | No functional or API changes.
* b100: Move fifo_ctrl_excelsior to b100 subdirMartin Braun2018-07-312-290/+0
| | | | | This device is the only one using it, and no one will ever use it going forward.
* lmx2592: fix calibration start during tuningMark Meserve2018-07-311-1/+3
| | | | - This bug could cause LO to not lock properly after a set_frequency call
* lmx2592: always mux lock detect after initMark Meserve2018-07-311-9/+5
|
* uhd: initial commit of UHD support for E320Brent Stapleton2018-07-182-10/+2
| | | | Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* mpm: initial commit of E320 codeBrent Stapleton2018-07-181-0/+15
| | | | Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
* e300: remove time spiTrung N Tran2018-07-061-36/+1
|
* ad9361: Add API to set 1R1T/2R2T timing modesSugandha Gupta2018-06-153-0/+63
| | | | | LVDS interface can support both timing modes 1R1T/2R2T The API sets the required bit in catalina registers.
* LMX2592: Fix PFD calculationDerek Kozel2018-06-121-1/+1
|
* LMX2592: Skip output div-by-3 due to harmonicsDerek Kozel2018-06-061-0/+6
|
* lib: Remove some unnecessary use of boost::posix_timeMartin Braun2018-05-141-6/+6
| | | | Replace by std::chrono.
* uhd: Added LMX2592 driverDerek Kozel2018-05-032-0/+472
|
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-302-26/+27
| | | | Replace with std::this_thread::sleep_for().
* ad9361: Fix bandwidth warnings and rangesVidush2018-04-274-30/+77
| | | | | | | Allows full bandwidth range to user. Reviewed-by: Michael West <michael.west@ettus.com> Reviewed-by: Martin Braun <martin.braun@ettus.com>
* ad936x: De-boostify ad936x_manager, minor cleanupMartin Braun2018-04-261-42/+76
| | | | | | | - Remove all use of boost::bind and boost::function - Demote some log messages to DEBUG - Change some formatting to match coding guidelines - B2xx/E310: Match changes in loopback function
* adf4002: Fixed register programming for power down bitSugandha Gupta2018-04-121-1/+1
| | | | | The bit shift for power down is one off with respect to the ADF4001/ADF4002 data sheet
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-1426-2917/+15
| | | | | | | | | | | | | | | | 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: Moved get_system_time outside of public APIMartin Braun2018-03-051-2/+4
| | | | | | | uhd::get_system_time() is an abstracted way of reading back a time, and is not UHD-specific. As such, there's no reason to keep it in the public part of the API where we're contractually obligated not to touch it. Instead, moving it to the internal API space.
* uhd: Update license headersMartin Braun2018-02-1932-31/+59
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* uhdlib: Update constrained_device_args_tMartin Braun2018-01-181-271/+0
| | | | | | | - Allow enums to be non-consecutive - Move to uhdlib/ - Add unit tests - Updated N230 use of constrained_device_args_t
* Move all headers to SPDX format, harmonize license headersMartin Braun2017-12-222-26/+4
|
* mpm: LMK code now throws on incorrect chip IDMartin Braun2017-12-222-4/+14
|
* mpm: Fixed a plethora of SPI-related issuesMartin Braun2017-12-222-9/+17
|
* lmk: Update LMK04828 driver with values for MagnesiumDerek Kozel2017-12-222-49/+69
|
* Initial commit for N3xx development.Martin Braun2017-12-223-0/+127
| | | | | | | | | | | | | | - Creates mpm/ subdirectory - First pass at hardware daemon/MPM - New code for LMK04828, AD9371 - spidev integration Contributions by: Martin Braun <martin.braun@ettus.com> Derek Kozel <derek.kozel@ettus.com> Mark Meserve <mark.meserve@ni.com> Andrej Rode <andrej.rode@ettus.com>
* Clean up build processMartin Braun2017-12-221-4/+9
| | | | | | - Removed stale files (i2c_core_100, spi_core_100) - Made more compilation condiational; disabling some devices will disable dependencies as well so they don't get compiled in by default.
* Move all license headers to SPDX format.Martin Braun2017-12-2229-348/+29
|
* TwinRX: Added ADF5356 synth and TwinRX Rev C supportDerek Kozel2017-12-085-413/+495
| | | | | | | | | ADF5355 and ADF5356 support merged into adf535x class Default register values moved into regmap Reviewed-By: Martin Braun <martin.braun@ettus.com> Reviewed-By: Ashish Chaudhari <ashish@ettus.com> Reviewed-By: Mark Meserve <mark.meserve@ni.com>
* adf435x: Add APIs for cp current and aux levelAlex Williams2017-10-301-8/+75
|
* docs: Fixed doxygen warningssugandhagupta2017-06-291-18/+20
|
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-1/+1
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-291-5/+4
|