X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmx25lxx05d%2Fpd.py;h=c7dbd20f5035ddc1141284667448f3b9692b84f7;hb=780770f1295b7fdeb4481eb42623bad5da1e19a7;hp=754729d4f19d1dc8e2440ad8693dc662afd5a163;hpb=9389f2c1b9b74e00d1369e846d4417bf644275d0;p=libsigrokdecode.git diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 754729d..c7dbd20 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -91,17 +91,20 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['spi', 'logic'] outputs = ['mx25lxx05d'] - probes = [] optional_probes = [ {'id': 'hold', 'name': 'HOLD#', 'desc': 'Pause device w/o deselecting it'}, {'id': 'wp_acc', 'name': 'WP#/ACC', 'desc': 'Write protect'}, ] - options = {} annotations = cmd_annotation_classes() + [ ['bits', 'Bits'], ['bits2', 'Bits2'], ['warnings', 'Warnings'], ] + annotation_rows = ( + ('bits', 'Bits', (24, 25)), + ('commands', 'Commands', tuple(range(23 + 1))), + ('warnings', 'Warnings', (26,)), + ) def __init__(self, **kwargs): self.state = None