xmodem

所属分类:串口编程
开发工具:MultiPlatform
文件大小:9KB
下载次数:571
上传日期:2007-09-28 17:12:41
上 传 者zhangsir
说明:  xmodem协议接收程序,和平台无关,只要加上串口发送函数即可使用。(内有详细说明)
(XMODEM protocol to receive the procedure, and platform-independent, as long as the add function can be used to send the serial. (There are details below))

文件列表:
crctab.c (9756, 2007-09-28)
crctab.h (350, 2007-09-21)
xmodem.h (2392, 2007-09-21)
xmodemr.c (8042, 2007-09-21)

xmodem调用接口 INT32U receive(INT8U * BaseAddr);参数是接收到数据要存放的基地址,返回接收的数据长度。 你需要要实现的接口:INT8U inbyte_time(INT32U tmout_ms,INT32U *tmOut);tmout_ms代表以ms为单位的延时时间长度;其中tmOut为bool类型值,用于返回是否超时; 实现后上述函数后,只要在接收时调用函数receive即可,

近期下载者

相关文件


收藏者