diff options
author | eb | 2007-08-09 12:04:58 +0000 |
---|---|---|
committer | eb | 2007-08-09 12:04:58 +0000 |
commit | e1afd7250a6ed57de64db0b6dda3996599f27b55 (patch) | |
tree | c44bddd315fdd30f792d3896064110bfa7b913d6 /gr-usrp | |
parent | 62c619063040c6ee8f377a50963a419f607848fc (diff) | |
download | gnuradio-e1afd7250a6ed57de64db0b6dda3996599f27b55.tar.gz gnuradio-e1afd7250a6ed57de64db0b6dda3996599f27b55.tar.bz2 gnuradio-e1afd7250a6ed57de64db0b6dda3996599f27b55.zip |
get_lo_offset -> lo_offset
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6131 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-usrp')
-rw-r--r-- | gr-usrp/src/db_wbx.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-usrp/src/db_wbx.py b/gr-usrp/src/db_wbx.py index ce36fdd18..7bc009062 100644 --- a/gr-usrp/src/db_wbx.py +++ b/gr-usrp/src/db_wbx.py @@ -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: |