summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-14 23:17:40 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-14 23:17:40 +0100
commitd9c0d0a34a606bd1c96b468cbce4f0f8397e291d (patch)
treeb2adf84b9dcc932174c69a5b36dbff4d133d7562 /decoders
parent97cca21f9423164b0ef3fe52c529f1920cc669a0 (diff)
downloadlibsigrokdecode-d9c0d0a34a606bd1c96b468cbce4f0f8397e291d.tar.gz
libsigrokdecode-d9c0d0a34a606bd1c96b468cbce4f0f8397e291d.zip
srd: pan1321: Update to new UART format.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/pan1321.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/decoders/pan1321.py b/decoders/pan1321.py
index fc34aac..b9109b6 100644
--- 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: