commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9305 - gnuradio/branches/developers/trondeau/dbs/usrp


From: trondeau
Subject: [Commit-gnuradio] r9305 - gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy
Date: Sun, 17 Aug 2008 21:07:22 -0600 (MDT)

Author: trondeau
Date: 2008-08-17 21:07:20 -0600 (Sun, 17 Aug 2008)
New Revision: 9305

Modified:
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.cc
Log:
cleaning up (a treat for Eric)

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.cc
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.cc   
2008-08-18 03:01:54 UTC (rev 9304)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.cc   
2008-08-18 03:07:20 UTC (rev 9305)
@@ -33,7 +33,7 @@
 }
 
 
-/******************************************************************************/
+/*****************************************************************************/
 
 
 db_base::db_base(usrp_basic *usrp, int which, bool tx)
@@ -69,7 +69,8 @@
     return "B: " + name();
 }
 
-// Function to bypass ADC buffers. Any board which is DC-coupled should bypass 
the buffers
+// Function to bypass ADC buffers. Any board which is DC-coupled
+// should bypass the buffers
 void 
 db_base::bypass_adc_buffers(bool bypass)
 {
@@ -146,7 +147,7 @@
   // 
   // @returns (ok, actual_baseband_freq) where:
   //   ok is True or False and indicates success or failure,
-  //   actual_baseband_freq is the RF frequency that corresponds to DC in the 
IF.
+  //   actual_baseband_freq is RF frequency that corresponds to DC in the IF.
   throw std::runtime_error("set_freq() called from base class\n");
 }
 
@@ -310,7 +311,8 @@
   ok = freq.ok;
   baseband_freq = freq.baseband_freq;
 
-  struct dxc_freq_t dxc_freq = calc_dxc_freq(target_freq, baseband_freq, 
d_usrp->converter_rate());
+  struct dxc_freq_t dxc_freq = calc_dxc_freq(target_freq, baseband_freq,
+                                            d_usrp->converter_rate());
 
   // If the spectrum is inverted, and the daughterboard doesn't do
   // quadrature downconversion, we can fix the inversion by flipping the
@@ -326,11 +328,13 @@
   }
   
   if (!d_tx) {
-    ok = ok && ((usrp_standard_rx*)d_usrp)->set_rx_freq(chan, 
dxc_freq.ddc_freq);
+    ok = ok && ((usrp_standard_rx*)d_usrp)->set_rx_freq(chan,
+                                                       dxc_freq.ddc_freq);
   }
   else {
     dxc_freq.ddc_freq = -dxc_freq.ddc_freq;
-    ok = ok && ((usrp_standard_tx*)d_usrp)->set_tx_freq(chan, 
dxc_freq.ddc_freq);
+    ok = ok && ((usrp_standard_tx*)d_usrp)->set_tx_freq(chan,
+                                                       dxc_freq.ddc_freq);
   }
   
   if(!ok) {
@@ -350,6 +354,6 @@
   tune_result res = tune_result(baseband_freq, dxc_freq.ddc_freq, 
                                residual_freq, dxc_freq.inverted);
   res.ok = true;
-     
+  
   return res;
 }





reply via email to

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