]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: s/output_new/add/ for all decoders.
authorUwe Hermann <redacted>
Tue, 10 Jan 2012 01:06:31 +0000 (02:06 +0100)
committerUwe Hermann <redacted>
Tue, 10 Jan 2012 01:06:31 +0000 (02:06 +0100)
decoders/mx25lxx05d.py
decoders/nunchuk.py
decoders/spi.py
decoders/srd_usb.py
decoders/transitioncounter.py
decoders/uart.py

index 0f2f73b8cbcbe43eeab62ef986a60874bef4953b..1f45dc47bbe22123ce0ad144fd36579b25e2ed1f 100644 (file)
@@ -179,8 +179,8 @@ class Decoder(sigrokdecode.Decoder):
         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
index 6cd30895c3e38a273c1d32709e18d9757fd24e41..d3ae8714d17c42e82481f70d9d871fc8aa6f30f3 100644 (file)
@@ -87,8 +87,8 @@ class Decoder(sigrokdecode.Decoder):
         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
index 2c7445f9f427354444743095a6b1741625413572..8c62cde6c40aae8445af67fadb898cc524912d8b 100644 (file)
@@ -46,8 +46,8 @@ class Decoder(sigrokdecode.Decoder):
         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
index 396953291042b283ebb3172622182875264d8e2f..ce1bd68339e04d087ba12c48220ed11c5b11b876 100644 (file)
@@ -123,8 +123,8 @@ class Decoder(sigrokdecode.Decoder):
 
     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.
index 5a6d140374eaab26363227bd41837c9142fb6ee7..2847abc345cafb50af27b0f86183750ba9a97c5b 100644 (file)
@@ -42,8 +42,8 @@ class Decoder(sigrokdecode.Decoder):
         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
index e2f33d7ce49360237a0b4c995744a466464d8ae0..896cd0a127d2687081b0f4a8e28d5f5f1f16d616 100644 (file)
@@ -258,8 +258,8 @@ class Decoder(sigrokdecode.Decoder):
 
     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']