]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/arm_itm/pd.py
spiflash: Add Winbond W25Q80DV metadata.
[libsigrokdecode.git] / decoders / arm_itm / pd.py
index f6a021226bb93aefc5b8d47c7d58c75e11f23eeb..5970f27c0f9c2b97120562e6cf075b2cac7e24c8 100644 (file)
@@ -14,8 +14,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
 import sigrokdecode as srd
@@ -38,7 +37,7 @@ ARM_EXCEPTIONS = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'arm_itm'
     name = 'ARM ITM'
     longname = 'ARM Instrumentation Trace Macroblock'
@@ -80,7 +79,10 @@ class Decoder(srd.Decoder):
         ('function', 'Current function', (11,)),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.buf = []
         self.syncbuf = []
         self.swpackets = {}