📄 comfun.h
字号:
#ifndef _COMFUN__H
#define _COMFUN__H
#define COMM_OK 0x00
#define COMM_ERROR 0x01
#define COMM_TIME_OUT 0x02
#define COMM_LEN_ERROR 0x03
#define COMM_CRC_ERROR 0x04
#define COMM_ETX_ERROR 0x05
#define COMM_TIMEOUT_ERROR 0x06
#define COMM_STX_ERROR 0x07
#define COMM_DATA_ERROR 0x08
//#define COMMMAXLEN 50
#define COMM_STX 0x60
#define COMM_ETX 0x03
#define COMM_NULL 0xff
/*=================================================
send:=>stx,len,cmd,idid,0x00,data,edc,etx
ack :=>stx,len,cmd,idid,status,data,edc,etx
==================================================*/
extern unsigned char IsShakeHands();
extern unsigned char ReceiveData(void);
extern void SendResponse(unsigned char status,unsigned char len,unsigned char *buf);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -