aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/gain_group.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Replace all occurrences of boost::bind with std::bindMartin Braun2019-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | Note: Replacing everything with a lambda would be even better, but that can't be easily scripted so we'll do this as a first step to reduce the Boost footprint. This also removes occurences of #include <boost/bind.hpp>, and makes sure all usages of std::bind have an #include <functional>. clang-format wasn't always applied to minimize the changeset in this commit, however, it was applied to the blocks of #includes. Due to conflicts with other Boost libraries, the placeholders _1, _2, etc. could not be directly used, but had to be explicitly called out (as std::placeholders::_1, etc.). This makes the use of std::bind even uglier, which serves as another reminder that using std::bind (and even more so, boost::bind) should be avoided. nirio/rpc/rpc_client.cpp still contains a reference to boost::bind. It was not possible to remove it by simply doing a search and replace, so it will be removed in a separate commit.
* gain groups: FormattingBrent Stapleton2019-11-261-64/+77
| | | | Applying formatting in anticipation of upcoming changes.
* gain_groups: Add zero-value gain groupsBrent Stapleton2019-11-261-0/+11
| | | | | | | | | | | | | | | Add convenience factory for making a gain group that has a single zero-valued element. This factory requires a name, which should probably be ALL_GAINS, or something similar (these constants are device-specific). Using this new make_zero factory in the X300 radio control when we don't find any gain elements so that our gain groups aren't empty. This simplifies our later setters/getters because we know that we'll always have _something_ cached. Note that we only register this zero value gain group for TX, as our ADC is registered as a gain element, so our RX gain groups are never empty.
* lib: update get_range of gain_groupTrung N Tran2018-04-181-2/+5
| | | | Need to skip zero gain step
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-2/+2
|
* uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-101-7/+6
| | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* utils: Fixed minor rounding issue in gain_groupMartin Braun2017-01-041-2/+6
|
* lib: Removed superfluous variable in gain_groupMartin Braun2016-11-281-2/+0
|
* Added missing pure virtual destructors to base classesNicholas Corgan2014-09-011-1/+5
|
* Added check and handling for gain names.Michael West2014-01-301-3/+3
|
* uhd: replaced many conditional prints with UHD_LOG usageJosh Blum2011-05-041-3/+3
|
* uhd: switch algorithm namespace to uhdJosh Blum2011-02-241-3/+3
|
* uhd: renamed the assert header to assert hasJosh Blum2011-02-241-1/+1
| | | | | | | | only the assert has implementation is in this header uhd assert throw moved to the exception header updated code base includes to match
* uhd: replace all the instances of float not pertaining to io types with ↵Josh Blum2011-01-111-9/+9
| | | | double, simplifies life
* uhd: update copyright datesJosh Blum2011-01-051-1/+1
|
* uhd: replaced templated ranges with one range thing using doubles only to ↵Josh Blum2011-01-051-9/+9
| | | | avoid trouble with compiler portability
* uhd: created a meta range that is a range of ranges for gains and freqsJosh Blum2010-11-101-11/+11
| | | | | | | | | | | | | | 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)
* uhd: added name parameter to gain group, get range, set/get value by nameJosh Blum2010-10-201-4/+22
|
* uhd: created floor_step to handle floating-point errors in gain groupJosh Blum2010-08-121-6/+25
|
* uhd: fix device recv docs on timeout, also fix typoJosh Blum2010-08-081-1/+1
|
* uhd: use int to round down for gain groupJosh Blum2010-08-061-5/+2
|
* Merge branch 'master' into codec_gainsJosh Blum2010-08-041-0/+152
Conflicts: host/lib/CMakeLists.txt host/lib/utils/gain_handler.cpp