X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmx25lxx05d%2Fpd.py;h=faecf594051dc6e3d55837bd706ed2819af33c2f;hp=35809f385d1a36a8270c2278e1cf35125b0d1ff7;hb=c515eed7ef7a04a42b5b34abd308e08d6942835e;hpb=8915b34659332288aab38780d8f10d75c4c83e7f diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 35809f3..faecf59 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. @@ -99,9 +95,9 @@ class Decoder(srd.Decoder): ] 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,11 +107,8 @@ class Decoder(srd.Decoder): self.data = [] def start(self): - # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d') - self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d') - - def report(self): - pass + # self.out_python = self.register(srd.OUTPUT_PYTHON) + self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): # Simplification, most annotations span exactly one SPI byte/packet.