self.out = []
def start(self, metadata):
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
def report(self):
pass
self.databytecount = 0
def start(self, metadata):
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
def report(self):
pass
self.output_annotation = None
def start(self, metadata):
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
def report(self):
return 'SPI: %d bytes received' % self.bytesreceived
def start(self, metadata):
self.rate = metadata['samplerate']
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
if self.rate < 48000000:
raise Exception("Sample rate not sufficient for USB decoding")
# Initialise decoder state.
self.lastsample = None
def start(self, metadata):
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
def report(self):
pass
def start(self, metadata):
self.samplerate = metadata['samplerate']
- self.out_proto = self.output_new(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'uart')
- self.out_ann = self.output_new(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'uart')
+ self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'uart')
+ self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'uart')
# TODO
### self.baudrate = metadata['baudrate']