mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-23 21:09:44 +08:00
87 lines
2.4 KiB
C
87 lines
2.4 KiB
C
|
//////////////////////////////////////////////////////////////////////////
|
|||
|
//ATP?<3F><>?<3F><><EFBFBD><EFBFBD>??????<3F><>???<3F><>
|
|||
|
//////////////////////////////////////////////////////////////////////////
|
|||
|
#pragma once
|
|||
|
//#include "pch.h"
|
|||
|
#include "ZZ_Types.h"
|
|||
|
#include "ZZ_Math.h"
|
|||
|
#include <QSerialPort>
|
|||
|
#include "IrisFiberSpectrometerBase.h"
|
|||
|
|
|||
|
using namespace ZZ_MISCDEF;
|
|||
|
using namespace ZZ_MISCDEF::ATP;
|
|||
|
using namespace ZZ_MISCDEF::IRIS::FS;
|
|||
|
|
|||
|
class ZZ_ATPControl_Serial_Qt:public CIrisFSBase
|
|||
|
{
|
|||
|
//Q_OBJECT
|
|||
|
public:
|
|||
|
ZZ_ATPControl_Serial_Qt();
|
|||
|
virtual ~ZZ_ATPControl_Serial_Qt();
|
|||
|
|
|||
|
public:
|
|||
|
//?<3F><>???<3F><>????
|
|||
|
//int SetBaudRate(int iBaud);
|
|||
|
//???????<3F><><EFBFBD><EFBFBD>?
|
|||
|
int Initialize(bool bIsUSBMode, std::string ucPortNumber, std::string strDeviceName);
|
|||
|
int Initialize(bool bIsUSBMode,ZZ_U8 ucPortNumber,std::string strDeviceName);
|
|||
|
//??<3F><>??<3F><><EFBFBD><EFBFBD>?
|
|||
|
void Close();
|
|||
|
|
|||
|
//???????????? ?????<3F><>???<3F><><EFBFBD><EFBFBD>???????
|
|||
|
int SingleShot(int &iPixels);
|
|||
|
|
|||
|
//????????????
|
|||
|
int SingleShot(DataFrame &dfData);
|
|||
|
|
|||
|
//????<3F><>?<3F><>??<3F><>????
|
|||
|
//int SingleShotDark(ATPDataFrame &dfData);
|
|||
|
|
|||
|
//int SingleShotDeducted(ATPDataFrame &dfData);
|
|||
|
//?<3F><>???????<3F><>??
|
|||
|
int SetExposureTime(int iExposureTimeInMS);
|
|||
|
|
|||
|
//?????????<3F><>???<3F><>??
|
|||
|
int GetExposureTime(int &iExposureTimeInMS);
|
|||
|
|
|||
|
//int GetWaveLength(float *pfWaveLength);
|
|||
|
|
|||
|
//?????<3F><><EFBFBD><EFBFBD>?????
|
|||
|
int GetDeviceInfo(DeviceInfo &Info);
|
|||
|
|
|||
|
//?????<3F><><EFBFBD><EFBFBD>????<3F><>????
|
|||
|
int GetDeviceAttribute(DeviceAttribute &Attr);
|
|||
|
|
|||
|
//int GetDeviceListInfo(); //use type name to enum
|
|||
|
|
|||
|
//?<3F><>??????
|
|||
|
int SetDeviceTemperature(float fTemperature);
|
|||
|
|
|||
|
//????????
|
|||
|
int GetDeviceTemperature(float &fTemperature);
|
|||
|
|
|||
|
//<2F><>???????
|
|||
|
int PerformAutoExposure(float fMinScaleFactor, float fMaxScaleFactor, float &fPredictedExposureTime);
|
|||
|
|
|||
|
#ifdef _DEBUG
|
|||
|
public:
|
|||
|
#else //
|
|||
|
private:
|
|||
|
#endif
|
|||
|
//port
|
|||
|
int m_iBaudRate;
|
|||
|
QSerialPort *m_pSerialPort;
|
|||
|
|
|||
|
//ATP
|
|||
|
DeviceInfo m_diDeviceInfo;
|
|||
|
DeviceAttribute m_daDeviceAttr;
|
|||
|
|
|||
|
//////////////////////////////////////////////////////////////////////////shutter control stub code s
|
|||
|
//int SetExtShutter(int iShutterUP0, int iShutterDOWN1,int iShutterDOWN2,int iShutterDOWN3); //0:close 1:open
|
|||
|
//////////////////////////////////////////////////////////////////////////shutter control stub code e
|
|||
|
int SendCommand(QByteArray qbCommand);
|
|||
|
int RecvData(QByteArray &qbData);
|
|||
|
int ParseData(QByteArray &qbData);
|
|||
|
//private slots :
|
|||
|
//void ReadMessage();
|
|||
|
};
|