EmbeddedEthernet.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * EmbeddedEthernet.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "IdfService.h"
14 
15 struct esp_eth_mac_s;
16 struct esp_eth_phy_s;
17 struct esp_netif_obj;
18 
50 {
51 public:
52  struct Config {
54  int8_t smiMdcPin = Ethernet::PIN_DEFAULT; //< SMI MDC GPIO number
55  int8_t smiMdioPin = Ethernet::PIN_DEFAULT; //< SMI MDIO GPIO number
56  };
57 
58  using IdfService::IdfService;
59 
66  bool begin(const Config& config);
67 };
Ethernet provider using ESP32 embedded MAC. Requires an external PHY.
Definition: EmbeddedEthernet.h:50
bool begin(const Config &config)
Configure and start the ethernet service.
Base Ethernet service for IDF SDK.
Definition: IdfService.h:25
constexpr int8_t PIN_DEFAULT
Use default pin for platform.
Definition: Ethernet.h:54
Definition: EmbeddedEthernet.h:52
int8_t smiMdcPin
Definition: EmbeddedEthernet.h:54
Ethernet::PhyConfig phy
Definition: EmbeddedEthernet.h:53
int8_t smiMdioPin
Definition: EmbeddedEthernet.h:55
PHY configuration.
Definition: Ethernet.h:84