commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 72/148: Logic for the start/end of burst bi


From: git
Subject: [Commit-gnuradio] [gnuradio] 72/148: Logic for the start/end of burst bits
Date: Mon, 15 Aug 2016 00:47:25 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.

commit 242b3983de148d75b0e425feceab8bd4b190a67f
Author: Josh Blum <address@hidden>
Date:   Mon Dec 14 10:47:07 2009 -0800

    Logic for the start/end of burst bits
---
 usrp2/host/lib/usrp2_impl.cc | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
index 102f5cb..07b89e5 100644
--- a/usrp2/host/lib/usrp2_impl.cc
+++ b/usrp2/host/lib/usrp2_impl.cc
@@ -702,21 +702,17 @@ namespace usrp2 {
     // fragment as necessary then fire away
 
     size_t nframes = (nitems + U2_MAX_SAMPLES - 1) / U2_MAX_SAMPLES;
-    size_t last_frame = nframes - 1;
 
     size_t n = 0;
     for (size_t fn = 0; fn < nframes; fn++){
+      //setup the burst flags (vrt header reserved bits)
       uint32_t burst_flags = 0;
-
-      if (fn == 0 and metadata->start_of_burst){
+      if ((metadata->send_now or metadata->start_of_burst) and fn == 0){
         burst_flags |= VRTH_START_OF_BURST;
       }
-      if (fn == last_frame and metadata->end_of_burst){
+      if ((metadata->send_now or metadata->end_of_burst) and fn == nframes - 
1){
         burst_flags |= VRTH_END_OF_BURST;
       }
-      if (metadata->send_now){
-        burst_flags |= VRTH_START_OF_BURST | VRTH_END_OF_BURST;
-      }
 
       //calculate the packet length
       size_t i = std::min((size_t) U2_MAX_SAMPLES, nitems - n);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]