class Decoder(srd.Decoder):
id = 'uart'
name = 'UART'
- longname = 'Universal Asynchronous Receiver/Transmitter (UART)'
+ longname = 'Universal Asynchronous Receiver/Transmitter'
desc = 'Universal Asynchronous Receiver/Transmitter (UART)'
longdesc = 'TODO.'
author = 'Uwe Hermann'
def decode(self, ss, es, data): # TODO
# for (samplenum, (rx, tx)) in data:
- for (samplenum, (rx,)) in data:
+ for (samplenum, (rx)) in data:
# TODO: Start counting at 0 or 1? Increase before or after?
self.samplenum += 1
self.oldrx = rx
# self.oldtx = tx
- # if proto != []:
- # self.put(0, 0, self.out_proto, proto)
- # if ann != []:
- # self.put(0, 0, self.out_ann, ann)
-