telsrc_c.h
资源名称:dongruanC.rar [点击查看]
上传用户:xqing521
上传日期:2014-11-02
资源大小:1942k
文件大小:2k
源码类别:
嵌入式/单片机编程
开发平台:
C/C++
- /********************************************************************
- 挊嶌尃強桳幰 丗 WangHongjun@neusoft.com
- 僜乕僗僼傽僀儖柤 丗 telsrc_c.h
- 撪梕 丗 儅僋儘掕媊
- 嶌惉擔丒幰 丗 2005.07.08 Wang Hongjun
- 廋惓擔丒幰 丗
- *********************************************************************/
- /*------------------------------------------------------------------*/
- /* */
- /* 儅僋儘掕媊晹暘 */
- /* */
- /*------------------------------------------------------------------*/
- #ifndef __TELSRC_C_H__
- #define __TELSRC_C_H__
- /* Return value definition */
- #define RET_SUCCESS ( 0 ) /* Execute successfully */
- #define RET_FAILED ( -1 ) /* Execute failure */
- /* Flag definition */
- #define FLG_TRUE ( 1 )
- #define FLG_FALSE ( 0 )
- #define TELSRC_MAXDATANUM ( 1000 )
- /* Data source type */
- #define TELSRC_DATASRC_FILE ( 0 ) /* Data saved in file */
- #define TELSRC_DATASRC_MEM ( 1 ) /* Data saved in memory */
- #define TELSRC_NO_MAXLEN ( 11 + 1 ) /* Max lenth of Tel No. */
- #define TELSRC_NAME_MAXLEN ( 64 + 1 ) /* Max lenth of Name */
- #define TELSRC_LEGAL ( 0 ) /* Legal Tel No. */
- #define TELSRC_ILLEGAL ( 1 ) /* Illegal Tel No. */
- /* User operation type */
- #define TELSRC_INIT ( 0 ) /* Init status */
- #define TELSRC_DATAREG ( 1 ) /* Data register */
- #define TELSRC_DATASRC ( 2 ) /* Data search */
- #define TELSRC_DATADEL ( 3 ) /* Data delete */
- #define TELSRC_QUIT ( 4 ) /* Quit */
- #endif /* End of __TELSRC_C_H__ */
- /* End of file-----------------------------------------------------*/