Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-02-12 21:08:19 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-02-12 21:08:19 +0300
commit99c2896a3e64ca76d67dda59b61ca9a8b5c6856a (patch)
treeb7f4d70a50b3167dac04c6a5d778918448982a54 /src/Networking/LwipEthernet/LwipEthernetInterface.h
parent5fa6a17b4678b54c17dff37b8717cfac15446c7c (diff)
Combined DuetWiFi and DuetEthernet builds
Diffstat (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.h')
-rw-r--r--src/Networking/LwipEthernet/LwipEthernetInterface.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.h b/src/Networking/LwipEthernet/LwipEthernetInterface.h
index 4ffbb69b..c816e573 100644
--- a/src/Networking/LwipEthernet/LwipEthernetInterface.h
+++ b/src/Networking/LwipEthernet/LwipEthernetInterface.h
@@ -44,14 +44,6 @@ public:
GCodeResult DisableProtocol(NetworkProtocol protocol, const StringRef& reply) override;
GCodeResult ReportProtocols(const StringRef& reply) const override;
- // LwIP interfaces
- void ResetCallback();
- bool Lock();
- void Unlock();
-
- bool ConnectionEstablished(tcp_pcb *pcb);
-
- // Global settings
GCodeResult GetNetworkState(const StringRef& reply) override;
int EnableState() const override;
bool InNetworkStack() const override;
@@ -60,6 +52,11 @@ public:
void UpdateHostname(const char *hostname) override;
const uint8_t *GetIPAddress() const override;
void SetIPAddress(const uint8_t p_ipAddress[], const uint8_t p_netmask[], const uint8_t p_gateway[]) override;
+ void SetMacAddress(const uint8_t mac[]) override;
+ const uint8_t *GetMacAddress() const override { return macAddress; }
+
+ // LwIP interfaces
+ bool ConnectionEstablished(tcp_pcb *pcb);
void OpenDataPort(Port port) override;
void TerminateDataPort() override;
@@ -104,6 +101,8 @@ private:
bool activated;
bool initialised;
bool usingDhcp;
+
+ uint8_t macAddress[6];
};
#endif