X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fpan1321.py;h=3174ffeced9a6f18abe3b40dc3d212d4190c479e;hp=edd4162b993bac51086c79dda6524f2180dd69f3;hb=56202222ed83ff030239bb23be8296574674c4f7;hpb=5cc2d7bbc075ef6048bd5cd4e36533e874efb6a7 diff --git a/decoders/pan1321.py b/decoders/pan1321.py index edd4162..3174ffe 100644 --- a/decoders/pan1321.py +++ b/decoders/pan1321.py @@ -22,7 +22,7 @@ # TODO # -import sigrokdecode +import sigrokdecode as srd # Annotation feed formats ANN_ASCII = 0 @@ -30,7 +30,7 @@ ANN_ASCII = 0 # UART 'data' packet type. T_DATA = 1 -class Decoder(sigrokdecode.Decoder): +class Decoder(srd.Decoder): id = 'pan1321' name = 'Panasonic PAN1321' longname = 'TODO.' @@ -45,19 +45,17 @@ class Decoder(sigrokdecode.Decoder): # ] options = { } - annotation = [ + annotations = [ # ANN_ASCII ["ASCII", "TODO: description"], ] def __init__(self, **kwargs): - # self.out_proto = None - self.out_ann = None self.cmd = '' def start(self, metadata): - # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'pan1321') - self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'pan1321') + # self.out_proto = self.add(srd.OUTPUT_PROTO, 'pan1321') + self.out_ann = self.add(srd.OUTPUT_ANN, 'pan1321') def report(self): pass