move preference converter switch cases to NetworkUtil

This commit is contained in:
technyon
2024-08-18 08:21:28 +02:00
parent 7138802462
commit 0b423ee29d
3 changed files with 78 additions and 51 deletions

View File

@@ -1,9 +1,14 @@
#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);
static eth_phy_type_t GetCustomEthernetType(int custPHY);
static eth_clock_mode_t GetCustomClock(int custCLKpref);
};