projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97cca21
)
srd: pan1321: Update to new UART format.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 14 Jan 2012 22:17:40 +0000
(23:17 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 14 Jan 2012 22:17:40 +0000
(23:17 +0100)
decoders/pan1321.py
patch
|
blob
|
history
diff --git
a/decoders/pan1321.py
b/decoders/pan1321.py
index fc34aacd20e6f4e2e0eecce8b22ad04079b19925..b9109b6dcab54f1867862b34a6a5a0556121d2c4 100644
(file)
--- a/
decoders/pan1321.py
+++ b/
decoders/pan1321.py
@@
-30,6
+30,10
@@
ANN_ASCII = 0
# UART 'data' packet type.
T_DATA = 1
+# ...
+RX = 0
+TX = 1
+
class Decoder(srd.Decoder):
id = 'pan1321'
name = 'PAN1321'
@@
-44,7
+48,6
@@
class Decoder(srd.Decoder):
probes = []
options = {}
annotations = [
- # ANN_ASCII
['ASCII', 'TODO: description'],
]
@@
-59,7
+62,7
@@
class Decoder(srd.Decoder):
pass
def decode(self, ss, es, data):
- ptype, pdata = data
+ ptype,
rxtx,
pdata = data
# For now, ignore all UART packets except the actual data packets.
if ptype != T_DATA: