diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2019-05-15 00:56:46 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-05-15 00:56:46 +0200 |
commit | acc08e512309a2d917045be2f9f2e46f6c5d5d99 (patch) | |
tree | ab2fad4ba4de8504c3b23f99635bcbfa62c3c3d6 | |
parent | 2df02753c44356b8d8b017a0be027a2e2ca6a35c (diff) | |
download | libsigrokdecode-acc08e512309a2d917045be2f9f2e46f6c5d5d99.tar.gz libsigrokdecode-acc08e512309a2d917045be2f9f2e46f6c5d5d99.zip |
enc28j60: Shorten ANN_* list a bit.
-rw-r--r-- | decoders/enc28j60/pd.py | 14 |
1 files changed, 2 insertions, 12 deletions
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 |