Files
nuki_hub/src/util/NetworkUtil.h
iranl bd8120d10f P4
2025-03-04 21:15:43 +01:00

16 lines
483 B
C++

#pragma once
#include <string>
#include <ETH.h>
#include "../enums/NetworkDeviceType.h"
class NetworkUtil
{
public:
static NetworkDeviceType GetDeviceTypeFromPreference(int hardwareDetect, int customPhy);
static std::string GetCustomEthernetDeviceName(int custPHY);
#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32P4)
static eth_phy_type_t GetCustomEthernetType(int custPHY);
static eth_clock_mode_t GetCustomClock(int custCLKpref);
#endif
};