aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
Commit message (Collapse)AuthorAgeFilesLines
* n310: add capability to control RF filter bypass and freq.band limitsThomas Vogel2019-07-246-39/+133
| | | | | | | | | | | | | | | | | | With the keywords "rx_gain_profile", "tx_gain_profile" and the new values "default_bypass_always_off" and "default_bypass_always_on" the customer can control whether the filter bypass shall be applied as defined in the gain-table or whether to switch the bypass to ON or OFF for all gains. With the keywords "rx_band_map" and "tx_band_map" the user can define custom frequency borders for the band mapping. These new keywords can be used in the uhd.con, e.g.: [type=n3xx] rx_gain_profile=default_bypass_always_off tx_gain_profile=default_bypass_always_on rx_band_map=431e6;601e6;1051e6;1601e6;2101e6;2701e6 tx_band_map=723.18e6;1623.18e6;3323.18e6
* gpsd: Fix gpsdata API: .separation -> .fix.geoid_sepMichael Dickens2019-07-231-0/+8
| | | | See: https://gitlab.com/gpsd/gpsd/commit/c711d531a6faab93df68ec625a076631569a729d
* converters: Improve exception string for illegal formatsMartin Braun2019-07-201-1/+1
| | | | | | | When trying to create a converter with an illegal string, it will now look like this: [convert] Cannot find an item size for: `???'
* ad9361: Improve loggingMartin Braun2019-07-181-10/+15
| | | | | - Remove some spurious \n - Remove some usage of boost::format
* Device3: Fix MTU and default frame sizesMichael West2019-07-186-158/+277
| | | | | | | | | | The latest changes to the get_*x_stream() functions to calculate the MTU for the channel caused default frame size values to be ignored. This change fixes that by changing the key from "send/recv_frame_size" to "mtu" and then changing the implementations of make_transport() constrain the frame size values based on the "mtu" value as well as any device and/or transport-specific limits. Signed-off-by: Michael West <michael.west@ettus.com>
* nirio: Fix typo in nirio_zero_copyMichael West2019-07-181-1/+1
| | | | Signed-off-by: Michael West <michael.west@ettus.com>
* transport: usb: Allow to cancel USB requests without throwingBehnam Sabaghi2019-07-181-1/+3
|
* sbx: Only update ATRs when lock state changesMartin Braun2019-07-171-5/+7
| | | | | | | The SBX tracks the LO lock state via on-board LEDs. However, querying the LO lock status spawns an update to the entire ATR registers. To reduce the number of register reads/writes, the LO lock status LED is now only updated if it changed.
* x310: fixed udp WSA buffer size assignment issueMatthew Crymble2019-07-171-3/+21
|
* rfnoc: Add update_graph() API callMartin Braun2019-07-154-12/+13
| | | | | | Blocks that change scaling, tick rate, or sampling rate can now notify the graph to update streamers. Before, this was handled only by mult_usrp, and only for DDC and DUC blocks.
* device3: Remove unused 'rate' argument from update_?x_streamers()Martin Braun2019-07-154-11/+14
|
* device3: rfnoc: formatting changesBrent Stapleton2019-07-154-53/+57
| | | | | | | | | | | | | Applying clang-format to files used in upcoming changes. clang-format -i --style=file host/include/uhd/rfnoc/node_ctrl_base.hpp clang-format -i --style=file host/lib/rfnoc/ddc_block_ctrl_impl.cpp \ host/lib/rfnoc/duc_block_ctrl_impl.cpp \ host/lib/rfnoc/legacy_compat.cpp \ host/lib/usrp/device3/device3_impl.cpp \ host/lib/usrp/device3/device3_impl.hpp \ host/lib/usrp/device3/device3_io_impl.cpp \ host/lib/usrp/x300/x300_impl.cpp
* nocscript: add optional port argument to block sr_writeMark Meserve2019-07-101-4/+15
|
* transport: fixed a pre-mature buffer resetmcrymble2019-06-141-2/+3
| | | | | | In the PACKET_INLINE_MESSAGE case, we need to extract the error code from the packet buffer. But the buffer was being released before that happens, resulting in garbage values for metadata.error_code.
* x300: dac: Replace uhd::get_system_time() with steady_clockMartin Braun2019-06-121-5/+4
|
* max287x: improve loggingMark Meserve2019-06-121-7/+12
| | | | | - Split tuning log into 3 lines - Remove duplicated MAX287X
* 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
* transport: Remove warning for memset in super_recv_packet_handlerAlex Williams2019-06-071-4/+4
| | | | Should use value initialization for non-trivial classes.
* twinrx: increase rev c lo1 charge pump default valueMark Meserve2019-05-282-2/+2
| | | | - This change improves spur performance for the Rev C TwinRX daughterboard
* X300: fixed get_mtu for pcieMatthew Crymble2019-05-251-1/+4
| | | | Signed-off-by: Matthew Crymble <matthew.crymble@ni.com>
* fixup! uhdlib: add rational approximation to math utilitiesMartin Braun2019-05-231-1/+1
|
* cores: Use NSDMI consistently in ?x_dsp_core_3000.*Martin Braun2019-05-222-23/+16
| | | | | | There are edge cases where the lack of initialization of _current_freq could crash libuhd. To resolve this, we initialize all elements of those cores to sensible values using NSDMI.
* cores: Apply clang-format to ?x_dsp_core_3000.*Martin Braun2019-05-224-243/+280
|
* lib: rfnoc: Apply clang-format to graph_impl.hppMartin Braun2019-05-221-35/+26
|
* mpmd: image_loader: Add support for devices without fpga_typeSugandha Gupta2019-05-211-1/+5
| | | | | This fixes fpga image loading for devices which not have SFP port and hence no fpga_type e.g. E310.
* cmake: Remove superfluous "E300/E320 enabled" messagesMartin Braun2019-05-161-2/+0
|
* rfnoc: tick_node: Search all nodes for tick ratesMartin Braun2019-05-081-3/+5
| | | | | | | | | | | | | | | | | The tick_node was trying to find the current tick rate by only querying active blocks (i.e., blocks that were flagged active-streaming). However, this is not necessary since we require all blocks to run at the same tick rate. In theory, querying active-only ports should be fine, but due to some idiosyncrasies in our current graph code, connecting a single streamer to channel 1 (out of 0, 1) would try and get the info from the wrong port. This is not a fix to the graph code, but the change to tick_node is also appropriate and is sufficient to fix the "late packets on channel 1" issue. This issue would manifest when sending timed packats to channel 1 in a single-channel streamer. The problem is that it wouldn't be able to read the correct tick rate.
* log: Change logging coloursMartin Braun2019-05-071-3/+3
| | | | | | TRACE: Remains purple, but that's now no longer bright ERROR: Is now bright red (was non-bold red before) FATAL: Is now red-on-yellow
* log: Fix ANSI colour codesMartin Braun2019-05-071-7/+9
| | | | | | The colour codes used for console logging were incorrectly defined. Some colours would simply not rendered this way (e.g., red), others had the boldness flag wrong.
* adf435x: run clang-formatMark Meserve2019-05-071-146/+251
|
* twinrx: set lo2 to use new low spur tuning modeMark Meserve2019-05-072-6/+3
|
* adf435x: add low spur tuning modeMark Meserve2019-05-071-5/+56
| | | | | - adds a new mode to the adf435x driver which provides general spur performance improvements
* uhdlib: add rational approximation to math utilitiesMark Meserve2019-05-071-0/+75
|
* twinrx: add lo charge pump propertiesMark Meserve2019-05-025-19/+116
|
* adf535x: add charge pump controlMark Meserve2019-05-021-3/+55
|
* adf435x: add charge pump with double parameterMark Meserve2019-05-021-0/+34
|
* adf435x: enhance logging messagesMark Meserve2019-05-021-10/+13
|
* utils: add support for directly updating components from image_loaderAndrew Lynch2019-05-021-71/+96
|
* prop_tree: add pop() functionBrent Stapleton2019-05-021-0/+23
| | | | | Adding pop function to property tree, which will remove and return a property from the property tree. This also includes unit tests.
* prop_tree: formatting property tree filesBrent Stapleton2019-05-021-58/+82
| | | | | | | | | | | | - Ran clang-format - Fixed typos - Updated copyright headers clang-format -i --style=file \ host/include/uhd/property_tree.hpp \ host/include/uhd/property_tree.ipp clang-format -i --style=file \ host/lib/property_tree.cpp host/tests/property_test.cpp
* C: Add uhd_get_abi_string, uhd_get_version_stringNicholas Corgan2019-05-022-0/+35
| | | | | | | | Clients that include the UHD C headers have access to the version and ABI #defines, but this is not available to clients that dynamically load the library. This commit adds publicly exported functions to provide this information.
* mpmd: Release resources on destructionVirendra Kakade2019-05-012-4/+6
| | | | | This will clear the property tree, block registry, transport managers, and motherboard list on destruction of mpmd_impl.
* liberio: Release context holder on destruction of last liberio xportSugandha Gupta2019-05-011-3/+24
| | | | | | This will make sure that the context holder for the liberio context is destroyed when the last liberio transport is destroyed, and not on termination of the program.
* mpmd: Fix spurious reclaim call after unclaimVirendra Kakade2019-05-011-3/+6
| | | | | | | | | The reclaim task loop is asnychronous to the main thread which can result in spurious reclaim call to the device after unclaim has been called. This is especially risky if the device has already entered a non-serviceable state after unclaim e.g. idle state. Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
* device3: Constraint send/recv_frame_size based on down/upstream MTUSugandha Gupta2019-05-019-6/+100
| | | | | | We need to properly contraint the send/recv_frame_size based on the minimum MTU of all the down/upstream blocks. This fixes the issue with E310 tx/rx streaming as it has smaller MTU sizes than the other usrps.
* e310/e320: Move E310 to MPM architecture and refactorSugandha Gupta2019-05-0151-6132/+1487
| | | | | | | | | | | | - 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>
* mpm: Add option for muxed data stream for liberio transportSugandha Gupta2019-05-012-2/+18
| | | | | | If the number of channels for embedded mode streaming is 4 (1 for ctrl, 1 for async messages and 2 for data ), we need to mux the data transport. This is needed for E310
* 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
* include: Remove BOOST_VERSION hacks for 1.58Martin Braun2019-04-241-5/+0
| | | | | This removes all version hacks that were required for Boost versions 1.53 through 1.58 (since we now require 1.58).
* b200: enable usage of custom bootloaderMark Meserve2019-04-113-79/+292
| | | | | - Update MB EEPROM - Add bootloader load command to fx3 util