encx24j600_defines.h

Register definitions for the ENCX24J600 Ethernet device.

ENC_RCR
1
0x00  /* read control register */
ENC_WCR
1
0x04  /* write control register */
ENC_RCRU
1
0x20  /* read control register unbanked */
ENC_WCRU
1
0x22  /* write control register unbanked */
ENC_BFSU
1
0x24  /* set bits unbanked */
ENC_BFCU
1
0x26  /* clear bits unbanked */
ENC_RGPDATA
1
0x28  /* Read EGPDATA */
ENC_WGPDATA
1
0x2a  /* Write EGPDATA */
ENC_RRXDATA
1
0x2c  /* Read ERXDATA */
ENC_WRXDATA
1
0x2e  /* Write ERXDATA */
ENC_RUDADATA
1
0x30  /* Read EUDADATA */
ENC_WUDADATA
1
0x32  /* Write EUDADATA */
ENC_BFS
1
0x80  /* Bit Field Set */
ENC_BFC
1
0xa0  /* Bit Field Clear */
ENC_SETETHRST
1
0xca  /* System Reset */
ENC_SETPKTDEC
1
0xcc  /* Decrements PKTCNT by setting PKTDEC (ECON1<5>) */
ENC_ENABLERX
1
0xe8  /* Enables packet reception by setting RXEN (ECON1<0>) */
ENC_DISABLERX
1
0xea  /* Disable packet reception by clearing RXEN (ECON1<0>) */
ENC_SETEIE
1
0xec  /* Enable Ethernet Interrupts by setting INT (ESTAT<16>) */
ENC_CLREIE
1
0xee  /* Disable Ethernet Interrupts by clearing INT (ESTAT<16>) */
ENC_B0SEL
1
0xc0  /* select bank 0 */
ENC_B1SEL
1
0xc2  /* select bank 0 */
ENC_B2SEL
1
0xc4  /* select bank 0 */
ENC_B3SEL
1
0xc6  /* select bank 0 */
ENC_RBSEL
1
0xc8  /* Read Bank Select */
ENC_SETTXRTS
1
0xd4  /* Sets TXRTS (ECON1<1>), sends an Ethernet packet */
ENC_ETXST
1
0x00
ENC_ETXLEN
1
0x02
ENC_ERXST
1
0x04
ENC_ERXTAIL
1
0x06
ENC_ERXHEAD
1
0x08
ENC_ETXSTAT
1
0x12
ENC_ETXWIRE
1
0x14
ENC_EUDAST
1
0x16
ENC_ESTAT
1
0x1a
ENC_EIR
1
0x1c    /* Interrupt Flag Register */
ENC_ECON1
1
0x1e
ENC_ERXFCON
1
0x34    /* Receive filter control register */
ENC_MACON2
1
0x42
ENC_MAMXFL
1
0x4a    /* MAC maximum frame length */
ENC_MAADR3
1
0x60    /* MAC address byte 5&6 */
ENC_MAADR2
1
0x62    /* MAC address byte 3&4 */
ENC_MAADR1
1
0x64    /* MAC address byte 1&2 */
ENC_MIWR
1
0x66
ENC_MIREGADR
1
0x54
ENC_ECON2
1
0x6e
ENC_EIE
1
0x72    /* Interrupt Enable Register */
ENC_EGPRDPT
1
0x86    /* General Purpose SRAM read pointer */
ENC_EGPWRPT
1
0x88    /* General Purpose SRAM write pointer */
ENC_ERXRDPT
1
0x8a    /* RX buffer read pointer */
ENC_ERXWRPT
1
0x8c    /* RX buffer write pointer */
ENC_PHCON1
1
0x00
ENC_PHSTAT1
1
0x01
ENC_PHANA
1
0x04
ENC_PHANLPA
1
0x05
ENC_PHANE
1
0x06
ENC_PHCON2
1
0x11
ENC_PHSTAT2
1
0x1b
ENC_PHSTAT3
1
0x1f
ENC_PHYLNK
1
(1<<8)
ENC_CLKRDY
1
(1<<12)
ENC_RXEN
1
(1<<0)
ENC_TXRTS
1
(1<<1)
ENC_DMANOCS
1
(1<<2)
ENC_DMACSSD
1
(1<<3)
ENC_DMACPY
1
(1<<4)
ENC_DMAST
1
(1<<5)
ENC_FCOP0
1
(1<<6)
ENC_FCOP1
1
(1<<7)
ENC_PKTDEC
1
(1<<8)
ENC_AESOP0
1
(1<<9)
ENC_AESOP1
1
(1<<10)
ENC_AESST
1
(1<<11)
ENC_HASHLST
1
(1<<12)
ENC_HASHOP
1
(1<<13)
ENC_HASHEN
1
(1<<14)
ENC_MODEXST
1
(1<<15)
ENC_ETHRST
1
(1<<4)
ENC_AUTOFC
1
(1<<7)    /* automatic flow control enable bit */
ENC_PCFULIE
1
(1<<0)
ENC_RXABTIE
1
(1<<1)
ENC_TXABTIE
1
(1<<2)
ENC_TXIE
1
(1<<3)
ENC_DMAIE
1
(1<<5)
ENC_PKTIE
1
(1<<6)
ENC_LINKIE
1
(1<<11)
ENC_AESIE
1
(1<<12)
ENC_HASHIE
1
(1<<13)
ENC_MODEXIE
1
(1<<14)
ENC_INTIE
1
(1<<15)
ENC_PCFULIF
1
(1<<0)
ENC_RXABTIF
1
(1<<1)
ENC_TXABTIF
1
(1<<2)
ENC_TXIF
1
(1<<3)
ENC_DMAIF
1
(1<<5)
ENC_PKTIF
1
(1<<6)
ENC_LINKIF
1
(1<<11)
ENC_AESIF
1
(1<<12)
ENC_HASHIF
1
(1<<13)
ENC_MODEXIF
1
(1<<14)
ENC_CRYPTEN
1
(1<<15)
ENC_MCEN
1
(1<<1)