TX = 1
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'midi'
name = 'MIDI'
longname = 'Musical Instrument Digital Interface'
license = 'gplv2+'
inputs = ['uart']
outputs = ['midi']
- probes = []
- optional_probes = []
- options = {}
- annotations = [
- ['text-verbose', 'Human-readable text (verbose)'],
- ]
+ annotations = (
+ ('text-verbose', 'Human-readable text (verbose)'),
+ )
def __init__(self, **kwargs):
self.cmd = []
self.es_block = None
def start(self):
- # self.out_python = self.register(srd.OUTPUT_PYTHON)
self.out_ann = self.register(srd.OUTPUT_ANN)
def putx(self, data):