aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_timed_samples.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-30 14:07:19 -0700
committerJosh Blum <josh@joshknows.com>2010-03-30 14:07:19 -0700
commitf9be69cae7c0fd9bca8b310ff79dd6aad958dc2b (patch)
tree42c05c3501de70c7eddf1aa46c301a6216d270f9 /host/examples/rx_timed_samples.cpp
parent5a08586157ed23ebc1344583d21fa56fb27cbe52 (diff)
downloaduhd-f9be69cae7c0fd9bca8b310ff79dd6aad958dc2b.tar.gz
uhd-f9be69cae7c0fd9bca8b310ff79dd6aad958dc2b.tar.bz2
uhd-f9be69cae7c0fd9bca8b310ff79dd6aad958dc2b.zip
Added io type and otw type for describing types.
Diffstat (limited to 'host/examples/rx_timed_samples.cpp')
-rw-r--r--host/examples/rx_timed_samples.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 5d4b5a68d..88e112584 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -80,7 +80,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
while(num_acc_samps < total_num_samps){
uhd::rx_metadata_t md;
std::complex<float> buff[1000];
- size_t num_rx_samps = dev->recv(boost::asio::buffer(buff, sizeof(buff)), md, "32fc");
+ size_t num_rx_samps = dev->recv(
+ boost::asio::buffer(buff, sizeof(buff)),
+ md, uhd::io_type_t::COMPLEX_FLOAT32
+ );
if (num_rx_samps == 0) continue; //wait for packets with contents
std::cout << boost::format("Got packet: %u samples, %u secs, %u ticks")