diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-03 12:44:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-03 12:44:39 -0700 |
commit | 8a4ed30b9a9fcf7666c823a40b046dc39a1be84f (patch) | |
tree | 1ff2a911237f835715eed3bfaffff612bdd1ac57 /host/examples/tx_timed_samples.cpp | |
parent | 088f8659315e6c4b6a2af24767e837ab7f0cb81f (diff) | |
download | uhd-8a4ed30b9a9fcf7666c823a40b046dc39a1be84f.tar.gz uhd-8a4ed30b9a9fcf7666c823a40b046dc39a1be84f.tar.bz2 uhd-8a4ed30b9a9fcf7666c823a40b046dc39a1be84f.zip |
uhd: just send a mini EOB packet for tx timed samplesa
Diffstat (limited to 'host/examples/tx_timed_samples.cpp')
-rw-r--r-- | host/examples/tx_timed_samples.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp index 79aa6738c..858de83d2 100644 --- a/host/examples/tx_timed_samples.cpp +++ b/host/examples/tx_timed_samples.cpp @@ -90,9 +90,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ while(num_acc_samps < total_num_samps){ size_t samps_to_send = std::min(total_num_samps - num_acc_samps, buff.size()); - //ensure the the last packet has EOB set - md.end_of_burst = samps_to_send < buff.size(); - //send a single packet size_t num_tx_samps = usrp->get_device()->send( &buff.front(), samps_to_send, md, @@ -109,6 +106,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ num_acc_samps += num_tx_samps; } + //send a mini EOB packet + md.end_of_burst = true; + usrp->get_device()->send("", 0, md, + uhd::io_type_t::COMPLEX_FLOAT32, + uhd::device::SEND_MODE_FULL_BUFF + ); + std::cout << std::endl << "Waiting for async burst ACK... " << std::flush; uhd::async_metadata_t async_md; bool got_async_burst_ack = false; |