aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-19 18:56:33 -0700
committerJosh Blum <josh@joshknows.com>2010-07-19 18:56:33 -0700
commit20381a1c839ded4eb58728d3a1fd3a952d2444f6 (patch)
tree50d1de0b3a05a90ce94fb19e0981478072ca7ebe /host/lib/usrp/usrp2/io_impl.cpp
parentef9a395414acc203cc02e551e1790277cd0ef1f9 (diff)
downloaduhd-20381a1c839ded4eb58728d3a1fd3a952d2444f6.tar.gz
uhd-20381a1c839ded4eb58728d3a1fd3a952d2444f6.tar.bz2
uhd-20381a1c839ded4eb58728d3a1fd3a952d2444f6.zip
usrp2: added registers and handling for tx async reports
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 430f28390..e4a49184e 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -95,6 +95,12 @@ void usrp2_impl::io_impl::recv_pirate_loop(
if_packet_info.num_packet_words32 = buff->size()/sizeof(boost::uint32_t);
vrt::if_hdr_unpack_be(buff->cast<const boost::uint32_t *>(), if_packet_info);
+ //handle a tx async report message (TODO forward info)
+ if (if_packet_info.sid == 1 and if_packet_info.packet_type != vrt::if_packet_info_t::PACKET_TYPE_DATA){
+ std::cerr << "U";
+ continue;
+ }
+
//handle the packet count / sequence number
if (if_packet_info.packet_count != next_packet_seq){
//std::cerr << "S" << (if_packet_info.packet_count - next_packet_seq)%16;