Commit graph

28 commits

Author SHA1 Message Date
Sugandha Gupta
67b5827fae ad9361: Add API to set 1R1T/2R2T timing modes
LVDS interface can support both timing modes 1R1T/2R2T
The API sets the required bit in catalina registers.
2018-06-15 16:37:03 -05:00
Derek Kozel
3615873fee uhd: Added LMX2592 driver 2018-05-03 11:30:34 -07:00
Martin Braun
0303f1ed55 lib: Purge all references to boost::this_thread::sleep()
Replace with std::this_thread::sleep_for().
2018-04-30 17:10:26 -07:00
Vidush
2eab720f06 Removed unecessary == operation. 2018-04-30 16:09:16 -07:00
Vidush
c20678676f Changed method to check for channel in _tx_streamer_active & rx_streamer_active. 2018-04-30 16:09:16 -07:00
Vidush
8922095b2c lib: Change check_radio_config() to iterate over channels, not radios. 2018-04-30 16:09:16 -07:00
michael-west
679e494947 fixup! rfnoc: ctrl_iface cleanup 2018-04-30 11:00:30 -07:00
Vidush
2ef60a1b66 ad9361: Fix bandwidth warnings and ranges
Allows full bandwidth range to user.

Reviewed-by: Michael West <michael.west@ettus.com>
Reviewed-by: Martin Braun <martin.braun@ettus.com>
2018-04-27 11:23:59 -07:00
Martin Braun
fb1b7b7868 ad936x: De-boostify ad936x_manager, minor cleanup
- 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
2018-04-26 13:14:47 -07:00
Martin Braun
d4eaee390d lib: move atomic.hpp and system_time.hpp to uhdlib 2018-04-06 18:39:11 -07:00
Ryan Marlow
d588005fd8 DDC/DUC: switch CORDIC -> DDS for all relevant variable names
- Bump compat number for DDC/DUC to 2.0
2018-03-22 17:48:30 -07:00
Patrick Sisterhen
85a975942f lib: add auto_timer profiling utility
Note: This tool is not considered done, complete, unchangeable, or
anything other than experimental.
2018-03-16 10:48:46 -07:00
Martin Braun
49520bfecb rfnoc: ctrl_iface cleanup
- 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
2018-03-16 10:48:46 -07:00
Martin Braun
60a911cd46 rfnoc/x300: Make sure peek32() and peek64() are called with actual addresses
Before, we were calling peeks with the number of the readback register.
2018-03-16 10:48:46 -07:00
Martin Braun
0d162db46c lib: Add include guards for xports.hpp 2018-03-14 15:22:01 -07:00
Martin Braun
6652eb4a03 uhd: Move internal headers to uhdlib/
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>
2018-03-14 15:17:44 -07:00
Martin Braun
7fa1f6ed07 uhd: Moved get_system_time outside of public API
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.
2018-03-05 13:53:45 -08:00
Martin Braun
347bb79d2a uhd: Removed atomic.hpp from public API
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.
2018-03-05 13:53:45 -08:00
Martin Braun
594030c1af uhd: Move some gpio_defs constants definitions out of headers
Reviewed-by: Trung Tran <trung.tran@ettus.com>
2018-02-27 09:52:19 -08:00
Martin Braun
9fb055a78a lib: Add 'prefs' API
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
2018-02-20 16:23:46 -08:00
Martin Braun
a99e89a689 lib: Add path_expandvars() internal API call 2018-02-20 16:23:46 -08:00
Martin Braun
ae5211d71d uhd: Update license headers
All copyright is now attributed to "Ettus Research, a National
Instruments company".

SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
74f45ae2a7 rfnoc: Factor out ceil_log2() into central location
- New file: uhdlib/utils/math.hpp
2018-02-19 14:51:47 -08:00
Martin Braun
eff796f64b rfnoc: Factored out FPGA compat check
- Applied changes to DUC and DDC blocks
- Fixed minor formatting
2018-02-19 14:51:47 -08:00
Martin Braun
4ebfea45f3 lib: Add config_parser class
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>
2018-02-01 06:35:37 +01:00
Martin Braun
e504e6d994 uhdlib: Update constrained_device_args_t
- Allow enums to be non-consecutive
- Move to uhdlib/
- Add unit tests
- Updated N230 use of constrained_device_args_t
2018-01-18 11:26:21 -08:00
Martin Braun
c48c57073d uhd: Add narrow_cast and narrow
Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
2018-01-12 13:18:03 -08:00
Martin Braun
fc8cd827f6 lib: Add non-public include directory
This is meant for headers that don't export symbols.
2017-12-22 14:59:23 -08:00