aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
Commit message (Collapse)AuthorAgeFilesLines
* fixup! x300,n230,e300,b200: changes to adapt to new usrp APITrung N Tran2018-02-224-20/+47
|
* x300,n230,e300: changes to adapt to new usrp APITrung N Tran2018-02-213-26/+111
|
* usrp: Add set_gpio_attr overload that use stringTrung N Tran2018-02-212-22/+177
| | | | | | | | | | | | | 1/ multi_usrp.hpp; multi_usrp.cpp: added new functions - set_gpio_attr() that allow user to set certain attribute by string value. - get_gpio_string_attr() return string type value of certain attribute. 2/ gpio_defs.hpp; gpio_atr_3000.cpp : added new definition of SRC attribute. This commit enable user to use multi_usrp api to set_gpio_attr using string value. This is helpful; because the attribute can represent more than two state as of old API. This enable user to set SRC (source) that drive each GPIO bank's pin. Source can be either processing unit(PS) or radio frontend logic from FPGA logic.
* n3xx: add front panel gpio control registersTrung N Tran2018-02-212-7/+127
|
* rfnoc,x300: Multiple clocking changesAshish Chaudhari2018-02-212-4/+4
| | | | | | - Moved bus_clk <=> ce_clk crossing to axi_wrapper in FPGA which resulted in a noc_shell compat bump - Change x300 bus_clk frequency to 187.5 MHz
* uhd: device: Auto-apply config file options to USRPsMartin Braun2018-02-201-2/+7
|
* lib: Add 'prefs' APIMartin Braun2018-02-203-0/+162
| | | | | | | | | | | | | This defines and reads configuration files that can be used to customize UHD's behaviour. On Unix systems, they default to: /etc/uhd/uhd.conf $APPDATA/.uhd/uhd.conf On Windows systems, it will look in: %ProgramData%/uhd/uhd.conf %AppData%/.uhd/uhd.conf
* lib: Add path_expandvars() internal API callMartin Braun2018-02-204-0/+72
|
* mpmd: Fix typo in image loaderMartin Braun2018-02-201-3/+4
|
* fixup! rfnoc: Refactor radio_ctrl_impl, remove some BoostAshish Chaudhari2018-02-201-5/+5
|
* mpmd: image loader: add default pathBrent Stapleton2018-02-191-5/+58
| | | | | | | | | | | Added default FPGA image path, similar to how we do it in X300. We determine the path to the fpga image path by checking the following: 1. --fpga-path provided by the user and that file exists 2. FPGA type (`fgpa`) provided in the args 3. Checking the fpga type of the currently loaded image on the device (pulled through `MPM.get_component_info`) 4. Otherwise, error out
* mpmd: add getter for components in property treeBrent Stapleton2018-02-192-4/+32
| | | | | | Adding a publisher for updateable components listed in the property tree. This calls MPM.get_component_info for the desired component, and returns a dictionary containing that metadata.
* mpmd: components: Add doxygen for update componentBrent Stapleton2018-02-191-0/+6
| | | | Adding doxygen comment for _update_component in mpmd.
* uhd: Update license headersMartin Braun2018-02-19498-470/+905
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* rfnoc: Check noc_shell compat number at runtimeMartin Braun2018-02-191-7/+19
|
* ddc: duc: Factor out usage of boost::bind()Martin Braun2018-02-192-32/+54
| | | | Replace with lambdas.
* rfnoc: Factor out ceil_log2() into central locationMartin Braun2018-02-193-13/+32
| | | | - New file: uhdlib/utils/math.hpp
* rfnoc: Factored out FPGA compat checkMartin Braun2018-02-195-89/+234
| | | | | - Applied changes to DUC and DDC blocks - Fixed minor formatting
* mg: Fixed typo in set_rx_bandwidth()Martin Braun2018-02-151-2/+4
|
* mg: turn on tx power amplifiers when idleTrung N Tran2018-02-142-10/+11
| | | | | | Without turning on tx power amplifer when being idle, the TX settling time is 100ms. Turning these power amplifiers on "all time" results in tx settling time around 140us.
* C API: Properly free streamers to support streamer re-creation.michael-west2018-02-121-24/+14
|
* mpmd: Fix compiler issuesMartin Braun2018-02-103-7/+5
| | | | | | - Initialization of device_addr_t from another using auto doesn't work across compilers - Moved MPMD_DISC_RESPONSE_PREAMBLE to mpmd_find where it belongs
* mg: Temporarily disable concurrency in parts of set_rpc_client()Martin Braun2018-02-092-1/+15
| | | | | | There is an issue with parallel inits and liberio which crops up during initialization. This is not a fix but is a workaround which enables the parallel initialization of devices using liberio.
* fixup! mpmd: Factor find and prop tree init code out of mpmd_impl.cppBrent Stapleton2018-02-092-4/+3
|
* rfnoc: Refactor radio_ctrl_impl, remove some BoostMartin Braun2018-02-082-56/+74
| | | | | | - Replaces some very verbose boost::bind() with simpler lambdas - Replaces some boost:tuple with std::tuple - Replaces some Boost locks with std locks
* mg: Fix some compiler warningsMartin Braun2018-02-081-20/+39
| | | | | - Superfluous captures in lambdas - Make use of new TX bandwidth API
* rfnoc: Add TX bandwidth APIs to radio_ctrlMartin Braun2018-02-082-0/+15
|
* mg : implement set_bandwidthTrung N Tran2018-02-084-17/+27
|
* UBX: Add support for CAL antenna for rev Emichael-west2018-02-081-1/+4
|
* mpmd: Factor find and prop tree init code out of mpmd_impl.cppMartin Braun2018-02-075-461/+503
| | | | No functional changes.
* mpmd: Let 'find' via broadcast check for reachabilityMartin Braun2018-02-073-6/+197
| | | | | | | | | In particular, when running uhd_find_devices, this will limit the devices to ones that can actually be reached via CHDR. There is a new key, find_all, which allows finding all devices even those not reachable from UHD. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* lib: Add config_parser classMartin Braun2018-02-013-0/+181
| | | | | | | This class is not publicly exported. It is meant to read config files in the INI format. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpmd: image loader: increased timeoutBrent Stapleton2018-01-292-2/+4
| | | | | | | | -Increased timeout from 10s to 20s. This time is also per component file being updated. For example, when updating the FPGA with new .bit and .dts files, the timeout will be 40s. -Also added log message to let user know their device is updating, not frozen.
* usrp3: Changes for Vivado 2017.4Ashish Chaudhari2018-01-243-3/+3
| | | | | | - Bumped compat number for e3xx, n230, x3xx, n3xx - Updated images package for e3xx, n230, x3xx, n3xx - Updated fpga-src submodule
* logging: Minor refactoring, skip empty log messagesMartin Braun2018-01-231-75/+102
| | | | | | | Empty log messages are now skipped for faster processing. The 'terminating' log message is now also empty (and thus skipped). Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* fixup! rpclib: fix use of "boost::asio::strand" -> ↵Martin Braun2018-01-221-1/+2
| | | | "boost::asio::io_service::strand"
* rpclib: fix use of "boost::asio::strand" -> "boost::asio::io_service::strand"Michael Dickens2018-01-223-3/+3
| | | | | | | | | The former was marked as deprecated numerous Boost versions ago and finally was actually removed & replaced in 1.66.0 with a new one with a template API. The version in rpclib need to be updated, and Boost docs say to use the latter. Moving to this usage takes care of this issue. Reviewed-by: Martin Braun <martin.braun@ettus.com>
* mg: Remove superfluous DEBUG message, minor formattingMartin Braun2018-01-181-10/+12
| | | | Fixed indents to 4 spaces in get_?x_lo_source().
* logging: Fix version print at top of every UHD sessionMartin Braun2018-01-181-17/+21
|
* uhdlib: Update constrained_device_args_tMartin Braun2018-01-182-31/+63
| | | | | | | - Allow enums to be non-consecutive - Move to uhdlib/ - Add unit tests - Updated N230 use of constrained_device_args_t
* mg: Fix various compiler warningsMartin Braun2018-01-163-47/+48
| | | | | | - Made const constexpr where sensible - Moved non-global constants to their local scope - Changed const char * to const char[] where they should
* mg: Fix missing return value for half-dB stepsMartin Braun2018-01-161-0/+1
|
* multi_usrp: Fix compiler warningsMartin Braun2018-01-161-22/+41
| | | | Also elevated a UHD_LOG_ERROR() to an exception.
* mpm/mpmd: Report device state using get_init_status() and verifyMartin Braun2018-01-161-0/+9
| | | | | | When trying to run init(), mpmd will first query the initialization status of the MPM device. If it is found to be in a bad state, it will not go forward with initialization, but instead print the error message.
* X300: Reduce CPU usage during TX by restoring timeout when getting flow ↵michael-west2018-01-161-3/+1
| | | | control packets
* 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
* mg: add clip function on setting individual gain.Trung Tran2018-01-121-8/+19
| | | | Reviewed-by: Martin Braun <martin.braun@ettus.com>
* usrp: add multiusrp api for gain profile.Trung N Tran2018-01-121-0/+72
|
* mg: add facility that handle individual gainTrung N Tran2018-01-125-12/+348
| | | | | | | -Create name for each gain/att element -Create property tree entry for each gain and their handlers. -Create gain profile that control how gain distributed. Right now, it is either "default" or "manual".
* fixup! TwinRX: Added ADF5356 synth and TwinRX Rev C supportDerek Kozel2018-01-121-1/+1
| | | | | | The phase detector frequency value was incorrect for the Rev C LO1 Reviewed-by: Mark Meserve <mark.meserve@ni.com>