From 923b45070566b0df3520098b6f6b721224a4591d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 1 Jan 2020 20:27:47 +0100 Subject: jtag_ejtag: Use SrdIntEnum for annotation classes. --- decoders/jtag_ejtag/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/jtag_ejtag') 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 -- cgit v1.2.3-70-g09d2