#pragma once // Ethernet for the bridge board: a W5500 on SPI, DHCP. The UDP bridge (bridge_main.c) runs on it: a host sends // dst_mac + packet to this board's port and gets src_mac + packet back, the same as the simulator's bridge. #include #include #include "esp_err.h" // Start the W5500 (pins from Kconfig). Its address is logged once DHCP answers. ESP_FAIL when there is no // W5500 on the board; the USB bridge works without it. esp_err_t bridge_eth_start(void); bool bridge_eth_up(void); // The board's IPv4 address (a.b.c.d) once DHCP has answered; false until then bool bridge_eth_ip(uint8_t ip[4]);