Files
newspark110/lib/laserCtl/bllaserlib.h
Chenwenxuan edac2715f0 init
2024-03-06 14:54:30 +08:00

52 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef BLLASERLIB_H
#define BLLASERLIB_H
#include "BLLaserLib_global.h"
#include "qttelnet.h"
#include <QObject>
class BLLASERLIB_EXPORT BLLaserLib : public QObject
{
Q_OBJECT
public:
BLLaserLib();
public:
void Connect();
void DisConnect();
void WriteParam(QString);
void SetMode(int); //设置出发模式 =》 0为TOD模式 1为GATE模式
void SetEmissionOnOff(int); //设置内部激光器开光关光状态 =》 1为激光器出光 0为激光器关光
void SetExtTrigEnable(int); //设置外部激光器触发使能状态 =》 1为激光器使能开 0为激光器使能关
//
void BLStart();
void BLStop();
private:
QtTelnet* _Telnet;
private:
void CreatFolder();
private slots:
void On_LaserOpen();
void On_LaserClose();
//参数1
void On_WriteAS1();
void On_WriteAM1();
void On_WriteAB1();
void On_WriteAPP1();
void On_WritePW1();
//参数2
void On_WriteAS2();
void On_WriteAM2();
void On_WriteAB2();
void On_WriteAPP2();
void On_WritePW2();
//设置模式
void On_SetMode();
//设置外部触发信号
void On_SetExtTrigEnable();
};
#endif // BLLASERLIB_H