X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmaxim_ds28ea00%2Fpd.py;h=4693cd9aa2f7b3aa047362729fc513b05b1aa9e6;hb=12851357e784b893e24880efc6cd22a0cbcc64ce;hp=a67e70e87f89f525ad789222440a5c8764a26602;hpb=0169f19c53e195df2f96c4df731ad3214c59e20a;p=libsigrokdecode.git diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index a67e70e..4693cd9 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Maxim DS28EA00 protocol decoder - import sigrokdecode as srd # Dictionary of FUNCTION commands and their names. @@ -38,7 +36,7 @@ command = { } class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'maxim_ds28ea00' name = 'DS28EA00' longname = 'Maxim DS28EA00 1-Wire digital thermometer' @@ -46,17 +44,9 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['onewire_network'] outputs = ['maxim_ds28ea00'] - probes = [] - optional_probes = [ - {'id': 'pioa', 'name': 'PIOA/DONE#', - 'desc': 'PIOA channel and chain output'}, - {'id': 'piob', 'name': 'PIOB/EN#', - 'desc': 'PIOB channel and chain output'}, - ] - options = {} - annotations = [ - ['Text', 'Human-readable text'], - ] + annotations = ( + ('text', 'Human-readable text'), + ) def __init__(self, **kwargs): self.trn_beg = 0