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

📄 udp.h

📁 mc51单片机对rtl8019编程,实现ethernet的收发控制.
💻 H
字号:
/*********************************************************
** FILE:
**	udp.h
** DESCRIPTION:
**	Define function for udp.
** NOTES:
**	Copyright(c) 2002 Luo Cheng , All rights reserved.
** HISTORY:
**	Version 	Date		Author
** 	1.0		2004/5/7	Luo Cheng	
**
*********************************************************/
#ifndef UDP_H
#define UDP_H

#include "ctype.h"
typedef struct{
	Uint16	source;
	Uint16	dest;
	Uint16	len;
	Uint16	check;
}Udphdr_struc ;

#define MAX_DUP_BUFFER_LENGTH	500
#define MAX_DUP_BUFFER_COUNT	4

void udp_process(Uint8 *pbuf);
Bool udp_open(Uint8 *pip,Uint16 port_local,Uint16 port_remote);
void udp_close();
Bool udp_sendto(Uint8 *pip,Uint16 remote_port,Uint8 *pbuf,Uint16 length);
Bool udp_send(Uint8 *pbuf,Uint16 length);
Uint16 udp_recv(Uint8 *pbuf,Uint16 length);
void tick();

#endif

⌨️ 快捷键说明

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