25#include "wizchip_conf.h"
36#define DEFAULT_MAC_ADDR {0x00, 0x08, 0xDC, 0x12, 0x34, 0x56}
37#define DEFAULT_IP_ADDR {192, 168, 29, 20}
38#define DEFAULT_SUBNET_MASK {255, 255, 255, 0}
39#define DEFAULT_GATEWAY_ADDR {192, 168, 29, 1}
40#define DEFAULT_DNS_ADDR {8, 8, 8, 8}
41#define DEFAULT_UDP_PORT 6969
42#define RX_BUF_SIZE 8192
43#define TX_BUF_SIZE 8192
54 uint8_t broadcast_address[4];
63 uint8_t ip_address[4];
137 uint64_t* tx_full_enter_events);
e2s_error_t
Common error codes returned by ether2ser modules.
Network configuration wrapper used by the W5500 driver.
UDP endpoint configuration.
void w5500_set_network_defaults(NETWORK_CONFIG_T *config)
Fill network config with compile-time defaults.
void w5500_poll_udp_buffer_full_events(uint64_t *rx_full_enter_events, uint64_t *tx_full_enter_events)
void w5500_udp_tx(UDP_CONFIG_T *send_config, const UDP_FRAME_T *frame)
Send one UDP frame through W5500.
void w5500_set_network(NETWORK_CONFIG_T *config)
Apply network configuration to W5500 hardware.
e2s_error_t w5500_open_ipraw_socket(void)
Open IPRAW socket mode.
void w5500_driver_init(void)
Initialize W5500 driver and low-level interface.
e2s_error_t w5500_open_udp_socket(UDP_CONFIG_T *config)
Open configured UDP socket.
bool w5500_poll_rx(UDP_CONFIG_T *send_config, UDP_FRAME_T *frame)
Poll W5500 for received UDP data.
e2s_error_t w5500_reconfigure_udp_socket(UDP_CONFIG_T *config)
Reconfigure UDP socket with new endpoint settings.
void w5500_debug_status(void)
Print W5500 socket/PHY debug status.