commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6250 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r6250 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Fri, 31 Aug 2007 23:35:51 -0600 (MDT)

Author: gnychis
Date: 2007-08-31 23:35:50 -0600 (Fri, 31 Aug 2007)
New Revision: 6250

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
Log:
Simple overrun/underrun reporting through the properties dictionary of sample
receive responses.


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-09-01 05:22:12 UTC (rev 6249)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-09-01 05:35:50 UTC (rev 6250)
@@ -1097,6 +1097,16 @@
                pmt_intern("rssi"),
                pmt_from_long(pkt->rssi()));
 
+  if(pkt->overrun())
+    pmt_dict_set(properties,
+                 pmt_intern("overrun"),
+                 PMT_T);
+
+  if(pkt->underrun())
+    pmt_dict_set(properties,
+                 pmt_intern("underrun"),
+                 PMT_T);
+
   d_rx[port]->send(s_response_recv_raw_samples,
                    pmt_list5(invocation_handle,
                              status,





reply via email to

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