From 4ce87023023b6d3a05ce77d514383792e632a5a1 Mon Sep 17 00:00:00 2001 From: Dan White Date: Sat, 9 Jun 2012 11:45:21 -0500 Subject: [PATCH] Allow direct word setting for testing --- python-lib/usbio.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-lib/usbio.py b/python-lib/usbio.py index 03c56d9..52c08e8 100644 --- 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.""" -- 2.25.1