This is the Interface library for WIZnet W5500 chip which forked of EthernetInterfaceW5500, WIZnetInterface and WIZ550ioInterface. This library has simple name as "W5500Interface". and can be used for Wiz550io users also.

Dependents:   EvrythngApi Websocket_Ethernet_HelloWorld_W5500 Websocket_Ethernet_W5500 CurrentWeatherData_W5500 ... more

Information

It has EthernetInterface class like official EthernetInterface , but uses Wiznet chip driver codes.

So this library can use only the WIZnet W5500 or WIZ550io users.

This library has referred to many project such as WIZ550ioInterface, WiflyInterface and WIZnet Library.

Thanks all.

Committer:
embeddist
Date:
Tue Apr 28 13:52:23 2015 +0000
Revision:
11:5499fa2d8898
Parent:
0:e11e8793c3ce
Remove the setting of tx/rx buffer in SWReset

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bongjun 0:e11e8793c3ce 1 // DNSClient.h 2013/4/5
Bongjun 0:e11e8793c3ce 2 #pragma once
Bongjun 0:e11e8793c3ce 3
Bongjun 0:e11e8793c3ce 4 #include "UDPSocket.h"
Bongjun 0:e11e8793c3ce 5
Bongjun 0:e11e8793c3ce 6 class DNSClient {
Bongjun 0:e11e8793c3ce 7 public:
Bongjun 0:e11e8793c3ce 8 DNSClient(const char* hostname = NULL);
Bongjun 0:e11e8793c3ce 9 DNSClient(Endpoint* pHost);
Bongjun 0:e11e8793c3ce 10 virtual ~DNSClient();
Bongjun 0:e11e8793c3ce 11 bool lookup(const char* hostname = NULL);
Bongjun 0:e11e8793c3ce 12 uint32_t ip;
Bongjun 0:e11e8793c3ce 13 protected:
Bongjun 0:e11e8793c3ce 14 void poll();
Bongjun 0:e11e8793c3ce 15 void callback();
Bongjun 0:e11e8793c3ce 16 int response(uint8_t buf[], int size);
Bongjun 0:e11e8793c3ce 17 int query(uint8_t buf[], int size, const char* hostname);
Bongjun 0:e11e8793c3ce 18 void resolve(const char* hostname);
Bongjun 0:e11e8793c3ce 19 uint8_t m_id[2];
Bongjun 0:e11e8793c3ce 20 Timer m_interval;
Bongjun 0:e11e8793c3ce 21 int m_retry;
Bongjun 0:e11e8793c3ce 22 const char* m_hostname;
Bongjun 0:e11e8793c3ce 23 private:
Bongjun 0:e11e8793c3ce 24 enum MyNetDnsState
Bongjun 0:e11e8793c3ce 25 {
Bongjun 0:e11e8793c3ce 26 MYNETDNS_START,
Bongjun 0:e11e8793c3ce 27 MYNETDNS_PROCESSING, //Req has not completed
Bongjun 0:e11e8793c3ce 28 MYNETDNS_NOTFOUND,
Bongjun 0:e11e8793c3ce 29 MYNETDNS_ERROR,
Bongjun 0:e11e8793c3ce 30 MYNETDNS_OK
Bongjun 0:e11e8793c3ce 31 };
Bongjun 0:e11e8793c3ce 32 MyNetDnsState m_state;
Bongjun 0:e11e8793c3ce 33 UDPSocket *m_udp;
Bongjun 0:e11e8793c3ce 34 };