⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 internet.h

📁 实验开发箱中自带的UCOS嵌入式系统实验源代码
💻 H
字号:
#ifndef __INTERNET_H__
#define __INTERNET_H__

#include "..\inc\def.h"
#include "..\inc\TCPIP\Ethernet.h"
#include	"..\inc\TCPIP\netif\ethernetif.h"
#include	"..\inc\TCPIP\ipv4\lwip\ip.h"

//#include "..\inc\TCPIP\netif\cc.h"
#include "..\inc\TCPIP\lwip\sockets.h"


#define SWAPHLBYTE(num)		((((num)&0xff)<<8)|(((num)&0xff00)>>8))

#define ENMSG_MAC_REVDATA		1	//收到MAC层数据
#define ENMSG_IP_REVDATA		2	//收到IP层数据

#define Ethernet_Listen_Prio           8

typedef struct
{
	U32 EtherNetMsg;	//网卡发送的消息
	U32 Param;	//参数
}EtherNetMsg,*PEtherNetMsg;

void initOSNet(U32 ipaddr32,U32 ipmaskaddr32,U32 ipgateaddr32, U8 Mac[]);
U8 SendENRevData(U32 *prevdata);
U32* WaitENRevData();
void *EtherNetMacMemGet();
void EtherNetMacMemPut(void *pblk);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -