aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-09-19 16:37:58 -0500
committerMartin Braun <martin.braun@ettus.com>2019-09-20 16:33:30 -0500
commit22b9593dce1ad034ef84ee3609d2ccbceeb33098 (patch)
tree1e6ec1df273fe4a953025bbf5fac3141f85ecf74 /host
parent18bc320dc3348346255ab0d33aa319fb2618d7b3 (diff)
downloaduhd-22b9593dce1ad034ef84ee3609d2ccbceeb33098.tar.gz
uhd-22b9593dce1ad034ef84ee3609d2ccbceeb33098.tar.bz2
uhd-22b9593dce1ad034ef84ee3609d2ccbceeb33098.zip
examples: Add replay example to CMake
Diffstat (limited to 'host')
-rw-r--r--host/examples/CMakeLists.txt1
-rw-r--r--host/examples/replay_samples_from_file.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/host/examples/CMakeLists.txt b/host/examples/CMakeLists.txt
index 5894bb0a2..735795d55 100644
--- a/host/examples/CMakeLists.txt
+++ b/host/examples/CMakeLists.txt
@@ -36,6 +36,7 @@ if(ENABLE_RFNOC)
rfnoc_nullsource_ce_rx.cpp
rfnoc_rx_to_file.cpp
rfnoc_radio_loopback.cpp
+ replay_samples_from_file.cpp
benchmark_streamer.cpp
)
endif(ENABLE_RFNOC)
diff --git a/host/examples/replay_samples_from_file.cpp b/host/examples/replay_samples_from_file.cpp
index 8f022b4f2..9bd805ed8 100644
--- a/host/examples/replay_samples_from_file.cpp
+++ b/host/examples/replay_samples_from_file.cpp
@@ -69,7 +69,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
("radio-args", po::value<std::string>(&radio_args), "radio arguments")
("replay-id", po::value<size_t>(&replay_id)->default_value(0), "replay block to use (e.g., 0 or 1)")
("replay_chan", po::value<size_t>(&replay_chan)->default_value(0), "replay channel to use")
- ("nsamps", po::value<uint64_t>(&nsamps)->default_value(0), "number of samples to play (0 for infinite)")
+ ("nsamps", po::value<size_t>(&nsamps)->default_value(0), "number of samples to play (0 for infinite)")
("file", po::value<std::string>(&file)->default_value("usrp_samples.dat"), "name of the file to read binary samples from")
("freq", po::value<double>(&freq), "RF center frequency in Hz")
("rate", po::value<double>(&rate), "rate of radio block")
@@ -408,4 +408,4 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
cout << endl;
return EXIT_SUCCESS;
-} \ No newline at end of file
+}