aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-06 09:25:54 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:11 -0700
commitfac15db5d77c5196badb4a06f2f5fec34eb57337 (patch)
treeb5cb44f47bc713a7205fa57b9f193f03a21745f2 /host/examples
parentfa6d1380918e655a66cd209d7be3b0b31c61e907 (diff)
downloaduhd-fac15db5d77c5196badb4a06f2f5fec34eb57337.tar.gz
uhd-fac15db5d77c5196badb4a06f2f5fec34eb57337.tar.bz2
uhd-fac15db5d77c5196badb4a06f2f5fec34eb57337.zip
uhd: renamed some of the stream types and functions
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/benchmark_rate.cpp8
-rw-r--r--host/examples/latency_test.cpp6
-rw-r--r--host/examples/rx_ascii_art_dft.cpp4
-rw-r--r--host/examples/rx_multi_samples.cpp4
-rw-r--r--host/examples/rx_samples_to_file.cpp4
-rw-r--r--host/examples/rx_samples_to_udp.cpp4
-rw-r--r--host/examples/rx_timed_samples.cpp4
-rw-r--r--host/examples/test_messages.cpp6
-rw-r--r--host/examples/tx_bursts.cpp4
-rw-r--r--host/examples/tx_samples_from_file.cpp4
-rw-r--r--host/examples/tx_timed_samples.cpp4
-rw-r--r--host/examples/tx_waveforms.cpp4
12 files changed, 28 insertions, 28 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp
index 7862bd44b..fce184514 100644
--- a/host/examples/benchmark_rate.cpp
+++ b/host/examples/benchmark_rate.cpp
@@ -44,8 +44,8 @@ void benchmark_rx_rate(uhd::usrp::multi_usrp::sptr usrp){
uhd::set_thread_priority_safe();
//create a receive streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
//print pre-test summary
std::cout << boost::format(
@@ -98,8 +98,8 @@ void benchmark_tx_rate(uhd::usrp::multi_usrp::sptr usrp){
uhd::set_thread_priority_safe();
//create a transmit streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//print pre-test summary
std::cout << boost::format(
diff --git a/host/examples/latency_test.cpp b/host/examples/latency_test.cpp
index b995b0433..518d2383a 100644
--- a/host/examples/latency_test.cpp
+++ b/host/examples/latency_test.cpp
@@ -84,9 +84,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::vector<std::complex<float> > buffer(nsamps);
//create RX and TX streamers
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//initialize result counts
int time_error = 0;
diff --git a/host/examples/rx_ascii_art_dft.cpp b/host/examples/rx_ascii_art_dft.cpp
index 14b83fb65..2e5bbba9d 100644
--- a/host/examples/rx_ascii_art_dft.cpp
+++ b/host/examples/rx_ascii_art_dft.cpp
@@ -148,8 +148,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
//create a receive streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
//allocate recv buffer and metatdata
uhd::rx_metadata_t md;
diff --git a/host/examples/rx_multi_samples.cpp b/host/examples/rx_multi_samples.cpp
index 56aed60af..7561f1285 100644
--- a/host/examples/rx_multi_samples.cpp
+++ b/host/examples/rx_multi_samples.cpp
@@ -113,10 +113,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//create a receive streamer
//linearly map channels (index0 = channel0, index1 = channel1, ...)
- uhd::streamer_args stream_args("fc32"); //complex floats
+ uhd::stream_args_t stream_args("fc32"); //complex floats
for (size_t chan = 0; chan < usrp->get_rx_num_channels(); chan++)
stream_args.channels.push_back(chan); //linear mapping
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
//setup streaming
std::cout << std::endl;
diff --git a/host/examples/rx_samples_to_file.cpp b/host/examples/rx_samples_to_file.cpp
index 58bd158a5..605439748 100644
--- a/host/examples/rx_samples_to_file.cpp
+++ b/host/examples/rx_samples_to_file.cpp
@@ -39,8 +39,8 @@ template<typename samp_type> void recv_to_file(
size_t samps_per_buff
){
//create a receive streamer
- uhd::streamer_args stream_args(cpu_format);
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::stream_args_t stream_args(cpu_format);
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
uhd::rx_metadata_t md;
std::vector<samp_type> buff(samps_per_buff);
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index 3db436ad5..cf7fd493a 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -131,8 +131,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
//create a receive streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
//setup streaming
uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE);
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 6389375d9..0851593cd 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -71,8 +71,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
usrp->set_time_now(uhd::time_spec_t(0.0));
//create a receive streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
//setup streaming
std::cout << std::endl;
diff --git a/host/examples/test_messages.cpp b/host/examples/test_messages.cpp
index 668f25ef3..f24a172d1 100644
--- a/host/examples/test_messages.cpp
+++ b/host/examples/test_messages.cpp
@@ -302,9 +302,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::cout << boost::format("Using Device: %s") % usrp->get_pp_string() << std::endl;
//create RX and TX streamers
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::rx_streamer::sptr rx_stream = usrp->get_rx_streamer(stream_args);
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args);
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//------------------------------------------------------------------
// begin messages test
diff --git a/host/examples/tx_bursts.cpp b/host/examples/tx_bursts.cpp
index 98853ce20..f5ae18a9f 100644
--- a/host/examples/tx_bursts.cpp
+++ b/host/examples/tx_bursts.cpp
@@ -94,8 +94,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
usrp->set_time_now(uhd::time_spec_t(0.0));
//create a transmit streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//allocate buffer with data to send
const size_t spb = tx_stream->get_max_num_samps();
diff --git a/host/examples/tx_samples_from_file.cpp b/host/examples/tx_samples_from_file.cpp
index 09939183b..964c6cea8 100644
--- a/host/examples/tx_samples_from_file.cpp
+++ b/host/examples/tx_samples_from_file.cpp
@@ -34,8 +34,8 @@ template<typename samp_type> void send_from_file(
size_t samps_per_buff
){
//create a transmit streamer
- uhd::streamer_args stream_args(cpu_format);
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args(cpu_format);
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
uhd::tx_metadata_t md;
md.start_of_burst = false;
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp
index 3daf1974a..3b8cc75d4 100644
--- a/host/examples/tx_timed_samples.cpp
+++ b/host/examples/tx_timed_samples.cpp
@@ -74,8 +74,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
usrp->set_time_now(uhd::time_spec_t(0.0));
//create a transmit streamer
- uhd::streamer_args stream_args("fc32"); //complex floats
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::stream_args_t stream_args("fc32"); //complex floats
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//allocate buffer with data to send
std::vector<std::complex<float> > buff(tx_stream->get_max_num_samps(), std::complex<float>(ampl, ampl));
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp
index 9aa3ec71f..1eb6c2f1e 100644
--- a/host/examples/tx_waveforms.cpp
+++ b/host/examples/tx_waveforms.cpp
@@ -204,10 +204,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//create a transmit streamer
//linearly map channels (index0 = channel0, index1 = channel1, ...)
- uhd::streamer_args stream_args("fc32");
+ uhd::stream_args_t stream_args("fc32");
for (size_t chan = 0; chan < usrp->get_tx_num_channels(); chan++)
stream_args.channels.push_back(chan); //linear mapping
- uhd::tx_streamer::sptr tx_stream = usrp->get_tx_streamer(stream_args);
+ uhd::tx_streamer::sptr tx_stream = usrp->get_tx_stream(stream_args);
//allocate a buffer which we re-use for each channel
std::vector<std::complex<float> > buff(spb);