This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500.

Dependents:   HTTP_SDcard_file_server_WIZwiki-W7500 SSD1306_smart_watch TCPEchoServer-WIZwiki-W7500 httpServer-WIZwiki-W7500 ... more

Fork of WIZnetInterface by Soohwan Kim

This is WIZnet Ethernet Interface using Hardware TCP/IP chip, W5500 and TCP/IP Offload Engine, W7500.

[Users » embeddist » Code » WIZnetInterface](https://developer.mbed.org/users/embeddist/code/WIZnetInterface/) -> WIZnetInterface Lib will be released on [Team WIZnet](https://developer.mbed.org/teams/WIZnet/)

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500_enabled.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500P_enabled2.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500ECO_enabled2.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/components/components/fetch.phpmediaoshw5500_ethernet_shieldw5500_main_picture2.png.200x200_q85.jpg

This library is an Ethernet Interface library port-based on [EthernetInterface](https://developer.mbed.org/users/mbed_official/code/EthernetInterface/docs/tip/).

For more detail, visit http://embeddist.blogspot.kr/2015/06/wiznetinterface-for-armmbed.html

Revision:
4:4930f81bbe98
Parent:
3:f8c6efc8bf83
Child:
8:4c02de1dbf3a
--- a/arch/ext/W5500.cpp	Mon Jun 15 12:55:19 2015 +0000
+++ b/arch/ext/W5500.cpp	Mon Jun 15 22:12:21 2015 +0900
@@ -52,6 +52,7 @@
     cs = 1;
     reset_pin = 1;
     inst = this;
+    sock_any_port = SOCK_ANY_PORT_NUM;
 }
 
 WIZnet_Chip::WIZnet_Chip(SPI* spi, PinName _cs, PinName _reset):
@@ -61,6 +62,15 @@
     cs = 1;
     reset_pin = 1;
     inst = this;
+    sock_any_port = SOCK_ANY_PORT_NUM;
+}
+
+bool WIZnet_Chip::setmac()
+{
+
+    for (int i =0; i < 6; i++) reg_wr<uint8_t>(SHAR+i, mac[i]);
+
+    return true;
 }
 
 // Set the IP
@@ -72,6 +82,15 @@
     return true;
 }
 
+bool WIZnet_Chip::linkstatus()
+{
+    if ( (reg_rd<uint8_t>(PHYCFGR) & 0x01) != 0x01 )
+        return false;
+
+    return true;
+}
+
+
 bool WIZnet_Chip::setProtocol(int socket, Protocol p)
 {
     if (socket < 0) {