projects
/
430.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0eeb5e
)
Allow direct word setting for testing
author
Dan White
<dan@whiteaudio.com>
Sat, 9 Jun 2012 16:45:21 +0000
(11:45 -0500)
committer
Dan White
<dan@whiteaudio.com>
Sat, 9 Jun 2012 16:45:21 +0000
(11:45 -0500)
python-lib/usbio.py
patch
|
blob
|
history
diff --git
a/python-lib/usbio.py
b/python-lib/usbio.py
index 03c56d9cc45b1d9b6d6f6fd02351fb829f147dd1..52c08e83c1034fe1275b6c38f3764d5a2950122d 100644
(file)
--- a/
python-lib/usbio.py
+++ b/
python-lib/usbio.py
@@
-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."""