| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
In multiple places in the UHD code, we were doing the same calculation
for a wrapped frequency (wrap it into the first Nyquist zone). This math
was using boost::math, too. Instead of editing every instance, we create
a new function, uhd::math::wrap_frequency(), and replace all of its
separate implementations with this function. The new function also no
longer relies on boost::math::sign.
|
|
|
|
|
|
|
| |
Its behaviour is almost identical to std::lround, which we use instead.
The only downside of std::lround is that it always returns a long, which
we don't always need. We thus add some casts for those cases to make the
compiler happy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The checks from the new clang-tidy file are applied to the source tree
using:
$ find . -name "*.cpp" | sort -u | xargs \
--max-procs 8 --max-args 1 clang-tidy --format-style=file \
--fix -p /path/to/compile_commands.json
Note: This is the same procedure as 107a49c0, but applied to all the new
code since then.
|
|
|
|
|
| |
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This replaces all of the following with standard C++ features:
- boost::tuple
- boost::make_tuple
- boost::tuple::get
- #include <boost/tuple/tuple.hpp>
All usages were replaced with search-and-replace scripts (the usages of
get could be automatically replaced with a vim macro, the rest was
straightforward search-and-replace).
|
|
|
|
|
|
|
| |
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
types)
- Also removes all references to boost/cstdint.hpp and replaces it with
stdint.h (The 'correct' replacement would be <cstdint>, but not all of our
compilers support that).
|
|
|
|
|
|
| |
Use std::abs() instead of abs().
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
|
| |
|
| |
|
|
|
|
| |
This patch does not work. A possibile solution will be added to master.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
And removed the calls on the sptr resets (not needed now).
|
| |
|
|
|
|
| |
logic
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
only the assert has implementation is in this header
uhd assert throw moved to the exception header
updated code base includes to match
|
|
|
|
|
|
| |
today we added shutoff the DAC when not transmitting using EOB as an indicator
added various other features and cleaned up code for soft time control
|
| |
|
|
|
|
| |
double, simplifies life
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
created a templated range that that holds a start, stop, and step
created a meta-range template that is a vector of ranges
meta-range can calculate the overall start, stop, step
or be indexed to get at components
replaced instances of range.min, max, step with the functions
start() stop() and step()
the xcvr frequency range is now expressed in as two ranges
(have to fix its clip function though)
|
| |
|
|\ |
|
| | |
|
|/
|
|
| |
TVRX should be in there. Not debugged.
|
| |
|
| |
|
|
|
|
|
|
| |
The AD9862 datasheet states that maximum gain is achieved with
a value of 111111 (0x3f), however, empirical testing reveals that
the gain scaling value spans the full register width of 8-bits.
|
| |
|
| |
|
|
|
|
|
|
| |
everything that should have two is now stored into a dictionary of slot to type
the set and get functions are now bound with a third argument for dboard slot
the dboard iface has yet to be completed with the correct registers for a vs b
|
|
|
|
|
|
|
|
| |
made usb checking changes
implemented named_prop_t::extract change
copied the remainder of the codec pga gain control
|
|
|