move preference converter switch cases to NetworkUtil
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user