From: matt Date: Wed, 15 Aug 2007 03:29:23 +0000 (+0000) Subject: progress X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ec990a00c4430679a653323f1da0d8623f4c503a;p=debian%2Fgnuradio progress git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6137 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-usrp/src/db_wbx.py b/gr-usrp/src/db_wbx.py index c008d76e..6906da88 100644 --- a/gr-usrp/src/db_wbx.py +++ b/gr-usrp/src/db_wbx.py @@ -491,28 +491,38 @@ class _lo_common(_ADF410X_common): self.CPGAIN = 0 # bit 21 self.freq_mult = 1 + self.div = 1 + self.aux_div = 2 + def freq_range(self): # FIXME return (50e6, 1000e6, 16e6) def set_divider(self, main_or_aux, divisor): + print "set %s to %d" % (main_or_aux, divisor) if main_or_aux not in (0, 'main', 1, 'aux'): raise ValueError, "main_or_aux must be 'main' or 'aux'" if main_or_aux in (0, 'main'): - if value not in (1,2,4,8): + if divisor not in (1,2,4,8): raise ValueError, "Main Divider Must be 1, 2, 4, or 8" for (div,val) in ((1,0),(2,1),(4,2),(8,3)): if(div == divisor): self.main_div = val else: - if value not in (2,4,8,18): + if divisor not in (2,4,8,16): raise ValueError, "Aux Divider Must be 2, 4, 8 or 16" for (div,val) in ((2,0),(4,1),(8,2),(16,3)): if(div == divisor): self.aux_div = val - self._u._rx_write_io(self._which, ((self.main_div<