class Decoder(srd.Decoder):
id = 'transitioncounter'
name = 'Transition counter'
- longname = '...'
+ longname = 'Pin transition counter'
desc = 'Counts rising/falling edges in the signal.'
longdesc = '...'
author = 'Uwe Hermann'
outputs = ['transitioncounts']
probes = []
options = {}
- annotations = []
+ annotations = [
+ ['TODO', 'TODO'],
+ ]
def __init__(self, **kwargs):
self.channels = -1
if outdata != []:
# self.put(0, 0, self.out_proto, out_proto)
- self.put(0, 0, self.out_ann, outdata)
+ self.put(0, 0, self.out_ann, [0, [str(outdata)]])