www.pudn.com > ComMonitor.rar > ComMonitor.h
/*File Name: ComMonitor.h*/
#ifndef _COMMONITOR_H
#define _COMMONITOR_H 1
/***************************************/
#define COMM_MSG_SYS_OK '0' //系统正常启动,可以工作了 是zero不是o
#define COMM_MSG_SYS_ERR '1' //系统启动失败
#define COMM_MSG_HEARTBEAT 'B' //heartbeat消息
#define COMM_MSG_ERR 'E' //u盘短路
#define COMM_MSG_TEST 'T' //测试
#define COMM_MSG_RESUME 'R' //继续录音
#define COMM_MSG_PAUSE 'P' //暂停录音
#define COMM_MSG_SAVE 'S' //保存录音到U盘
#define COMM_MSG_DISCONNECT 'U' //U盘已断开
#define COMM_MSG_DATA 'D' //转发主机消息
#define COMM_MSG_COPYING 'c' //开始拷贝数据
#define COMM_MSG_UFAILED 'f' //U盘检测失败(没有授权的U盘)
#define COMM_MSG_SAVE_END 's' //录音文件保存完成
#define COMM_MSG_EXIT 'X' //退出系统, 仅用于测试
/***************************************/
int loco_commStart();
void loco_commStop();
int loco_commIsStop();
int loco_commReply(char msg);
/***************************************/
#endif /*{_COMMONITOR_H}*/