commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8634 - in usrp2/branches/features/host-ng/host-ng: in


From: eb
Subject: [Commit-gnuradio] r8634 - in usrp2/branches/features/host-ng/host-ng: include/usrp2 lib
Date: Thu, 19 Jun 2008 16:15:46 -0600 (MDT)

Author: eb
Date: 2008-06-19 16:15:46 -0600 (Thu, 19 Jun 2008)
New Revision: 8634

Modified:
   usrp2/branches/features/host-ng/host-ng/include/usrp2/usrp2.h
   usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc
Log:
default to maximum number of items per frame

Modified: usrp2/branches/features/host-ng/host-ng/include/usrp2/usrp2.h
===================================================================
--- usrp2/branches/features/host-ng/host-ng/include/usrp2/usrp2.h       
2008-06-19 22:15:24 UTC (rev 8633)
+++ usrp2/branches/features/host-ng/host-ng/include/usrp2/usrp2.h       
2008-06-19 22:15:46 UTC (rev 8634)
@@ -106,7 +106,7 @@
    * Start streaming receive mode.  USRP2 will send a continuous stream of
    * DSP pipeline samples to host.  Call rx_samples(...) to access.
    * 
-   * \param items_per_frame  Interpreted according to current receive format
+   * \param items_per_frame  Number of 32-bit items per frame.
    */
   bool start_rx_streaming(unsigned int items_per_frame=0);
   

Modified: usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc
===================================================================
--- usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc   2008-06-19 
22:15:24 UTC (rev 8633)
+++ usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc   2008-06-19 
22:15:46 UTC (rev 8634)
@@ -300,9 +300,8 @@
     if (USRP2_IMPL_DEBUG)
       std::cerr << "usrp2: starting rx streaming...";
 
-    // Assume for now rx format is complex floats
     if (items_per_frame == 0)
-      items_per_frame = 250; // TODO: calculate from d_itemsize;
+      items_per_frame = U2_MAX_SAMPLES;                // minimize overhead
     
     op_start_rx_streaming_cmd cmd;
     op_generic_t reply;





reply via email to

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