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