commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9035 - in usrp2/branches/developers/eb/wip/host-ng: a


From: eb
Subject: [Commit-gnuradio] r9035 - in usrp2/branches/developers/eb/wip/host-ng: apps lib
Date: Mon, 28 Jul 2008 17:34:17 -0600 (MDT)

Author: eb
Date: 2008-07-28 17:34:17 -0600 (Mon, 28 Jul 2008)
New Revision: 9035

Modified:
   usrp2/branches/developers/eb/wip/host-ng/apps/test2_usrp2.cc
   usrp2/branches/developers/eb/wip/host-ng/lib/copiers.cc
Log:
usrp2: work-in-progress

Modified: usrp2/branches/developers/eb/wip/host-ng/apps/test2_usrp2.cc
===================================================================
--- usrp2/branches/developers/eb/wip/host-ng/apps/test2_usrp2.cc        
2008-07-28 22:48:52 UTC (rev 9034)
+++ usrp2/branches/developers/eb/wip/host-ng/apps/test2_usrp2.cc        
2008-07-28 23:34:17 UTC (rev 9035)
@@ -55,6 +55,9 @@
   bool 
   operator()(const uint32_t *items, size_t nitems, const usrp2::rx_metadata 
*metadata)
   {
+    // printf("W0: %08x  TS: %08x\n", metadata->word0, metadata->timestamp);
+    printf("I0: %08x\n", items[0]);
+
     d_nsamples += nitems;
     d_nframes++;
 
@@ -336,7 +339,7 @@
 
   printf("USRP2 using decimation rate of %d\n", rx_decim);
     
-  if (!u2->start_rx_streaming()){
+  if (!u2->start_rx_streaming(0)){
     fprintf(stderr, "start_rx_streaming failed\n");
     exit(1);
   }

Modified: usrp2/branches/developers/eb/wip/host-ng/lib/copiers.cc
===================================================================
--- usrp2/branches/developers/eb/wip/host-ng/lib/copiers.cc     2008-07-28 
22:48:52 UTC (rev 9034)
+++ usrp2/branches/developers/eb/wip/host-ng/lib/copiers.cc     2008-07-28 
23:34:17 UTC (rev 9035)
@@ -53,6 +53,7 @@
 
     for (size_t i = 0; i < nitems; i++){
       uint32_t t = ntohx(items[i]);
+      //printf("%9d\n", items[i]);
       host_items[i] = std::complex<int16_t>((t >> 16), t & 0xffff);
     }
 





reply via email to

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