aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-04 19:40:02 -0700
committerJosh Blum <josh@joshknows.com>2010-11-04 19:40:02 -0700
commit7c36bc7b7456225f613887a2b84ebefac2b1c208 (patch)
tree8722cdad5748a113924f7809d789aaefda94df4e /host/lib/usrp/usrp2/io_impl.cpp
parentc8cb4bcadc32e59e98fc2901eb94830f600d5d28 (diff)
parent7a7e704fa3d79036da1f33013e761eb747b725f0 (diff)
downloaduhd-7c36bc7b7456225f613887a2b84ebefac2b1c208.tar.gz
uhd-7c36bc7b7456225f613887a2b84ebefac2b1c208.tar.bz2
uhd-7c36bc7b7456225f613887a2b84ebefac2b1c208.zip
Merge branch 'good_stuff' into mb_eeprom
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index bbe9c273f..83b70bddc 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -236,6 +236,11 @@ size_t usrp2_impl::get_max_recv_samps_per_packet(void) const{
return bpp/_rx_otw_type.get_sample_size();
}
+static void handle_overflow(std::vector<usrp2_mboard_impl::sptr> &mboards, size_t chan){
+ std::cerr << "O" << std::flush;
+ mboards.at(chan/mboards.size())->handle_overflow();
+}
+
size_t usrp2_impl::recv(
const std::vector<void *> &buffs, size_t num_samps,
rx_metadata_t &metadata, const io_type_t &io_type,
@@ -248,6 +253,7 @@ size_t usrp2_impl::recv(
io_type, _rx_otw_type, //input and output types to convert
_mboards.front()->get_master_clock_freq(), //master clock tick rate
uhd::transport::vrt::if_hdr_unpack_be,
- boost::bind(&usrp2_impl::io_impl::get_recv_buffs, _io_impl.get(), _1, timeout)
+ boost::bind(&usrp2_impl::io_impl::get_recv_buffs, _io_impl.get(), _1, timeout),
+ boost::bind(&handle_overflow, _mboards, _1)
);
}