summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-01-01 20:27:47 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2020-01-10 20:50:15 +0100
commit923b45070566b0df3520098b6f6b721224a4591d (patch)
tree6482384890ecc54ee6dcfda3ba7434f4961f566e
parent6d6b23f908cb908fa6495bcd4a7bcc787177fd2f (diff)
downloadlibsigrokdecode-923b45070566b0df3520098b6f6b721224a4591d.tar.gz
libsigrokdecode-923b45070566b0df3520098b6f6b721224a4591d.zip
jtag_ejtag: Use SrdIntEnum for annotation classes.
-rw-r--r--decoders/jtag_ejtag/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py
index e2bf0a5..191526b 100644
--- a/decoders/jtag_ejtag/pd.py
+++ b/decoders/jtag_ejtag/pd.py
@@ -18,7 +18,7 @@
##
import sigrokdecode as srd
-from common.srdhelper import bin2int
+from common.srdhelper import bin2int, SrdIntEnum
class Instruction(object):
IDCODE = 0x01
@@ -53,7 +53,7 @@ class ControlReg(object):
PRACC = (1 << 18)
PRNW = (1 << 19)
-class Ann(object):
+class Ann(SrdIntEnum):
INSTRUCTION = 0
REGISTER = 1
CONTROL_FIELD_IN = 10