REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
ethernet.cpp
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3//
4// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6#include <stdexcept>
7
8#include <net/ethernet.h>
9#include <net/settings.h>
10#include <utils/logging.h>
11
12IPAddress net::EthernetClass::localIP() const { return IPAddress(192, 168, 2, 1); }
13
14IPAddress net::EthernetClass::broadcastIP() const { throw std::runtime_error("not_impl"); }
15
16IPAddress net::EthernetClass::gatewayIP() const { throw std::runtime_error("not_impl"); }
17
18bool net::EthernetClass::isDHCPEnabled() const { throw std::runtime_error("not_impl"); }
19
20bool net::EthernetClass::isDHCPActive() const { throw std::runtime_error("not_impl"); }
21
22bool net::EthernetClass::linkState() const { throw std::runtime_error("not_impl"); }
23
24bool net::EthernetClass::linkIsFullDuplex() const { throw std::runtime_error("not_impl"); }
25
26bool net::EthernetClass::linkIsCrossover() const { throw std::runtime_error("not_impl"); }
27
28bool net::EthernetClass::interfaceStatus() const { throw std::runtime_error("not_impl"); }
29
30void net::EthernetClass::setDNSServerIP(const IPAddress &dnsServerIP) const {
31 throw std::runtime_error("not_impl");
32}
33
34bool net::EthernetClass::begin(const IPAddress &ip, const IPAddress &mask, const IPAddress &gateway) {
35 throw std::runtime_error("not_impl");
36}
37
38bool net::EthernetClass::begin() {
39 // throw std::runtime_error("not_impl");
40 return true;
41}
42
43bool net::EthernetClass::waitForLocalIP(uint32_t timeout) const {
44 // throw std::runtime_error("not_impl");
45 return true;
46}
47
48void net::EthernetClass::setHostname(const char *hostname) {
49 // throw std::runtime_error("not_impl");
50}
51
52void net::EthernetClass::setMACAddress(const uint8_t mac[6]) { throw std::runtime_error("not_impl"); }
53
54int net::EthernetClass::linkSpeed() const { throw std::runtime_error("not_impl"); }
55
56bool net::MDNSClass::begin(const char *hostname) { return true; }
57
58bool net::MDNSClass::addService(const char *type, const char *protocol, uint16_t port) { return true; }
uint32_t
Definition flasher.cpp:195