4#include <zephyr/kernel.h>
5#include <zephyr/net/dhcpv4.h>
6#include <zephyr/net/net_event.h>
7#include <zephyr/net/net_if.h>
8#include <zephyr/net/net_ip.h>
9#include <zephyr/version.h>
11#include "AudioLogger.h"
44 bool linkUp()
const {
return _link_up; }
72 LOGE(
"No network interface");
91 LOGI(
"Ethernet: static IP");
100 LOGI(
"Ethernet: DHCP");
113 if (!_instance)
return;
121#if KERNEL_VERSION_NUMBER >= ZEPHYR_VERSION(3, 4, 0)
130 _instance->_ip =
addr->address.in_addr;
131 _instance->_ip_ready =
true;
154 struct net_if* _iface =
nullptr;
157 volatile bool _ip_ready =
false;
158 volatile bool _link_up =
false;
162 static EthernetZephyr* _instance;
#define TRACEI()
Definition AudioLoggerIDF.h:32
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGE(...)
Definition AudioLoggerIDF.h:30