From: Uwe Hermann Date: Tue, 14 May 2019 22:56:46 +0000 (+0200) Subject: enc28j60: Shorten ANN_* list a bit. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=acc08e512309a2d917045be2f9f2e46f6c5d5d99;p=libsigrokdecode.git enc28j60: Shorten ANN_* list a bit. --- diff --git a/decoders/enc28j60/pd.py b/decoders/enc28j60/pd.py index a33f5b0..f2b8db7 100644 --- a/decoders/enc28j60/pd.py +++ b/decoders/enc28j60/pd.py @@ -36,18 +36,8 @@ OPCODE_HANDLERS = { 0b11100000: '_process_src', } -ANN_RCR = 0 -ANN_RBM = 1 -ANN_WCR = 2 -ANN_WBM = 3 -ANN_BFS = 4 -ANN_BFC = 5 -ANN_SRC = 6 - -ANN_DATA = 7 -ANN_REG_ADDR = 8 - -ANN_WARNING = 9 +(ANN_RCR, ANN_RBM, ANN_WCR, ANN_WBM, ANN_BFS, ANN_BFC, ANN_SRC, ANN_DATA, +ANN_REG_ADDR, ANN_WARNING) = range(10) REG_ADDR_ECON1 = 0x1F BIT_ECON1_BSEL0 = 0b00000001