X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fedid%2Fpd.py;h=e655fdd0a187a71bd09e2134d1937c7103cec391;hp=adeb6aec20c657fbb040730a362d7cc95d493e09;hb=35b380b1156434b73d4a976c68f5ab3604c8510a;hpb=ef36224880135a05d2fbde8f048ea3fe3f425df9 diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index adeb6ae..e655fdd 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -68,12 +68,12 @@ xy_ratio = [ (16, 9), ] -# Annotation types +# Annotation classes ANN_FIELDS = 0 ANN_SECTIONS = 1 class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'edid' name = 'EDID' longname = 'Extended Display Identification Data' @@ -81,13 +81,10 @@ class Decoder(srd.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['edid'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['fields', 'EDID structure fields'], - ['sections', 'EDID structure sections'], - ] + annotations = ( + ('fields', 'EDID structure fields'), + ('sections', 'EDID structure sections'), + ) def __init__(self, **kwargs): self.state = None @@ -468,4 +465,3 @@ class Decoder(srd.Decoder): else: if self.cache[i+2] == 0 or self.cache[i+4] == 0: self.decode_descriptor(i) -