Updated license from GPL version 2 or later to GPL version 3 or later.
[debian/gnuradio] / gr-usrp / src / db_base.py
index 815a97c29fed5b6dbfaa56a2e64003f76b9c245c..8e1c768b99e6294605ff49badf4f6c5e2536098a 100644 (file)
@@ -5,7 +5,7 @@
 # 
 # GNU Radio is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 # 
 # GNU Radio is distributed in the hope that it will be useful,
@@ -53,7 +53,6 @@ class db_base(object):
 
         self._refclk_reg = (FR_TX_A_REFCLK,FR_RX_A_REFCLK,FR_TX_B_REFCLK,FR_RX_B_REFCLK)[self._slot]
 
-
     def dbid(self):
         return self._u.daughterboard_id(self._which)
 
@@ -240,3 +239,18 @@ class db_base(object):
         """
         pass
 
+    def set_lo_offset(self, offset):
+       """
+       Set how much LO is offset from requested frequency
+       
+       Should be overriden by daughterboards that care.
+       """
+       pass
+       
+    def lo_offset(self, offset):
+       """
+       Get how much LO is offset from requested frequency
+
+       Should be overriden by daughterboards that care.
+       """
+       return 0.0