summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-18 14:59:36 -0800
committerJosh Blum <josh@joshknows.com>2011-01-18 14:59:36 -0800
commit8e0fbbe47b3c0b2805d2a638da7f363bee2240fd (patch)
tree40fad54b97737d5f27a917de1930b7d940ccea1c
parent24c3565f9f887045e414652edffd6b5536f8c7a5 (diff)
downloaduhd-8e0fbbe47b3c0b2805d2a638da7f363bee2240fd.tar.gz
uhd-8e0fbbe47b3c0b2805d2a638da7f363bee2240fd.tar.bz2
uhd-8e0fbbe47b3c0b2805d2a638da7f363bee2240fd.zip
usrp1: set eob on md when shutting off receiver, because we can
-rw-r--r--host/docs/usrp1.rst4
-rw-r--r--host/lib/usrp/usrp1/soft_time_ctrl.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/host/docs/usrp1.rst b/host/docs/usrp1.rst
index a8d3193fd..0a8224850 100644
--- a/host/docs/usrp1.rst
+++ b/host/docs/usrp1.rst
@@ -80,7 +80,7 @@ List of emulated features
* Transmitting at a specific time
* Receiving at a specific time
* Receiving a specific number of samples
-* Start and end burst flags on transmit
+* End of burst flags for transmit/receive
**Note:**
These emulated features rely on the host system's clock for timed operations,
@@ -93,7 +93,7 @@ List of missing features
* Notification on late transmit packet
* Notification on broken chain error
* Notification on underflow or overflow
-* Start and end burst flags for receive
+* Start of burst flags for transmit/receive
------------------------------------------------------------------------
OS specific notes
diff --git a/host/lib/usrp/usrp1/soft_time_ctrl.cpp b/host/lib/usrp/usrp1/soft_time_ctrl.cpp
index 512327150..4d6abe218 100644
--- a/host/lib/usrp/usrp1/soft_time_ctrl.cpp
+++ b/host/lib/usrp/usrp1/soft_time_ctrl.cpp
@@ -122,6 +122,7 @@ public:
//Rewrite the sample count to clip to the requested number of samples.
if (_nsamps_remaining <= nsamps){
nsamps = _nsamps_remaining; //set nsamps, then stop
+ md.end_of_burst = true;
stream_on_off(false);
return;
}