]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spi/pd.py
All PDs: Drop unneeded comments.
[libsigrokdecode.git] / decoders / spi / pd.py
index 21012c19996031a2dcd001ac5e220f741653d8f7..67c210cb88763765f81c16448dfe654ebfda4ce6 100644 (file)
@@ -19,8 +19,6 @@
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-# SPI protocol decoder
-
 import sigrokdecode as srd
 
 '''
@@ -93,7 +91,6 @@ class Decoder(srd.Decoder):
         self.bitcount = 0
         self.mosidata = 0
         self.misodata = 0
-        self.bytesreceived = 0
         self.startsample = -1
         self.samplenum = -1
         self.cs_was_deasserted_during_data_word = 0
@@ -111,9 +108,6 @@ class Decoder(srd.Decoder):
         self.out_bitrate = self.register(srd.OUTPUT_META,
                 meta=(int, 'Bitrate', 'Bitrate during transfers'))
 
-    def report(self):
-        return 'SPI: %d bytes received' % self.bytesreceived
-
     def putpw(self, data):
         self.put(self.startsample, self.samplenum, self.out_proto, data)
 
@@ -169,9 +163,6 @@ class Decoder(srd.Decoder):
         # Reset decoder state.
         self.mosidata = self.misodata = self.bitcount = 0
 
-        # Keep stats for summary.
-        self.bytesreceived += 1
-
     def find_clk_edge(self, miso, mosi, sck, cs):
         if self.have_cs and self.oldcs != cs:
             # Send all CS# pin value changes.