?? internet.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 + -