# and a display device. The stream is output as plain bytes.
#
-import sigrokdecode
+import sigrokdecode as srd
-class Decoder(sigrokdecode.Decoder):
+class Decoder(srd.Decoder):
id = 'ddc'
name = 'DDC'
longname = 'Display Data Channel'
license = 'gplv3+'
inputs = ['i2c']
outputs = ['ddc']
- annotation = [
+ annotations = [
["Byte stream", "DDC byte stream as read from display."],
]
self.state = None
def start(self, metadata):
- self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'ddc')
+ self.out_ann = self.add(srd.OUTPUT_ANN, 'ddc')
def decode(self, start_sample, end_sample, i2c_data):
try: