⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sad8com.h

📁 RS232串口通讯,主要用来设置芯片中的数据.
💻 H
字号:
// sad8com.h: interface for the sad8com class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SAD8COM_H__02E18405_5E51_43F4_A397_5D68748398A3__INCLUDED_)
#define AFX_SAD8COM_H__02E18405_5E51_43F4_A397_5D68748398A3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "comoperate.h"
#include "hex2str.h"
#include "str2bcd.h"

class CSSAD8COM  
{

#define	cSendbuf_ReadDemo	"?0000?"	//	发送缓冲区模板
#define	cSendbuf_WriteDemo	"!0000!"
#define	cSendbuf_ThermDemo	"@0000@"	
	private:
	char commandbuf[256];
	char answerbuf[256];
public:


	int comno;			//		串口号
char sad8read_buf[128];
char sad8_thermbuf[128];
char	sad8_defaultbuf[128];

	char errnostring[256];

	int iWrite_Sad8(void);
		BOOL iRead_Sad8();
	BOOL readtherm();

	BOOL check_thermbackstring(char *stemp);
	BOOL check_readbackstring(char *stemp);
	BOOL check_writebackstring(char *stemp);
	BOOL thermstr2hex(byte * buchang, int len,	  byte * innum);
	void thermhex2str(byte cthermhex, byte * buchang, int len);
	CSSAD8COM();
	virtual ~CSSAD8COM();


};

#endif // !defined(AFX_SAD8COM_H__02E18405_5E51_43F4_A397_5D68748398A3__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -