35 lines
823 B
C++
35 lines
823 B
C++
#pragma once
|
|
#include "pch.h"
|
|
class IrisSensor_Gas_P0
|
|
{
|
|
public:
|
|
IrisSensor_Gas_P0();
|
|
~IrisSensor_Gas_P0();
|
|
|
|
private:
|
|
int m_iBaudRate;
|
|
QSerialPort *m_pSerialPort;
|
|
std::string m_sRecv;
|
|
|
|
float m_fTPTemperature;
|
|
float m_fPP, m_fPB;
|
|
unsigned long m_ulCO2, m_ulH2O;
|
|
|
|
unsigned int uiSoftwareVersion, uiHardwareVersion;
|
|
public:
|
|
|
|
private:
|
|
int SendData_Chk(std::string sSend);
|
|
int RecvData_Chk(/*std::string sRecv*/);
|
|
int ParseMeasuredData_Chk();
|
|
public:
|
|
int Initialize(std::string ucPortNumber);
|
|
int GetVersion();
|
|
int GetMeasuredData(unsigned long &ulCO2, unsigned long &ulH2O,float &fTPTemperature,float &fPP, float &fPB);
|
|
int ZeroCalibration_N2();
|
|
int ZeroCalibration_Air();
|
|
int SpanCalibration(char cChannel, unsigned int uiPPM);
|
|
int ResetCalibration(char cChannel);//FF means all channel
|
|
};
|
|
|