X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmx25lxx05d%2Fpd.py;h=fdb8248e6dd959b1f6e331a798f7caf454950e97;hb=38ab4ed09ad08d12eb34b0e24765790b34d90cc7;hp=68335d4d0bd3ab90ee2736126f53b9d88f16aad4;hpb=be465111b552c7c2a2262ac49758a30a8bf1b1d5;p=libsigrokdecode.git diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 68335d4..fdb8248 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -18,10 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Macronix MX25Lxx05D SPI (NOR) flash chip protocol decoder - -# Note: Works for MX25L1605D/MX25L3205D/MX25L6405D. - import sigrokdecode as srd # Dict which maps command IDs to their names and descriptions. @@ -94,14 +90,14 @@ class Decoder(srd.Decoder): outputs = ['mx25lxx05d'] probes = [] optional_probes = [ - {'id': 'hold', 'name': 'HOLD#', 'desc': 'TODO.'}, - {'id': 'wp_acc', 'name': 'WP#/ACC', 'desc': 'TODO.'}, + {'id': 'hold', 'name': 'HOLD#', 'desc': 'Pause device w/o deselecting it'}, + {'id': 'wp_acc', 'name': 'WP#/ACC', 'desc': 'Write protect'}, ] options = {} annotations = [ - ['Text', 'Human-readable text'], - ['Verbose decode', 'Decoded register bits, read/write data'], - ['Warnings', 'Human-readable warnings'], + ['text', 'Human-readable text'], + ['verbose-decode', 'Decoded register bits, read/write data'], + ['warnings', 'Human-readable warnings'], ] def __init__(self, **kwargs): @@ -111,12 +107,9 @@ class Decoder(srd.Decoder): self.data = [] def start(self): - # self.out_proto = self.register(srd.OUTPUT_PYTHON) + # self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Simplification, most annotations span exactly one SPI byte/packet. self.put(self.ss, self.es, self.out_ann, data)