commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10121 - gnuradio/trunk/gr-usrp2/src


From: jcorgan
Subject: [Commit-gnuradio] r10121 - gnuradio/trunk/gr-usrp2/src
Date: Sun, 14 Dec 2008 21:53:31 -0700 (MST)

Author: jcorgan
Date: 2008-12-14 21:53:29 -0700 (Sun, 14 Dec 2008)
New Revision: 10121

Modified:
   gnuradio/trunk/gr-usrp2/src/usrp2.i
   gnuradio/trunk/gr-usrp2/src/usrp2_base.cc
   gnuradio/trunk/gr-usrp2/src/usrp2_base.h
Log:
Add sync_to_pps to gr-usrp2

Modified: gnuradio/trunk/gr-usrp2/src/usrp2.i
===================================================================
--- gnuradio/trunk/gr-usrp2/src/usrp2.i 2008-12-15 04:26:43 UTC (rev 10120)
+++ gnuradio/trunk/gr-usrp2/src/usrp2.i 2008-12-15 04:53:29 UTC (rev 10121)
@@ -48,6 +48,7 @@
   std::string mac_addr() const;
   %rename(_real_fpga_master_clock_freq) fpga_master_clock_freq;
   bool fpga_master_clock_freq(long *freq);
+  bool sync_to_pps();
 };
 
 // ----------------------------------------------------------------

Modified: gnuradio/trunk/gr-usrp2/src/usrp2_base.cc
===================================================================
--- gnuradio/trunk/gr-usrp2/src/usrp2_base.cc   2008-12-15 04:26:43 UTC (rev 
10120)
+++ gnuradio/trunk/gr-usrp2/src/usrp2_base.cc   2008-12-15 04:53:29 UTC (rev 
10121)
@@ -62,6 +62,12 @@
 }
 
 bool
+usrp2_base::sync_to_pps()
+{
+  return d_u2->sync_to_pps();
+}
+
+bool
 usrp2_base::start()
 {
   // Default implementation is NOP

Modified: gnuradio/trunk/gr-usrp2/src/usrp2_base.h
===================================================================
--- gnuradio/trunk/gr-usrp2/src/usrp2_base.h    2008-12-15 04:26:43 UTC (rev 
10120)
+++ gnuradio/trunk/gr-usrp2/src/usrp2_base.h    2008-12-15 04:53:29 UTC (rev 
10121)
@@ -59,6 +59,11 @@
   bool fpga_master_clock_freq(long *freq) const;
 
   /*!
+   * \brief Set master time to 0 at next PPS rising edge
+   */
+  bool sync_to_pps();
+
+  /*!
    * \brief Called by scheduler when starting flowgraph
    */
   virtual bool start();





reply via email to

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