aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/test_async_messages.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-27 16:37:08 -0700
committerJosh Blum <josh@joshknows.com>2010-10-27 16:37:08 -0700
commitf9edd3865ca0f61a9e80fd917521b49292d5ecb1 (patch)
tree5afaf7a691dbb5849c624c8af46501ddd414be9e /host/examples/test_async_messages.cpp
parent971f6de77c6b67515b5d37d748e823da155b310c (diff)
parent630c007bbbabce90ffe3578d47ad7acc187bdc30 (diff)
downloaduhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.gz
uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.bz2
uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.zip
Merge branch 'next' into flow_ctrl
Conflicts: host/include/uhd/types/metadata.hpp
Diffstat (limited to 'host/examples/test_async_messages.cpp')
-rw-r--r--host/examples/test_async_messages.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/examples/test_async_messages.cpp b/host/examples/test_async_messages.cpp
index 61db7ec04..b1d9d56d4 100644
--- a/host/examples/test_async_messages.cpp
+++ b/host/examples/test_async_messages.cpp
@@ -31,13 +31,13 @@
namespace po = boost::program_options;
/*!
- * Test the eob ack message:
+ * Test the burst ack message:
* Send a burst of many samples that will fragment internally.
- * We expect to get an eob ack async message.
+ * We expect to get an burst ack async message.
*/
-bool test_eob_ack_message(uhd::usrp::single_usrp::sptr sdev){
+bool test_burst_ack_message(uhd::usrp::single_usrp::sptr sdev){
uhd::device::sptr dev = sdev->get_device();
- std::cout << "Test eob ack message... " << std::flush;
+ std::cout << "Test burst ack message... " << std::flush;
uhd::tx_metadata_t md;
md.start_of_burst = true;
@@ -63,10 +63,10 @@ bool test_eob_ack_message(uhd::usrp::single_usrp::sptr sdev){
}
switch(async_md.event_code){
- case uhd::async_metadata_t::EVENT_CODE_EOB_ACK:
+ case uhd::async_metadata_t::EVENT_CODE_BURST_ACK:
std::cout << boost::format(
"success:\n"
- " Got event code eob ack message.\n"
+ " Got event code burst ack message.\n"
) << std::endl;
return true;
@@ -222,8 +222,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//------------------------------------------------------------------
static const uhd::dict<std::string, boost::function<bool(uhd::usrp::single_usrp::sptr)> >
tests = boost::assign::map_list_of
- ("Test EOB ACK ", &test_eob_ack_message)
- ("Test Underflow ", &test_underflow_message)
+ ("Test Burst ACK ", &test_burst_ack_message)
+ ("Test Underflow ", &test_underflow_message)
("Test Time Error", &test_time_error_message)
;