summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-27 17:57:04 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-08-30 07:23:58 +0200
commit0411c41c5787da0e6fab7f31503fffb4fdddce1b (patch)
tree55de7c2576d8a64ab31b75c81f7897de7ca3c217 /decoders
parentb46b88f37ac302c7e00c288e78dab05a2ac74328 (diff)
downloadlibsigrokdecode-0411c41c5787da0e6fab7f31503fffb4fdddce1b.tar.gz
libsigrokdecode-0411c41c5787da0e6fab7f31503fffb4fdddce1b.zip
sle44xx: remove incomplete Python output for now
The current implementation exclusively communicated the 'RESET' condition but nothing else. Remove the Python output from the decoder, it's easy to re-introduce when a complete implementation materializes. There also is no known recipient of SLE44xx Python output right now which would expect to see even the currently implemented subset.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/sle44xx/pd.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/decoders/sle44xx/pd.py b/decoders/sle44xx/pd.py
index a1cd8f8..0bc3ec7 100644
--- a/decoders/sle44xx/pd.py
+++ b/decoders/sle44xx/pd.py
@@ -19,22 +19,6 @@
import sigrokdecode as srd
-'''
-OUTPUT_PYTHON format:
-
-Packet:
-[<ptype>, <pdata>]
-
-<ptype>:
- - 'RESET' (Reset/Abort condition)
- - 'ATR' (ATR data from card)
- - 'CMD' (Command from reader)
- - 'DATA' (Data from card)
-
-<pdata> is the data to/from the card
-For 'RESET' <pdata> is None.
-'''
-
# CMD: [annotation-type-index, long annotation, short annotation]
proto = {
'RESET': [0, 'Reset', 'R'],
@@ -51,7 +35,7 @@ class Decoder(srd.Decoder):
desc = 'SLE 4418/28/32/42 memory card serial protocol'
license = 'gplv2+'
inputs = ['logic']
- outputs = ['sle44xx']
+ outputs = []
tags = ['Memory']
channels = (
{'id': 'rst', 'name': 'RST', 'desc': 'Reset line'},
@@ -89,23 +73,18 @@ class Decoder(srd.Decoder):
self.samplerate = value
def start(self):
- self.out_python = self.register(srd.OUTPUT_PYTHON)
self.out_ann = self.register(srd.OUTPUT_ANN)
self.out_binary = self.register(srd.OUTPUT_BINARY)
def putx(self, data):
self.put(self.ss, self.es, self.out_ann, data)
- def putp(self, data):
- self.put(self.ss, self.es, self.out_python, data)
-
def putb(self, data):
self.put(self.ss, self.es, self.out_binary, data)
def handle_reset(self, pins):
self.ss, self.es = self.samplenum, self.samplenum
cmd = 'RESET' # No need to set the global self.cmd as this command is atomic
- self.putp([cmd, None])
self.putx([proto[cmd][0], proto[cmd][1:]])
self.bitcount = self.databyte = 0
self.bits = []