summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-07-22 00:30:47 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-07-22 00:30:47 +0000
commitb58a32158883a03bf571bdfead5310675e003301 (patch)
tree496f807b7f74ef1cf99ef8d54dbdbf3dc2b90b04
parenta641aec03c07e3ec8a56401a8ee6b4052d6343b8 (diff)
downloadpyserial-git-b58a32158883a03bf571bdfead5310675e003301.tar.gz
implement 2785532
-rw-r--r--pyparallel/CHANGES.txt3
-rw-r--r--pyparallel/parallel/parallelppdev.py6
2 files changed, 7 insertions, 2 deletions
diff --git a/pyparallel/CHANGES.txt b/pyparallel/CHANGES.txt
index beef1e2..5ed7b95 100644
--- a/pyparallel/CHANGES.txt
+++ b/pyparallel/CHANGES.txt
@@ -5,4 +5,5 @@ Version 0.2 27 Jan 2005
Windows version now using ctypes
Version ... ...
- added setDataDir to Windows backend
+ add setDataDir to Windows backend
+ [SF 2785532] add getData for ppdev backend
diff --git a/pyparallel/parallel/parallelppdev.py b/pyparallel/parallel/parallelppdev.py
index df9cf2d..d600c4a 100644
--- a/pyparallel/parallel/parallelppdev.py
+++ b/pyparallel/parallel/parallelppdev.py
@@ -567,8 +567,12 @@ class Parallel:
"""Sets the states of the data bus line drivers (pins 2-9)"""
self._data=d
return self.PPWDATA(d)
+
+ def getData(self):
+ """Gets the states of the data bus line (pin 2-9)"""
+ return self.PPRDATA()
- #status lines
+ # status lines
def getInError(self):
"""Returns the level on the nFault pin (15)"""
return (self.PPRSTATUS() & PARPORT_STATUS_ERROR) != 0