summaryrefslogtreecommitdiff
path: root/decoders/enc28j60/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/enc28j60/pd.py')
-rw-r--r--decoders/enc28j60/pd.py140
1 files changed, 1 insertions, 139 deletions
diff --git a/decoders/enc28j60/pd.py b/decoders/enc28j60/pd.py
index f2b8db7..ba36419 100644
--- a/decoders/enc28j60/pd.py
+++ b/decoders/enc28j60/pd.py
@@ -22,6 +22,7 @@
## SOFTWARE.
import sigrokdecode as srd
+from .lists import *
OPCODE_MASK = 0b11100000
REG_ADDR_MASK = 0b00011111
@@ -43,145 +44,6 @@ REG_ADDR_ECON1 = 0x1F
BIT_ECON1_BSEL0 = 0b00000001
BIT_ECON1_BSEL1 = 0b00000010
-REGS = [
- [
- 'ERDPTL',
- 'ERDPTH',
- 'EWRPTL',
- 'EWRPTH',
- 'ETXSTL',
- 'ETXSTH',
- 'ETXNDL',
- 'ETXNDH',
- 'ERXSTL',
- 'ERXSTH',
- 'ERXNDL',
- 'ERXNDH',
- 'ERXRDPTL',
- 'ERXRDPTH',
- 'ERXWRPTL',
- 'ERXWRPTH',
- 'EDMASTL',
- 'EDMASTH',
- 'EDMANDL',
- 'EDMANDH',
- 'EDMADSTL',
- 'EDMADSTH',
- 'EDMACSL',
- 'EDMACSH',
- '—',
- '—',
- 'Reserved',
- 'EIE',
- 'EIR',
- 'ESTAT',
- 'ECON2',
- 'ECON1',
- ],
- [
- 'EHT0',
- 'EHT1',
- 'EHT2',
- 'EHT3',
- 'EHT4',
- 'EHT5',
- 'EHT6',
- 'EHT7',
- 'EPMM0',
- 'EPMM1',
- 'EPMM2',
- 'EPMM3',
- 'EPMM4',
- 'EPMM5',
- 'EPMM6',
- 'EPMM7',
- 'EPMCSL',
- 'EPMCSH',
- '—',
- '—',
- 'EPMOL',
- 'EPMOH',
- 'Reserved',
- 'Reserved',
- 'ERXFCON',
- 'EPKTCNT',
- 'Reserved',
- 'EIE',
- 'EIR',
- 'ESTAT',
- 'ECON2',
- 'ECON1',
- ],
- [
- 'MACON1',
- 'Reserved',
- 'MACON3',
- 'MACON4',
- 'MABBIPG',
- '—',
- 'MAIPGL',
- 'MAIPGH',
- 'MACLCON1',
- 'MACLCON2',
- 'MAMXFLL',
- 'MAMXFLH',
- 'Reserved',
- 'Reserved',
- 'Reserved',
- '—',
- 'Reserved',
- 'Reserved',
- 'MICMD',
- '—',
- 'MIREGADR',
- 'Reserved',
- 'MIWRL',
- 'MIWRH',
- 'MIRDL',
- 'MIRDH',
- 'Reserved',
- 'EIE',
- 'EIR',
- 'ESTAT',
- 'ECON2',
- 'ECON1',
- ],
- [
- 'MAADR5',
- 'MAADR6',
- 'MAADR3',
- 'MAADR4',
- 'MAADR1',
- 'MAADR2',
- 'EBSTSD',
- 'EBSTCON',
- 'EBSTCSL',
- 'EBSTCSH',
- 'MISTAT',
- '—',
- '—',
- '—',
- '—',
- '—',
- '—',
- '—',
- 'EREVID',
- '—',
- '—',
- 'ECOCON',
- 'Reserved',
- 'EFLOCON',
- 'EPAUSL',
- 'EPAUSH',
- 'Reserved',
- 'EIE',
- 'EIR',
- 'ESTAT',
- 'ECON2',
- 'ECON1',
- ],
-]
-
class Decoder(srd.Decoder):
api_version = 3
id = 'enc28j60'