55 #if (_WIZCHIP_ == 5500)
58 #define _W5500_IO_BASE_ 0x00000000
60 #define _W5500_SPI_READ_ (0x00 << 2) //< SPI interface Read operation in Control Phase
61 #define _W5500_SPI_WRITE_ (0x01 << 2) //< SPI interface Write operation in Control Phase
63 #define WIZCHIP_CREG_BLOCK 0x00 //< Common register block
64 #define WIZCHIP_SREG_BLOCK(N) (1+4*N) //< Socket N register block
65 #define WIZCHIP_TXBUF_BLOCK(N) (2+4*N) //< Socket N Tx buffer address block
66 #define WIZCHIP_RXBUF_BLOCK(N) (3+4*N) //< Socket N Rx buffer address block
68 #define WIZCHIP_OFFSET_INC(ADDR, N) (ADDR + (N<<8)) //< Increase offset address
74 #define IINCHIP_READ(ADDR) WIZCHIP_READ(ADDR)
75 #define IINCHIP_WRITE(ADDR,VAL) WIZCHIP_WRITE(ADDR,VAL)
76 #define IINCHIP_READ_BUF(ADDR,BUF,LEN) WIZCHIP_READ_BUF(ADDR,BUF,LEN)
77 #define IINCHIP_WRITE_BUF(ADDR,BUF,LEN) WIZCHIP_WRITE(ADDR,BUF,LEN)
214 #define MR (_W5500_IO_BASE_ + (0x0000 << 8) + (WIZCHIP_CREG_BLOCK << 3))
221 #define GAR (_W5500_IO_BASE_ + (0x0001 << 8) + (WIZCHIP_CREG_BLOCK << 3))
228 #define SUBR (_W5500_IO_BASE_ + (0x0005 << 8) + (WIZCHIP_CREG_BLOCK << 3))
235 #define SHAR (_W5500_IO_BASE_ + (0x0009 << 8) + (WIZCHIP_CREG_BLOCK << 3))
242 #define SIPR (_W5500_IO_BASE_ + (0x000F << 8) + (WIZCHIP_CREG_BLOCK << 3))
249 #define INTLEVEL (_W5500_IO_BASE_ + (0x0013 << 8) + (WIZCHIP_CREG_BLOCK << 3))
266 #define IR (_W5500_IO_BASE_ + (0x0015 << 8) + (WIZCHIP_CREG_BLOCK << 3))
286 #define _IMR_ (_W5500_IO_BASE_ + (0x0016 << 8) + (WIZCHIP_CREG_BLOCK << 3))
294 #define SIR (_W5500_IO_BASE_ + (0x0017 << 8) + (WIZCHIP_CREG_BLOCK << 3))
303 #define SIMR (_W5500_IO_BASE_ + (0x0018 << 8) + (WIZCHIP_CREG_BLOCK << 3))
315 #define _RTR_ (_W5500_IO_BASE_ + (0x0019 << 8) + (WIZCHIP_CREG_BLOCK << 3))
325 #define _RCR_ (_W5500_IO_BASE_ + (0x001B << 8) + (WIZCHIP_CREG_BLOCK << 3))
332 #define PTIMER (_W5500_IO_BASE_ + (0x001C << 8) + (WIZCHIP_CREG_BLOCK << 3))
339 #define PMAGIC (_W5500_IO_BASE_ + (0x001D << 8) + (WIZCHIP_CREG_BLOCK << 3))
346 #define PHAR (_W5500_IO_BASE_ + (0x001E << 8) + (WIZCHIP_CREG_BLOCK << 3))
353 #define PSID (_W5500_IO_BASE_ + (0x0024 << 8) + (WIZCHIP_CREG_BLOCK << 3))
360 #define PMRU (_W5500_IO_BASE_ + (0x0026 << 8) + (WIZCHIP_CREG_BLOCK << 3))
369 #define UIPR (_W5500_IO_BASE_ + (0x0028 << 8) + (WIZCHIP_CREG_BLOCK << 3))
378 #define UPORTR (_W5500_IO_BASE_ + (0x002C << 8) + (WIZCHIP_CREG_BLOCK << 3))
385 #define PHYCFGR (_W5500_IO_BASE_ + (0x002E << 8) + (WIZCHIP_CREG_BLOCK << 3))
403 #define VERSIONR (_W5500_IO_BASE_ + (0x0039 << 8) + (WIZCHIP_CREG_BLOCK << 3))
437 #define Sn_MR(N) (_W5500_IO_BASE_ + (0x0000 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
456 #define Sn_CR(N) (_W5500_IO_BASE_ + (0x0001 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
474 #define Sn_IR(N) (_W5500_IO_BASE_ + (0x0002 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
497 #define Sn_SR(N) (_W5500_IO_BASE_ + (0x0003 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
505 #define Sn_PORT(N) (_W5500_IO_BASE_ + (0x0004 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
513 #define Sn_DHAR(N) (_W5500_IO_BASE_ + (0x0006 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
523 #define Sn_DIPR(N) (_W5500_IO_BASE_ + (0x000C << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
533 #define Sn_DPORT(N) (_W5500_IO_BASE_ + (0x0010 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
540 #define Sn_MSSR(N) (_W5500_IO_BASE_ + (0x0012 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
550 #define Sn_TOS(N) (_W5500_IO_BASE_ + (0x0015 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
557 #define Sn_TTL(N) (_W5500_IO_BASE_ + (0x0016 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
576 #define Sn_RXBUF_SIZE(N) (_W5500_IO_BASE_ + (0x001E << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
587 #define Sn_TXBUF_SIZE(N) (_W5500_IO_BASE_ + (0x001F << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
598 #define Sn_TX_FSR(N) (_W5500_IO_BASE_ + (0x0020 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
610 #define Sn_TX_RD(N) (_W5500_IO_BASE_ + (0x0022 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
624 #define Sn_TX_WR(N) (_W5500_IO_BASE_ + (0x0024 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
633 #define Sn_RX_RSR(N) (_W5500_IO_BASE_ + (0x0026 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
646 #define Sn_RX_RD(N) (_W5500_IO_BASE_ + (0x0028 << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
655 #define Sn_RX_WR(N) (_W5500_IO_BASE_ + (0x002A << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
665 #define Sn_IMR(N) (_W5500_IO_BASE_ + (0x002C << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
672 #define Sn_FRAG(N) (_W5500_IO_BASE_ + (0x002D << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
685 #define Sn_KPALVTR(N) (_W5500_IO_BASE_ + (0x002F << 8) + (WIZCHIP_SREG_BLOCK(N) << 3))
724 #define MR_PPPOE 0x08
739 #define IR_CONFLICT 0x80
746 #define IR_UNREACH 0x40
752 #define IR_PPPoE 0x20
762 #define PHYCFGR_RST ~(1<<7) //< For PHY reset, must operate AND mask.
763 #define PHYCFGR_OPMD (1<<6) // Configre PHY with OPMDC value
764 #define PHYCFGR_OPMDC_ALLA (7<<3)
765 #define PHYCFGR_OPMDC_PDOWN (6<<3)
766 #define PHYCFGR_OPMDC_NA (5<<3)
767 #define PHYCFGR_OPMDC_100FA (4<<3)
768 #define PHYCFGR_OPMDC_100F (3<<3)
769 #define PHYCFGR_OPMDC_100H (2<<3)
770 #define PHYCFGR_OPMDC_10F (1<<3)
771 #define PHYCFGR_OPMDC_10H (0<<3)
772 #define PHYCFGR_DPX_FULL (1<<2)
773 #define PHYCFGR_DPX_HALF (0<<2)
774 #define PHYCFGR_SPD_100 (1<<1)
775 #define PHYCFGR_SPD_10 (0<<1)
776 #define PHYCFGR_LNK_ON (1<<0)
777 #define PHYCFGR_LNK_OFF (0<<0)
817 #define Sn_MR_MULTI 0x80
826 #define Sn_MR_BCASTB 0x40
836 #define Sn_MR_ND 0x20
844 #define Sn_MR_UCASTB 0x10
851 #define Sn_MR_MACRAW 0x04
859 #define Sn_MR_UDP 0x02
865 #define Sn_MR_TCP 0x01
871 #define Sn_MR_CLOSE 0x00
884 #define Sn_MR_MFEN Sn_MR_MULTI
893 #define Sn_MR_MMB Sn_MR_ND
901 #define Sn_MR_MIP6B Sn_MR_UCASTB
910 #define Sn_MR_MC Sn_MR_ND
916 #define SOCK_STREAM Sn_MR_TCP
921 #define SOCK_DGRAM Sn_MR_UDP
937 #define Sn_CR_OPEN 0x01
948 #define Sn_CR_LISTEN 0x02
960 #define Sn_CR_CONNECT 0x04
973 #define Sn_CR_DISCON 0x08
979 #define Sn_CR_CLOSE 0x10
987 #define Sn_CR_SEND 0x20
997 #define Sn_CR_SEND_MAC 0x21
1005 #define Sn_CR_SEND_KEEP 0x22
1013 #define Sn_CR_RECV 0x40
1020 #define Sn_IR_SENDOK 0x10
1026 #define Sn_IR_TIMEOUT 0x08
1032 #define Sn_IR_RECV 0x04
1038 #define Sn_IR_DISCON 0x02
1044 #define Sn_IR_CON 0x01
1052 #define SOCK_CLOSED 0x00
1060 #define SOCK_INIT 0x13
1068 #define SOCK_LISTEN 0x14
1077 #define SOCK_SYNSENT 0x15
1085 #define SOCK_SYNRECV 0x16
1094 #define SOCK_ESTABLISHED 0x17
1102 #define SOCK_FIN_WAIT 0x18
1110 #define SOCK_CLOSING 0x1A
1118 #define SOCK_TIME_WAIT 0x1B
1126 #define SOCK_CLOSE_WAIT 0x1C
1133 #define SOCK_LAST_ACK 0x1D
1141 #define SOCK_UDP 0x22
1151 #define SOCK_MACRAW 0x42
1156 #define IPPROTO_IP 0 //< Dummy for IP
1157 #define IPPROTO_ICMP 1 //< Control message protocol
1158 #define IPPROTO_IGMP 2 //< Internet group management protocol
1159 #define IPPROTO_GGP 3 //< Gateway^2 (deprecated)
1160 #define IPPROTO_TCP 6 //< TCP
1161 #define IPPROTO_PUP 12 //< PUP
1162 #define IPPROTO_UDP 17 //< UDP
1163 #define IPPROTO_IDP 22 //< XNS idp
1164 #define IPPROTO_ND 77 //< UNOFFICIAL net disk protocol
1165 #define IPPROTO_RAW 255 //< Raw IP packet
1179 #define WIZCHIP_CRITICAL_ENTER() WIZCHIP.CRIS._enter()
1196 #define WIZCHIP_CRITICAL_EXIT() WIZCHIP.CRIS._exit()
1248 WIZCHIP_WRITE(MR,mr)
1266 #define setGAR(gar) \
1267 WIZCHIP_WRITE_BUF(GAR,gar,4)
1275 #define getGAR(gar) \
1276 WIZCHIP_READ_BUF(GAR,gar,4)
1284 #define setSUBR(subr) \
1285 WIZCHIP_WRITE_BUF(SUBR, subr,4)
1294 #define getSUBR(subr) \
1295 WIZCHIP_READ_BUF(SUBR, subr, 4)
1303 #define setSHAR(shar) \
1304 WIZCHIP_WRITE_BUF(SHAR, shar, 6)
1312 #define getSHAR(shar) \
1313 WIZCHIP_READ_BUF(SHAR, shar, 6)
1321 #define setSIPR(sipr) \
1322 WIZCHIP_WRITE_BUF(SIPR, sipr, 4)
1330 #define getSIPR(sipr) \
1331 WIZCHIP_READ_BUF(SIPR, sipr, 4)
1339 #define setINTLEVEL(intlevel) {\
1340 WIZCHIP_WRITE(INTLEVEL, (uint8_t)(intlevel >> 8)); \
1341 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(INTLEVEL,1), (uint8_t) intlevel); \
1356 #define getINTLEVEL() \
1357 (((uint16_t)WIZCHIP_READ(INTLEVEL) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(INTLEVEL,1)))
1366 WIZCHIP_WRITE(IR, (ir & 0xF0))
1375 (WIZCHIP_READ(IR) & 0xF0)
1382 #define setIMR(imr) \
1383 WIZCHIP_WRITE(_IMR_, imr)
1400 #define setSIR(sir) \
1401 WIZCHIP_WRITE(SIR, sir)
1417 #define setSIMR(simr) \
1418 WIZCHIP_WRITE(SIMR, simr)
1435 #define setRTR(rtr) {\
1436 WIZCHIP_WRITE(_RTR_, (uint8_t)(rtr >> 8)); \
1437 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(_RTR_,1), (uint8_t) rtr); \
1452 (((uint16_t)WIZCHIP_READ(_RTR_) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(_RTR_,1)))
1461 #define setRCR(rcr) \
1462 WIZCHIP_WRITE(_RCR_, rcr)
1481 #define setPTIMER(ptimer) \
1482 WIZCHIP_WRITE(PTIMER, ptimer)
1490 #define getPTIMER() \
1491 WIZCHIP_READ(PTIMER)
1499 #define setPMAGIC(pmagic) \
1500 WIZCHIP_WRITE(PMAGIC, pmagic)
1508 #define getPMAGIC() \
1509 WIZCHIP_READ(PMAGIC)
1517 #define setPHAR(phar) \
1518 WIZCHIP_WRITE_BUF(PHAR, phar, 6)
1526 #define getPHAR(phar) \
1527 WIZCHIP_READ_BUF(PHAR, phar, 6)
1535 #define setPSID(psid) {\
1536 WIZCHIP_WRITE(PSID, (uint8_t)(psid >> 8)); \
1537 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(PSID,1), (uint8_t) psid); \
1553 (((uint16_t)WIZCHIP_READ(PSID) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(PSID,1)))
1561 #define setPMRU(pmru) { \
1562 WIZCHIP_WRITE(PMRU, (uint8_t)(pmru>>8)); \
1563 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(PMRU,1), (uint8_t) pmru); \
1578 (((uint16_t)WIZCHIP_READ(PMRU) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(PMRU,1)))
1590 #define getUIPR(uipr) \
1591 WIZCHIP_READ_BUF(UIPR,uipr,4)
1603 #define getUPORTR() \
1604 (((uint16_t)WIZCHIP_READ(UPORTR) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(UPORTR,1)))
1612 #define setPHYCFGR(phycfgr) \
1613 WIZCHIP_WRITE(PHYCFGR, phycfgr)
1621 #define getPHYCFGR() \
1622 WIZCHIP_READ(PHYCFGR)
1629 #define getVERSIONR() \
1630 WIZCHIP_READ(VERSIONR)
1644 #define setSn_MR(sn, mr) \
1645 WIZCHIP_WRITE(Sn_MR(sn),mr)
1654 #define getSn_MR(sn) \
1655 WIZCHIP_READ(Sn_MR(sn))
1664 #define setSn_CR(sn, cr) \
1665 WIZCHIP_WRITE(Sn_CR(sn), cr)
1674 #define getSn_CR(sn) \
1675 WIZCHIP_READ(Sn_CR(sn))
1684 #define setSn_IR(sn, ir) \
1685 WIZCHIP_WRITE(Sn_IR(sn), (ir & 0x1F))
1694 #define getSn_IR(sn) \
1695 (WIZCHIP_READ(Sn_IR(sn)) & 0x1F)
1704 #define setSn_IMR(sn, imr) \
1705 WIZCHIP_WRITE(Sn_IMR(sn), (imr & 0x1F))
1714 #define getSn_IMR(sn) \
1715 (WIZCHIP_READ(Sn_IMR(sn)) & 0x1F)
1723 #define getSn_SR(sn) \
1724 WIZCHIP_READ(Sn_SR(sn))
1733 #define setSn_PORT(sn, port) { \
1734 WIZCHIP_WRITE(Sn_PORT(sn), (uint8_t)(port >> 8)); \
1735 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_PORT(sn),1), (uint8_t) port); \
1750 #define getSn_PORT(sn) \
1751 (((uint16_t)WIZCHIP_READ(Sn_PORT(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_PORT(sn),1)))
1760 #define setSn_DHAR(sn, dhar) \
1761 WIZCHIP_WRITE_BUF(Sn_DHAR(sn), dhar, 6)
1770 #define getSn_DHAR(sn, dhar) \
1771 WIZCHIP_READ_BUF(Sn_DHAR(sn), dhar, 6)
1780 #define setSn_DIPR(sn, dipr) \
1781 WIZCHIP_WRITE_BUF(Sn_DIPR(sn), dipr, 4)
1790 #define getSn_DIPR(sn, dipr) \
1791 WIZCHIP_READ_BUF(Sn_DIPR(sn), dipr, 4)
1800 #define setSn_DPORT(sn, dport) { \
1801 WIZCHIP_WRITE(Sn_DPORT(sn), (uint8_t) (dport>>8)); \
1802 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_DPORT(sn),1), (uint8_t) dport); \
1817 #define getSn_DPORT(sn) \
1818 (((uint16_t)WIZCHIP_READ(Sn_DPORT(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_DPORT(sn),1)))
1827 #define setSn_MSSR(sn, mss) { \
1828 WIZCHIP_WRITE(Sn_MSSR(sn), (uint8_t)(mss>>8)); \
1829 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_MSSR(sn),1), (uint8_t) mss); \
1844 #define getSn_MSSR(sn) \
1845 (((uint16_t)WIZCHIP_READ(Sn_MSSR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_MSSR(sn),1)))
1854 #define setSn_TOS(sn, tos) \
1855 WIZCHIP_WRITE(Sn_TOS(sn), tos)
1864 #define getSn_TOS(sn) \
1865 WIZCHIP_READ(Sn_TOS(sn))
1874 #define setSn_TTL(sn, ttl) \
1875 WIZCHIP_WRITE(Sn_TTL(sn), ttl)
1885 #define getSn_TTL(sn) \
1886 WIZCHIP_READ(Sn_TTL(sn))
1896 #define setSn_RXBUF_SIZE(sn, rxbufsize) \
1897 WIZCHIP_WRITE(Sn_RXBUF_SIZE(sn),rxbufsize)
1907 #define getSn_RXBUF_SIZE(sn) \
1908 WIZCHIP_READ(Sn_RXBUF_SIZE(sn))
1917 #define setSn_TXBUF_SIZE(sn, txbufsize) \
1918 WIZCHIP_WRITE(Sn_TXBUF_SIZE(sn), txbufsize)
1927 #define getSn_TXBUF_SIZE(sn) \
1928 WIZCHIP_READ(Sn_TXBUF_SIZE(sn))
1949 #define getSn_TX_RD(sn) \
1950 (((uint16_t)WIZCHIP_READ(Sn_TX_RD(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_TX_RD(sn),1)))
1959 #define setSn_TX_WR(sn, txwr) { \
1960 WIZCHIP_WRITE(Sn_TX_WR(sn), (uint8_t)(txwr>>8)); \
1961 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_TX_WR(sn),1), (uint8_t) txwr); \
1976 #define getSn_TX_WR(sn) \
1977 (((uint16_t)WIZCHIP_READ(Sn_TX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_TX_WR(sn),1)))
1996 #define setSn_RX_RD(sn, rxrd) { \
1997 WIZCHIP_WRITE(Sn_RX_RD(sn), (uint8_t)(rxrd>>8)); \
1998 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_RX_RD(sn),1), (uint8_t) rxrd); \
2013 #define getSn_RX_RD(sn) \
2014 (((uint16_t)WIZCHIP_READ(Sn_RX_RD(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_RD(sn),1)))
2027 #define getSn_RX_WR(sn) \
2028 (((uint16_t)WIZCHIP_READ(Sn_RX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_WR(sn),1)))
2037 #define setSn_FRAG(sn, frag) { \
2038 WIZCHIP_WRITE(Sn_FRAG(sn), (uint8_t)(frag >>8)); \
2039 WIZCHIP_WRITE(WIZCHIP_OFFSET_INC(Sn_FRAG(sn),1), (uint8_t) frag); \
2054 #define getSn_FRAG(sn) \
2055 (((uint16_t)WIZCHIP_READ(Sn_FRAG(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_FRAG(sn),1)))
2064 #define setSn_KPALVTR(sn, kpalvt) \
2065 WIZCHIP_WRITE(Sn_KPALVTR(sn), kpalvt)
2074 #define getSn_KPALVTR(sn) \
2075 WIZCHIP_READ(Sn_KPALVTR(sn))
2093 #define getSn_RxMAX(sn) \
2094 (((uint16_t)getSn_RXBUF_SIZE(sn)) << 10)
2107 #define getSn_TxMAX(sn) \
2108 (((uint16_t)getSn_TXBUF_SIZE(sn)) << 10)
2124 void wiz_send_data(uint8_t sn, uint8_t *wizdata, uint16_t len);
2140 void wiz_recv_data(uint8_t sn, uint8_t *wizdata, uint16_t len);
uint16_t getSn_TX_FSR(uint8_t sn)
Get Sn_TX_FSR register.
uint16_t getSn_RX_RSR(uint8_t sn)
Get Sn_RX_RSR register.
void wiz_recv_data(uint8_t sn, uint8_t *wizdata, uint16_t len)
It copies data to your buffer from internal RX memory.
void WIZCHIP_READ_BUF(uint32_t AddrSel, uint8_t *pBuf, uint16_t len)
It reads sequence data from registers.
void wiz_send_data(uint8_t sn, uint8_t *wizdata, uint16_t len)
It copies data to internal TX memory.
void WIZCHIP_WRITE(uint32_t AddrSel, uint8_t wb)
It writes 1 byte value to a register.
void WIZCHIP_WRITE_BUF(uint32_t AddrSel, uint8_t *pBuf, uint16_t len)
It writes sequence data to registers.
void wiz_recv_ignore(uint8_t sn, uint16_t len)
It discard the received data in RX memory.
uint8_t WIZCHIP_READ(uint32_t AddrSel)
It reads 1 byte value from a register.
WIZCHIP Config Header File.