get_lo_offset -> lo_offset
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 9 Aug 2007 12:04:58 +0000 (12:04 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 9 Aug 2007 12:04:58 +0000 (12:04 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6131 221aa14e-8319-0410-a670-987f0aec2ac5

gr-usrp/src/db_wbx.py

index ce36fdd18bb2047331a0991a9c1a910eac95e8b3..7bc0090627c83fdba3f960130cc24d06a915c85f 100644 (file)
@@ -187,7 +187,7 @@ class wbx_base_tx(wbx_base):
         # power up the transmit side, but set antenna to receive
         self._u._write_oe(self._which,(TX_POWER|RX_TXN), 0xffff)
         self._u.write_io(self._which, (TX_POWER|RX_TXN), (TX_POWER|RX_TXN))
-        self.lo_offset = 0e6
+        self._lo_offset = 0e6
 
         #  Gain is not set by the PGA, but the PGA must be set at max gain in the TX
         return self._set_pga(self._u.pga_max())
@@ -223,15 +223,15 @@ class wbx_base_tx(wbx_base):
        
        @param offset: offset in Hz
        """
-       self.lo_offset = offset
+       self._lo_offset = offset
 
-    def get_lo_offset(self):
+    def lo_offset(self):
        """
        Get amount by which LO is offset from requested tuning frequency.
        
        @returns Offset in Hz
        """
-       return self.lo_offset
+       return self._lo_offset
        
 class wbx_base_rx(wbx_base):
     def __init__(self, usrp, which):
@@ -250,7 +250,7 @@ class wbx_base_rx(wbx_base):
 
         self.bypass_adc_buffers(True)
 
-        self.lo_offset = -4e6
+        self._lo_offset = -4e6
 
     def __del__(self):
         # Power down
@@ -309,15 +309,15 @@ class wbx_base_rx(wbx_base):
        
        @param offset: offset in Hz
        """
-       self.lo_offset = offset
+       self._lo_offset = offset
 
-    def get_lo_offset(self):
+    def lo_offset(self):
        """
        Get amount by which LO is offset from requested tuning frequency.
        
        @returns Offset in Hz
        """
-       return self.lo_offset
+       return self._lo_offset
        
 
 # ----------------------------------------------------------------
@@ -533,7 +533,7 @@ db_instantiator.add(usrp_dbid.WBX_LO_TX, lambda usrp, which : (db_wbx_lo_tx(usrp
 db_instantiator.add(usrp_dbid.WBX_LO_RX, lambda usrp, which : (db_wbx_lo_rx(usrp, which),))
 
 
-#        freq += self.lo_offset
+#        freq += self._lo_offset
 #        
 #        R, N, control, actual_freq = self._compute_regs(freq)
 #        if R==0: