# UART 'data' packet type.
T_DATA = 1
+# ...
+RX = 0
+TX = 1
+
class Decoder(srd.Decoder):
id = 'pan1321'
name = 'PAN1321'
probes = []
options = {}
annotations = [
- # ANN_ASCII
['ASCII', 'TODO: description'],
]
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: