aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/txrx_loopback_to_file.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-1/+1
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* uhd: Replace all occurrences of boost::bind with std::bindMartin Braun2019-11-261-1/+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.
* uhd: Replace usage of boost smart pointers with C++11 counterpartsMartin Braun2019-11-261-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Examples: wrap up ref setting with option checknatetemple2019-11-241-3/+5
|
* examples: remove thread priority elevationCiro Nishiguchi2019-10-221-2/+0
| | | | | | | Remove UHD call to elevate thread priority to realtime. Setting all threads to the same realtime priority can cause the threads to not share access to the network interface fairly, which adversely affects operation of the worker threads in UHD.
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-161-187/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* examples: utils: skip formatting program optionsBrent Stapleton2019-01-161-0/+2
| | | | | | Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something.
* uhd: fix rx antenna not being applied in txrx exampleMark Meserve2018-11-161-2/+3
|
* uhd: update settling time to double in txrx_loopback_to_file exampleDaniel Jepson2018-04-101-4/+4
|
* uhd: increase tx buffer fill time for txrx_loopback_to_file exampleDaniel Jepson2018-04-101-1/+1
| | | | | The previous 0.1s fill time occasionally prevented rx from starting on time when settling is set to the same 0.1s time. It was increased to 0.5s.
* uhd: fix subdevice selection order in txrx_loopback_to_file exampleDaniel Jepson2018-04-101-4/+4
|
* 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: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-1/+1
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-291-5/+4
|
* examples: TX/RX loopback stopping condition was reversedPaul David2016-03-031-1/+1
| | | No data was getting stored.
* examples: TX/RX loopback could run forever if the exact number of samples ↵DaulPavid2016-03-031-1/+1
| | | | isn't received
* Merge branch 'maint'Martin Braun2015-03-111-2/+2
|\ | | | | | | | | Conflicts: host/include/uhd/transport/vrt_if_packet.hpp
| * uhd: Fixed several type-cast related warnings for naggy compilersMartin Braun2015-03-111-2/+2
| |
* | Merge branch 'maint'Martin Braun2015-02-121-2/+2
|\| | | | | | | | | Conflicts: host/examples/rx_samples_to_file.cpp
| * examples: Show set_rx_bandwidth units properly in MHz in all examplesRajib Bhattacharjea2015-02-091-2/+2
| | | | | | | | | | Conflicts: host/examples/rx_samples_to_file.cpp
* | Merge branch 'maint'Martin Braun2015-01-081-33/+43
|\|
| * examples: Fixed multi-channel gain and freq setup for txrx_loopback_to_fileMartin Braun2015-01-081-33/+43
| |
* | Merge branch 'maint'Martin Braun2014-12-151-8/+8
|\| | | | | | | | | Conflicts: host/examples/rx_samples_to_file.cpp
| * host/examples: rm'ed refs to d'boards, IF freq.Marcus Müller2014-12-121-8/+8
| | | | | | | | | | To reflect a reality where some USRPs don't have daughterboards, and set_xx_bandwidth doesn't necessarily set an /IF/ bandwidth.
| * examples: Fixed multi-channel opsMartin Braun2014-11-121-7/+52
| |
* | examples: Fixed multi-channel opsMartin Braun2014-11-131-6/+53
| |
* | examples: Whitespace and other cleanupMartin Braun2014-10-281-48/+1
|/
* uhd: Added nicer error reporting to rx examplesMartin Braun2014-04-101-2/+2
|
* Pushing the bulk of UHD-3.7.0 code.Ben Hilburn2014-02-141-2/+2
|
* 120 MHz daughterboard support, Integer-N tuning, ADF435x code consolidationNicholas Corgan2014-01-241-3/+10
| | | | | | | * Added support for new CBX-120, SBX-120, and WBX-120 daughterboards * Added implementation of Integer-N tuning for all CBX, SBX, and WBX daughterboards * Added --int-n option to examples to show how to use Integer-N tuning API * Removed duplicate ADF4350/ADF4351 code and moved it to common/adf435x_common.cpp
* examples: changed examples that force usage of all channels to allow user to ↵Nicholas Corgan2013-08-261-17/+44
| | | | input which channels to use
* uhd: added new calls to streamer object + support workJosh Blum2013-07-151-1/+1
| | | | | | | * The transmit streamer gives access to the async msg queue. * The receive streamer gives access to the issue stream cmd. * Supporting usrp implementation files updated. * Example applications updated to use this API.
* examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectivelyMoritz Fischer2012-10-261-1/+1
| | | | instead of 0 and 1.
* Created example for simultaneous transmit and receive to fileJason Abele2012-05-141-0/+447
Updates to allow rx to wait until tx settles