Implement W5500 support

This commit is contained in:
LennartF22
2023-07-21 16:57:00 +02:00
parent 992e174bb2
commit 851190dbcc
8 changed files with 246 additions and 6 deletions

19
include/W5500.h Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <esp_netif.h>
#include <Arduino.h>
class W5500 {
public:
explicit W5500(int8_t pin_mosi, int8_t pin_miso, int8_t pin_sclk, int8_t pin_cs, int8_t pin_int, int8_t pin_rst);
W5500(const W5500&) = delete;
W5500 &operator=(const W5500&) = delete;
~W5500();
String macAddress();
private:
esp_eth_handle_t eth_handle;
esp_netif_t *eth_netif;
};