update
This commit is contained in:
@@ -215,11 +215,10 @@
|
||||
#define W5500_INT_PORT W5500_INT_GPIO_Port
|
||||
|
||||
typedef u8 SOCKET; // 自定义端口号数据类型
|
||||
#define BSP_W5500_PORT_NUM 1
|
||||
|
||||
#define BSP_W5500_PORT_NUM 1
|
||||
#define BSP_W5500_DATA_LEN 2048
|
||||
|
||||
|
||||
#define BSP_W5500_TX_DATA_LEN 2048
|
||||
#define BSP_W5500_RX_DATA_LEN 2048
|
||||
|
||||
typedef struct bsp_W5500_Class_t bsp_W5500_Class_t;
|
||||
|
||||
@@ -228,11 +227,7 @@ struct bsp_W5500_Class_t
|
||||
SOCKET SocketPort;
|
||||
struct
|
||||
{
|
||||
/***************----- 网络参数变量定义 -----***************/
|
||||
u8 Gateway_IP[4]; /*网关IP地址*/
|
||||
u8 Sub_Mask[4]; /*子网掩码*/
|
||||
u8 Phy_Addr[6]; /*物理地址(MAC)*/
|
||||
u8 IP_Addr[4]; /*本机IP地址*/
|
||||
/***************----- 网络参数变量定义 -----***************/
|
||||
u8 Port[2]; /*端口0的端口号(5000) */
|
||||
u8 DIP[4]; /*端口0目的IP地址*/
|
||||
u8 DPort[2]; /*端口0目的端口号(6000)*/
|
||||
@@ -247,12 +242,12 @@ struct bsp_W5500_Class_t
|
||||
/***************----- 端口收发数据的状态 -----***********/
|
||||
u8 TR_Data_State;
|
||||
/***************----- 端口数据缓冲区 -----***************/
|
||||
u8 Rx_Buffer[BSP_W5500_DATA_LEN]; // 端口接收数据缓冲区
|
||||
u8 Tx_Buffer[BSP_W5500_DATA_LEN]; // 端口发送数据缓冲区
|
||||
u8 Rx_Buffer[BSP_W5500_RX_DATA_LEN]; // 端口接收数据缓冲区
|
||||
u8 Tx_Buffer[BSP_W5500_TX_DATA_LEN]; // 端口发送数据缓冲区
|
||||
|
||||
u8 Interrupt; // W5500中断标志(0:无中断,1:有中断)
|
||||
|
||||
void (*Rx_DataAnalysis)(bsp_W5500_Class_t *,u8 *,u16 );
|
||||
void (*Rx_DataAnalysis)(u8 *,u16 ,void *);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user