Allow direct word setting for testing
authorDan White <dan@whiteaudio.com>
Sat, 9 Jun 2012 16:45:21 +0000 (11:45 -0500)
committerDan White <dan@whiteaudio.com>
Sat, 9 Jun 2012 16:45:21 +0000 (11:45 -0500)
python-lib/usbio.py

index 03c56d9cc45b1d9b6d6f6fd02351fb829f147dd1..52c08e83c1034fe1275b6c38f3764d5a2950122d 100644 (file)
@@ -329,6 +329,10 @@ class OTA(object):
         """Raw OTA settings register."""
         return self._word
 
+    @word.setter
+    def word(self, v):
+        self._word = intbv(v, max=2**16)
+
     @property
     def cint(self):
         """Connect integrating C if 1."""