aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-13 12:22:03 -0800
committerJosh Blum <josh@joshknows.com>2011-01-13 12:22:03 -0800
commit41e774c7c38ed8498e8bfad877f237ed090238ce (patch)
tree6524261ccdcf364b31a1c27eb1268583d0fadf24 /host/lib/usrp/usrp1/io_impl.cpp
parent2b52aff10d68b66fce0004ff5a2a025288cee1c6 (diff)
downloaduhd-41e774c7c38ed8498e8bfad877f237ed090238ce.tar.gz
uhd-41e774c7c38ed8498e8bfad877f237ed090238ce.tar.bz2
uhd-41e774c7c38ed8498e8bfad877f237ed090238ce.zip
usrp1: implement soft time ctrl for send at, recv at
Diffstat (limited to 'host/lib/usrp/usrp1/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/io_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp
index 7107294b6..a88b6503a 100644
--- a/host/lib/usrp/usrp1/io_impl.cpp
+++ b/host/lib/usrp/usrp1/io_impl.cpp
@@ -208,6 +208,7 @@ size_t usrp1_impl::send(
const tx_metadata_t &metadata, const io_type_t &io_type,
send_mode_t send_mode, double timeout
){
+ _soft_time_ctrl->send_pre(metadata, timeout);
size_t num_samps_sent = vrt_packet_handler::send(
_io_impl->packet_handler_send_state, //last state of the send handler
buffs, num_samps, //buffer to fill
@@ -294,6 +295,7 @@ size_t usrp1_impl::recv(
0, //vrt header offset
_rx_subdev_spec.size() //num channels
);
+ _soft_time_ctrl->recv_post(metadata, num_samps_recvd);
//handle the polling for overflow conditions
_io_impl->overflow_poll_samp_count += num_samps_recvd;