www.pudn.com > ucos_shell.rar > yyshellsub.h


//********************************************************************************** 
//杨屹    2002/08/21    第一版 
//shell界面命令执行程序 
//联系方法:gdtyy@ri.gdt.com.cn(2003/07/31以前有效) 
//********************************************************************************** 
//命令处理函数 
void DisplayTask(WORDTABLE *WordTable) reentrant;//显示任务 
void Kill(WORDTABLE *WordTable) reentrant;//杀死任务 
void PingCommand(WORDTABLE *WordTable) reentrant;//ping命令 
void UDPCommand(WORDTABLE *WordTable) reentrant;//udp命令 
void CfgHost(WORDTABLE *WordTable) reentrant;//配置主机IP地址 
void CfgMask(WORDTABLE *WordTable) reentrant;//配置子网掩码 
void CfgGateway(WORDTABLE *WordTable) reentrant;//配置网关IP地址 
void PrintConfig(WORDTABLE *WordTable) reentrant;//显示配置信息 
void DisplayHelpMenu(WORDTABLE *WordTable) reentrant;//显示帮助采单 
 
//转换函数 
bit IPadrToHEX(unsigned char *Str,union ip_address_type *ip); 
void HEXToIPadr(unsigned char *Str,union ip_address_type *ip); 
 
//IP地址类型联合体 
union ip_address_type{ 
	unsigned long dwords; 
	unsigned int words[2]; 
	unsigned char bytes[4]; 
};