aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_waveforms.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Remove all occurences of boost::math::*round()Martin Braun2021-06-241-2/+2
| | | | | | | 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.
* examples: Add --power command line option to tx_waveformsMartin Braun2020-04-171-18/+35
| | | | | | | | | | | | | | If you run tx_waveforms --power -20 [other args] it will try to set the out power to -20 dBm. The signal amplitude is factored in, so changing --ampl will not change the actual TX power unless it causes clipping, or becomes too low. If the USRP does not support setting a power, the program will terminate early. If it does support setting a power, but can't reach the requested power, it will coerce, and print the actual, available power.
* Examples: wrap up ref setting with option checknatetemple2019-11-241-1/+3
|
* 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-102/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* examples: Improved error message in tx_waveformsDerek Kozel2019-01-141-2/+6
| | | | Non-CONST type waveforms require a non-zero wave freq
* Examples: Add lo-offset to tx_waveformsnatetemple2019-01-101-2/+6
|
* examples: optimize tx_waveforms memory allocationsBrent Stapleton2019-01-031-5/+10
| | | | | | | Move filling the TX buffer outside the critical path. Now, we pre-fill the TX buffer before entering the send loop (and before setting the TX stream time), and fill the TX buffer after calling send() (for the next iteration).
* examples: formatting in tx_waveformsBrent Stapleton2019-01-031-2/+8
| | | | | - Format `if` statements to multiple lines - Add quick comment on the exit checks
* examples: Select subdev spec before setting channelsSugandha Gupta2018-06-121-4/+3
|
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-301-4/+5
| | | | Replace with std::this_thread::sleep_for().
* examples: Fix some minor compiler warningsMartin Braun2018-02-191-3/+6
| | | | All warnings reported by MSVC. Mostly related to narrowing conversions.
* 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-4/+4
|
* uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-101-1/+0
| | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* examples: tx_waveforms was always checking lo_lock on channel 0, regardless ↵Martin Braun2016-08-111-5/+7
| | | | of channel used
* examples: added options for specifying number of samples to transmitPaul David2016-04-041-4/+14
|
* UHD: Add pps source option to tx_waveforms examplemichael-west2015-09-011-11/+30
|
* Merge branch 'maint'Martin Braun2015-07-141-8/+18
|\ | | | | | | | | | | | | | | | | | | Conflicts: fpga-src host/CMakeLists.txt host/cmake/Modules/UHDVersion.cmake host/lib/usrp/b200/b200_impl.hpp host/lib/usrp/e300/e300_fpga_defs.hpp host/lib/usrp/x300/x300_fw_common.h
| * examples: Improved tx_waveform multi-channel syncMartin Braun2015-07-141-8/+18
| |
* | Merge branch 'maint'Martin Braun2014-12-151-4/+4
|\| | | | | | | | | Conflicts: host/examples/rx_samples_to_file.cpp
| * host/examples: rm'ed refs to d'boards, IF freq.Marcus Müller2014-12-121-4/+4
| | | | | | | | | | To reflect a reality where some USRPs don't have daughterboards, and set_xx_bandwidth doesn't necessarily set an /IF/ bandwidth.
* | examples: Whitespace and other cleanupMartin Braun2014-10-281-48/+1
|/
* examples: Minor change to tx_waveforms example.Moritz Fischer2014-10-071-3/+3
| | | | Signed-off-by: Moritz Fischer <moritz@ettus.com>
* Pushing the bulk of UHD-3.7.0 code.Ben Hilburn2014-02-141-1/+1
|
* 120 MHz daughterboard support, Integer-N tuning, ADF435x code consolidationNicholas Corgan2014-01-241-2/+5
| | | | | | | * 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-12/+27
| | | | input which channels to use
* examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectivelyMoritz Fischer2012-10-261-1/+1
| | | | instead of 0 and 1.
* uhd: added setup sleep to tx waveformsJosh Blum2012-03-231-1/+4
|
* uhd: add over-the-wire option to tx waveformsJosh Blum2012-02-121-2/+3
|
* uhd: typo fix in tx waveforms optionsJosh Blum2012-01-031-1/+1
|
* uhd: simplification for tx waveformsJosh Blum2011-11-111-5/+3
|
* uhd: updated ref sensor checks for new option namesJosh Blum2011-11-101-2/+2
|
* uhd: performance improvement for tx waveforms using integer table lookupJosh Blum2011-11-101-8/+7
|
* uhd: modify examples to use new time/clock source APIJosh Blum2011-11-071-13/+2
|
* uhd: performance speed up for tx waveforms, no iterative libmath per sampleJosh Blum2011-11-061-2/+3
|
* uhd: renamed some of the stream types and functionsJosh Blum2011-11-031-2/+2
|
* uhd: updated examples to use new streamer interfaceJosh Blum2011-11-031-9/+9
|
* uhd: specify range on tx_waveforms --amplJosh Blum2011-10-101-1/+1
|
* Updates to example appsJason Abele2011-09-211-1/+37
| | | | | | Add --ref option to specify mboard clock reference source Add check for lock to mboard clock reference (where applicable) Add check of daughterboard LO lock detect (where applicable)
* uhd: many tweaks for tx_waveforms including performanceJosh Blum2011-06-071-59/+64
|
* tx_waveforms: don't have to set time_spec for every pkt in the streamNick Foster2011-05-261-2/+2
|
* tx_waveform: no SOB for continuous streamingNick Foster2011-05-261-3/+1
|
* UHD: make tx_waveforms MIMO-capableNick Foster2011-05-261-27/+47
|
* uhd: added missing set_tx_antenna() in tx waveformsJosh Blum2011-03-151-0/+3
|
* uhd: added continuous streaming and new options to tx_waveformsJosh Blum2011-03-111-19/+47
|
* uhd: replaced std::vector<type> for buffer arguments in send/recvJosh Blum2011-02-091-1/+1
| | | | | | | | | Created new type ref_vector for representing a vector of pointers. Can be created from std::vector or a pointer. Removes the convenience constrcutors for send/recv, its not needed. Removes malloc/free overhead when using send/recv with pointer.