]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: Remove decode() docstrings.
authorUwe Hermann <redacted>
Tue, 3 Jan 2012 19:26:29 +0000 (20:26 +0100)
committerUwe Hermann <redacted>
Tue, 3 Jan 2012 19:26:29 +0000 (20:26 +0100)
This info is in the decoder's metadata, where the frontends can get it
from programmatically anyway.

decoders/i2c.py
decoders/nunchuk.py
decoders/transitioncounter.py
decoders/uart.py

index e08276310cf4a2a222cf82b9d12884e69cd4964e..cf16d3a28dc0ab86937a170bedba6a22e404e583 100644 (file)
@@ -323,8 +323,6 @@ class Decoder(sigrok.Decoder):
         super(Decoder, self).put(timeoffset, duration, output_id, data)
 
     def decode(self, timeoffset, duration, data):
-        """I2C protocol decoder"""
-
         self.timeoffset = timeoffset
         self.duration = duration
         print("++", timeoffset, duration, len(data))
index cc1252ccfeb80c0d221a537e66893f92e6408611..d33074740eb50b4fb1fdea8137e89cbb3cffd947 100644 (file)
@@ -110,8 +110,6 @@ class Decoder(sigrok.Decoder):
         pass
 
     def decode(self, timeoffset, duration, data):
-        """Nintendo Wii Nunchuk decoder"""
-
         out = []
         o = {}
 
index 70f1f1a932511864e26e9f24367ee31caaa51e3c..846e9d982fda48361bcf295fe162a1ed88ed02a3 100644 (file)
@@ -68,9 +68,6 @@ class Decoder(sigrok.Decoder):
         pass
 
     def decode(self, timeoffset, duration, data):
-        """Counts the low->high and high->low transitions in the specified
-           channel(s) of the signal."""
-
         # We should accept a list of samples and iterate...
         for sample in sampleiter(data, self.unitsize):
 
index 7a63d77e0c423303e8e43663cce43d92dce7a4c5..66deb5e2be7044edda76013ac2f6e9960ea94363 100644 (file)
@@ -395,8 +395,6 @@ class Decoder(sigrok.Decoder):
         return o
 
     def decode(self, timeoffset, duration, data):
-        """UART protocol decoder"""
-
         out = []
 
         for sample in sampleiter(data, self.unitsize):