]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/pwm/pd.py
avr_isp: Add more parts
[libsigrokdecode.git] / decoders / pwm / pd.py
index 97704450b7701f5a01387f234eea6e9d16cc0a8e..2eda02ca42a1c174b48aa66e19bf74d7f36137b5 100644 (file)
@@ -31,7 +31,8 @@ class Decoder(srd.Decoder):
     desc = 'Analog level encoded in duty cycle percentage.'
     license = 'gplv2+'
     inputs = ['logic']
-    outputs = ['pwm']
+    outputs = []
+    tags = ['Encoding']
     channels = (
         {'id': 'data', 'name': 'Data', 'desc': 'Data line'},
     )
@@ -44,8 +45,8 @@ class Decoder(srd.Decoder):
         ('period', 'Period'),
     )
     annotation_rows = (
-         ('duty-cycle', 'Duty cycle', (0,)),
-         ('period', 'Period', (1,)),
+         ('duty-cycle-vals', 'Duty cycles', (0,)),
+         ('periods', 'Periods', (1,)),
     )
     binary = (
         ('raw', 'RAW file'),