From: Uwe Hermann Date: Wed, 1 Jan 2020 19:27:47 +0000 (+0100) Subject: jtag_ejtag: Use SrdIntEnum for annotation classes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=923b45070566b0df3520098b6f6b721224a4591d;p=libsigrokdecode.git jtag_ejtag: Use SrdIntEnum for annotation classes. --- 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