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

📄 reg.h

📁 有关数字图像处理的一些源码
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the REG_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// REG_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#if !defined (_REG_H)
#define _REG_H

#ifdef REG_EXPORTS
#define REG_API __declspec(dllexport)
#else
#define REG_API __declspec(dllimport)
#endif




//标定数据在注册表中的路径
#define	CALIBRATION		TEXT("SOFTWARE\\IVTS2006\\Calibration")


REG_API int ReadChannel(char*DevName,int &Channel);//读取通道号
REG_API int WriteChannel(char*DevName,int Channel);//写通道号

REG_API int ReadChannelUsed(char*DevName,int&Used);//读取通道是否可用
REG_API int WriteChannelUsed(char*DevName,int Used);//写值,使通道可用

REG_API int ReadString( char* szValue, char* lpContent,  DWORD dwSize ,char* APP_REGISTRY_KEY);//读取字符串值
REG_API int WriteString( char* szValue, char* lpContent,  char*	APP_REGISTRY_KEY);//写字符串值

REG_API int ReadZeroVoltValue( char* DevName,float &ZeroVolt);//读取零点电压值
REG_API int WriteZeroVoltValue( char* DevName,float  ZeroVolt);//写零点电压值

REG_API int ReadCalibNum(char*DevName,int &Number);//读取标定点个数
REG_API int WriteCalibNum(char*DevName,int Number);//写标定点个数

REG_API int ReadSampleFreq(char *DevName,DWORD &SampleFreq);//读取采样频率
REG_API int WriteSampleFreq(char *DevName,DWORD SampleFreq);//写采样频率

REG_API int ReadSampleNum(char *DevName,int &SampleNum);//读取采样点数
REG_API int WriteSampleNum(char *DevName,int SampleNum);//写采样点数

REG_API int ReadIdleStatus(char *DevName,int &IdleStatus);//读取数字输入空闲状态
REG_API int WriteIdleStatus(char *DevName,int IdleStatus);//写  数字输入空闲状态

REG_API int ReadComPort(char *DevName,int &Comport);//读取串口号
REG_API int WriteComPort(char *DevName,int Comport);//写串口号

REG_API int ReadBaudrate(char *DevName,int &Baudrate);//读取波特率
REG_API int WriteBaudrate(char *DevName,int Baudrate);//写波特率

REG_API int ReadSampleValue( char*DevName,float &SampleValue,int Index );//读采样标定值
REG_API int WriteSampleValue( char*DevName,float SampleValue,int Index );//写采样标定值

REG_API int ReadInputValue( char*DevName,float &InputValue,int Index );//读手动输入标定值
REG_API int WriteInputValue( char *DevName,float InputValue,int Index );//写手动输入标定值

#endif

/*
// This class is exported from the Reg.dll
class REG_API CReg {
public:
	CReg(void);
	// TODO: add your methods here.
};

extern REG_API int nReg;

REG_API int fnReg(void);
*/

⌨️ 快捷键说明

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