Files
OpenDTU/include/W5500.h

21 lines
491 B
C
Raw Normal View History

2024-09-26 19:22:30 +02:00
// SPDX-License-Identifier: GPL-2.0-or-later
2023-07-21 16:57:00 +02:00
#pragma once
#include <Arduino.h>
#include <esp_eth.h> // required for esp_eth_handle_t
2024-09-26 19:22:30 +02:00
#include <esp_netif.h>
2023-07-21 16:57:00 +02:00
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;
2024-09-26 19:22:30 +02:00
W5500& operator=(const W5500&) = delete;
2023-07-21 16:57:00 +02:00
~W5500();
String macAddress();
private:
esp_eth_handle_t eth_handle;
2024-09-26 19:22:30 +02:00
esp_netif_t* eth_netif;
2023-07-21 16:57:00 +02:00
};