aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* mpmd: tighten reclaiming time.Trung N Tran2018-04-021-2/+3
| | | | | Reclaming interval was exec_time(claim+dump_logs)+MPMD_RECLAIM_INTERNVAL; this change will MAX(exec_time(claim+dump_logs),MPM_RECLAIM_INTERVAL)
* lib: adding device_addr_t constructor from mapBrent Stapleton2018-04-021-0/+6
| | | | | Adding constructor for device_addr_t that takes a map<string, string> as an argument.
* fixup! rfnoc: Update logging in some blocksTrung N Tran2018-03-301-1/+1
|
* UBX: Change antenna functions to coercers on antenna/value propertiesmichael-west2018-03-301-4/+7
|
* dboard eeprom: Demote byte sum message to TRACEMartin Braun2018-03-301-2/+6
|
* rfnoc: Update logging in some blocksMartin Braun2018-03-306-56/+87
| | | | | | | | | | Updated the following blocks and components: Radio, DmaFIFO, block_ctrl_base and node_ctrl_base, blockdef_xml_impl, device3_impl. No functional changes. - Demoted some log messages - Consistent log style (use unique_id()) - Some adaptation of coding style where close to log statements
* x300: Update loggingMartin Braun2018-03-301-37/+37
| | | | | | | | | No functional changes. - Demote some messages to DEBUG or TRACE - Use consistent logging styles - In some cases, adapted code to coding style when near logging statements
* cores: Demote some log messages in time coreMartin Braun2018-03-301-2/+6
|
* transport: Demote UDP socket buffer size log message to TRACEMartin Braun2018-03-301-1/+1
| | | | | Note: When socket buffers are incorrectly size, a WARNING is still printed.
* multi_usrp: Refactor gpio_attr methodsMartin Braun2018-03-301-117/+164
| | | | | | | | | - Fix indentation issues - Fix inconsistent formatting - Fix typos in user-facing messages - Fix inconsistent exception messages - Apply coding guideline formatting rules - Remove some code duplication
* mpmd: Fixed MPM marking wrong device as reachableBrent Stapleton2018-03-301-1/+12
| | | | | | | | During MPMd find routine, added a check when connecting to a CHDR interface to make sure we're talking to the correct device. Without this check MPMd would sometimes incorrectly mark a device as reachable because they shared an addr (ie. 192.168.10.2 existed on multiple devices).
* mpmd: Provide list of MPM devices to fail fast on findMartin Braun2018-03-292-1/+34
| | | | | | | | With this fix, uhd_find_devices --args type=b200, for example, will not stall in this function. Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com> Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* rfnoc radio: get_rx_stream resets sequence numBrent Stapleton2018-03-291-0/+5
| | | | | | Reset the RX sequence number whenever an RX streamer is created. Reviewed-by: Martin Braun <martin.braun@ettus.com>
* x300: Refactor clock and time source prop tree setupMartin Braun2018-03-291-12/+27
| | | | | | - Remove boost::bind - Remove boost::assign::list_of - No functional changes
* x300: Properly coerce master clock rate (tick rate)Martin Braun2018-03-291-4/+22
| | | | | | | | - A call to multi_usrp::set_master_clock_rate() on the X3x0 will now properly coerce the value, and show a warning when it had to coerce. It will not throw an exception. - Did a minirefactoring of the tick_rate property setup and removed two more boost::binds.
* usrp2: Modify trace log statement in ad9777 controlMartin Braun2018-03-281-1/+1
| | | | Reviewed-by: Derek Kozek <derek.kozel@ettus.com>
* usrp2: Re-add ability to modulate in the DACMartin Braun2018-03-283-7/+85
| | | | | | | | | | | This partially reverts b29e80cc. That commit fixed a bug with numerical overflows, but also removed the ability to tune using the DAC, effectively reducing the DSP tuning range. This commit allows to tune within +/- 200 MHz using a combination of both the DAC and the DSP tuning in the FPGA. Reviewed-by: Derek Kozek <derek.kozel@ettus.com>
* lib: Fixing config file path for some Windows buildsAndrew Lynch2018-03-282-6/+1
|
* fixup! rfnoc radio: Improve warning for too many samples requestedMartin Braun2018-03-271-1/+2
|
* rfnoc radio: Improve warning for too many samples requestedMartin Braun2018-03-271-1/+11
| | | | | | | | | | When doing a NUM_SAMPS_AND_DONE stream command, there is a limit to the number of samples that can be requested (as of now, there's 28 bits for this counter). When the number was exceeded, the previous error message was not helpful. Note that the DDC block will multiply the number of requested samples by the decimation rate. This means the number of samples requested from the radio is higher than the number of samples requested by the application.
* DDC/DUC: switch CORDIC -> DDS for all relevant variable namesRyan Marlow2018-03-226-34/+30
| | | | - Bump compat number for DDC/DUC to 2.0
* lib: add auto_timer profiling utilityPatrick Sisterhen2018-03-161-0/+137
| | | | | Note: This tool is not considered done, complete, unchangeable, or anything other than experimental.
* rfnoc: ctrl_iface cleanupMartin Braun2018-03-168-299/+218
| | | | | | | | | | - ctrl_iface is now longer a wb_iface. All it can do now is send command packets, and receive responses to those. - ctrl_iface does not store command time or tick rate - wb_iface_adapter is no longer a set of functors, but a wrapper around ctrl_iface. Command times are stored once, in the block. - DMA FIFO and radio block controllers have an easier time getting access to a timed_wb_iface
* rfnoc/x300: Make sure peek32() and peek64() are called with actual addressesMartin Braun2018-03-166-22/+26
| | | | Before, we were calling peeks with the number of the readback register.
* fixup! usrp: Add set_gpio_attr overload that use stringTrung N Tran2018-03-141-2/+2
| | | | | set_gpio_attr did not return after completion. This leads to wrong error reporting.
* lib: Add include guards for xports.hppMartin Braun2018-03-141-0/+5
|
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-14166-415/+277
| | | | | | | | | | | | | | | | 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>
* legacy: fix legacy compat to work with 2TX radio blockTrung N Tran2018-03-131-89/+230
| | | | | | | This change will allow legacy compat connect any in/out ports radios/ddcs/ducs/dmafifo block connect together in a legacy graph: [HOST]=>DFIFO/SFIFO=>DUC=>RADIO=>DDC=>[HOST]
* mg: reduce to 2 radios for n310Trung N Tran2018-03-132-192/+52
|
* x300: improve lvbitx bitstream md5 read timeMark Meserve2018-03-131-10/+20
| | | | | - Reading line by line avoids loading the entire 25 MB bitstream into memory since the MD5 hash usually occurs within the first 1% of the file stream
* uhd: Fix some log statementsAndrej Rode2018-03-074-7/+5
| | | | Some log statements were incorrectly using multi-line log statements.
* uhd: Moved get_system_time outside of public APIMartin Braun2018-03-059-119/+150
| | | | | | | 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: Removed atomic.hpp from public APIMartin Braun2018-03-052-2/+76
| | | | | | | atomic.hpp defines a spin lock and a lockfree mutex. There is no reason to have standard constructs in the public API, where we're contractually obligated to not touch them. Thus, moving them into the internal API space.
* twinrx: correct the maximum daughterboard gainMark Meserve2018-03-021-1/+1
| | | | - changes static max gain value from 95 to 93 to match new gain tables
* n310: Make MPM report FPGA version and description, UHD read itMartin Braun2018-03-021-2/+6
| | | | | | | The FPGA and MPM version as well as the description of the device ("N300-Series Device") and its name (its the hostname) are now properly reported coming from MPM, properly saved in the prop tree, and uhd_usrp_probe can nicely display them this way.
* uhd: Move some gpio_defs constants definitions out of headersMartin Braun2018-02-273-1/+130
| | | | Reviewed-by: Trung Tran <trung.tran@ettus.com>
* fixup! x300,n230,e300: changes to adapt to new usrp APIMartin Braun2018-02-233-6/+6
| | | | Fixes some compiler warnings.
* x300: Fixed processor clock rate in ZPU firmwareAshish Chaudhari2018-02-231-2/+2
| | | | | - Fix for regression that was introduced after the bus_clk freq change - Firmware compat number bumped to 6.0 (was 5.2)
* 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.