Ethernet.h File Reference
#include <WString.h>
#include <IpAddress.h>
#include <MacAddress.h>
#include <Delegate.h>
#include <memory>
Include dependency graph for Ethernet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Ethernet::PhyConfig
 PHY configuration. More...
 
class  Ethernet::PhyFactory
 Virtual class used to construct a specific PHY instance. More...
 
class  Ethernet::Service
 Abstract Service class. More...
 

Namespaces

 Ethernet
 

Macros

#define ETHERNET_EVENT_MAP(XX)
 Ethernet event code map. More...
 
#define XX(tag, desc)   tag,
 

Typedefs

using Ethernet::EventDelegate = Delegate< void(Ethernet::Event event)>
 Delegate type for Ethernet events. More...
 
using Ethernet::GotIpDelegate = Delegate< void(IpAddress ip, IpAddress netmask, IpAddress gateway)>
 Delegate type for 'got IP address' event. More...
 

Enumerations

enum class  Ethernet::Event { Ethernet::XX }
 Ethernet event codes. More...
 
enum class  Ethernet::Speed { Ethernet::MBPS10 , Ethernet::MBPS100 }
 Link speed. More...
 

Functions

String toString (Ethernet::Event event)
 
String toLongString (Ethernet::Event event)
 

Variables

constexpr int8_t Ethernet::PIN_DEFAULT {-2}
 Use default pin for platform. More...
 
constexpr int8_t Ethernet::PIN_UNUSED {-1}
 Do not configure this pin. More...
 
constexpr int8_t Ethernet::PHY_ADDR_AUTO {-1}
 Automatically detect PHY address during initialization. More...
 

Macro Definition Documentation

◆ ETHERNET_EVENT_MAP

#define ETHERNET_EVENT_MAP (   XX)
Value:
XX(Start, "Ethernet driver Started") \
XX(Stop, "Ethernet driver stopped") \
XX(Connected, "Ethernet link established") \
XX(Disconnected, "Ethernet link lost")
#define XX(tag, desc)
Definition: Ethernet.h:35

Ethernet event code map.

Note
These codes are based on the ESP IDF public API.

◆ XX

#define XX (   tag,
  desc 
)    tag,

Function Documentation

◆ toLongString()

String toLongString ( Ethernet::Event  event)

◆ toString()

String toString ( Ethernet::Event  event)