串口出现错误的代码
定义:
enum TErrorCode
{
COMM_NOERROR = 0, //没有错误
COMM_NOMEMORY = 1, //内存不够
COMM_INITRDBUF = 2, //不能初始化读缓存
COMM_INITWRBUF = 3, //不能初始化写缓存
COMM_OPENPORT = 4, //不能打开端口
COMM_SETMASK = 5, //不能设置端口事件MASK
COMM_BUFSIZE = 6, //不能设置端口缓存
COMM_GETSTATE = 7, //不能得到端口参数
COMM_SETSTATE = 8, //不能设置端口参数
COMM_CRRDEVENT = 9, //不能创建端口异步读事件
COMM_CRWREVENT = 10, //不能创建端口异步写事件
COMM_CRRDTHREAD = 11, //不能创建端口读线程
COMM_CRWRTHREAD = 12, //不能创建端口写线程
COMM_CLOSERDT = 13, //不能关闭端口读线程
COMM_CLOSEWRT = 14, //不能关闭端口写线程
};
__property TErrorCode ErrorCode = { read = _ErrorCode };
--------------------next---------------------
阅读(1267) | 评论(0) | 转发(0) |