mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
new by zz
This commit is contained in:
@ -1,16 +1,22 @@
|
||||
#pragma once
|
||||
#include "pch.h"
|
||||
#include "ZZ_Types.h"
|
||||
using namespace ZZ_MISCDEF;
|
||||
using namespace ZZ_MISCDEF::ATP;
|
||||
|
||||
class ZZ_ATPControl_Serial_Qt
|
||||
class QSerialPort;
|
||||
|
||||
class ZZ_ATPControl_Serial_Qt//:public QObject
|
||||
{
|
||||
//Q_OBJECT
|
||||
public:
|
||||
ZZ_ATPControl_Serial_Qt();
|
||||
virtual ~ZZ_ATPControl_Serial_Qt();
|
||||
|
||||
public:
|
||||
int ATPInitialize( ZZ_U8 usIndex);
|
||||
int SetBaudRate(int iBaud);
|
||||
|
||||
int ATPInitialize( ZZ_U8 ucPortNumber);
|
||||
int ATPClose();
|
||||
|
||||
int SingleShot(ATPDataFrame &dfData);
|
||||
@ -19,13 +25,29 @@ public:
|
||||
|
||||
int SetExposureTime(int iExposureTimeInMS);
|
||||
|
||||
int GetWaveLength(float *pfWaveLength);
|
||||
int GetAttribute();
|
||||
//int GetWaveLength(float *pfWaveLength);
|
||||
int GetDeviceInfo();
|
||||
int GetDeviceAttribute();
|
||||
int GetDeviceListInfo(); //use type name to enum
|
||||
int GetDeviceTemperature(float &fTemperature);
|
||||
|
||||
int PerformAutoExposure(float fMinScaleFactor, float fMaxScaleFactor, float &fPredictedExposureTime);
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
#else //
|
||||
private:
|
||||
int SendCommand();
|
||||
#endif
|
||||
//port
|
||||
int m_iBaudRate;
|
||||
QSerialPort *m_pSerialPort;
|
||||
|
||||
//ATP
|
||||
ATPDeviceInfo m_adiDeviceInfo;
|
||||
ATPDeviceAttribute m_adaDeviceAttr;
|
||||
int SendCommand(QByteArray qbCommand);
|
||||
int RecvData(QByteArray &qbData);
|
||||
int ParseData(QByteArray &qbData);
|
||||
//private slots :
|
||||
//void ReadMessage();
|
||||
};
|
Reference in New Issue
Block a user