#include "W5500.h"/***************----- 网络参数变量定义-----***************/unsigned char Gateway_IP[4];// 网关IP 地址unsigned char Sub_Mask[4]; // 子网掩码unsigned char Phy_Addr[6]; // 物理地址(MAC)unsigned char ip_addr[4]; // 本机IP 地址unsigned char S0_Port[2]; // 端口0 的端口号(5000)unsigned char S0_DIP[4]; // 端口0 目的IP 地址unsigned char S0_DPort[2]; // 端口0 目的端口号(6000)unsigned char UDP_DIPR[4]; //UDP( 广播)模式,目的主机IP 地址unsigned char UDP_DPORT[2]; //UDP( 广播)模式,目的主机端口号/***************----- 端口的运行模式-----***************/unsigned char S0_Mode =3; // 端口0 的运行模式,0:TCP 服务器模式,1:TCP 客户端模式,2:UDP(广播)模式#define TCP_SERVER 0x00 / /TCP服务器模式#define TCP_CLIENT 0x01 / /TCP客户端模式#define UDP_MODE 0x02 / /UDP(广播)模式
标签:
stm32f103
驱动
w5500
上传时间:
2022-06-22
上传用户:lostxc