Commit graph

16 commits

Author SHA1 Message Date
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
1fe98e8701 uhd: Replace usage of boost smart pointers with C++11 counterparts
This removes the following Boost constructs:
- boost::shared_ptr, boost::weak_ptr
- boost::enable_shared_from_this
- boost::static_pointer_cast, boost::dynamic_pointer_cast

The appropriate includes were also removed. All C++11 versions of these
require #include <memory>.
Note that the stdlib and Boost versions have the exact same syntax, they
only differ in the namespace (boost vs. std). The modifications were all
done using sed, with the exception of boost::scoped_ptr, which was
replaced by std::unique_ptr.

References to boost::smart_ptr were also removed.

boost::intrusive_ptr is not removed in this commit, since it does not
have a 1:1 mapping to a C++11 construct.
2019-11-26 12:21:32 -08:00
Martin Braun
52138314a4 uhd: Replace all usage of boost::noncopyable with uhd::noncopyable
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.
2019-02-15 11:12:54 -08:00
Martin Braun
18cda8029f usrp2: Re-add ability to modulate in the DAC
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>
2018-03-28 14:21:35 -07: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
4f948e2c8b Move all license headers to SPDX format. 2017-12-22 10:45:51 -08:00
Nicholas Corgan
654c5b06c0 Added missing pure virtual destructors to base classes 2014-09-01 17:58:24 +02:00
Josh Blum
12223186e7 fifo ctrl: spi core work and host implementation 2012-03-23 14:36:56 -07:00
Josh Blum
261bb80d73 uhd: update copyright dates on host code 2011-01-13 16:22:07 -08:00
Josh Blum
395bbbbc11 uhd: replace all the instances of float not pertaining to io types with double, simplifies life 2011-01-11 19:46:45 -08:00
Josh Blum
f3bf32df9f usrp-n: set ad9777 mod mode to transmit above nyquist of DSP 2010-12-03 15:54:04 -05:00
Nick Foster
8784cf70df ADC gain control works.
Separated digital gain and fine gain correction into separate buckets. Changed the rounding policy of gain_group to floor() rather than round().
2010-07-28 15:40:43 -07:00
Nick Foster
02f5347c71 Added gain support for USRP2+ ADC. 2010-07-27 13:56:59 -07:00
Josh Blum
f2b560d5f8 Prepend usrp2 onto the helper classes in usrp2 impl to avoid symbol conflicts. 2010-06-04 12:16:09 -07:00
Josh Blum
7c7b0d0a0d Added a place for serdes control on the host.
Fix bug in codec control.
Comment out some clock control in fw code.
2010-05-10 16:37:12 -07:00
Josh Blum
bf7ef6aeb5 Moved adc and dac control into codec control source file.
The codec control powers down the chips on destruction.
2010-05-10 15:14:48 -07:00