46 lines
835 B
C++
46 lines
835 B
C++
/**
|
|
* 获取RFID数据
|
|
* */
|
|
|
|
#ifndef GETRFIDENGINE_H
|
|
#define GETRFIDENGINE_H
|
|
|
|
#include "AppCommon.h"
|
|
|
|
#include "EngineBase.h"
|
|
#include "EngineFactory.h"
|
|
#include "Config.h"
|
|
#include "TimeUtil.h"
|
|
#include "BaseSocket.h"
|
|
#include "BaseComPort.h"
|
|
|
|
#define AEI_SOCKET_TYPE 0
|
|
#define AEI_COM_TYPE 1
|
|
|
|
class GetRfidEngine : public ai_matrix::EngineBase
|
|
{
|
|
public:
|
|
GetRfidEngine();
|
|
~GetRfidEngine();
|
|
|
|
APP_ERROR Init() override;
|
|
APP_ERROR DeInit() override;
|
|
APP_ERROR Process() override;
|
|
|
|
private:
|
|
|
|
std::string strPort0_;
|
|
std::string strPort1_;
|
|
|
|
ai_matrix::BaseConfig baseConfig_;
|
|
ai_matrix::SerialConfig serialConfig_;
|
|
ai_matrix::EthernetConfig ethernetConfig_;
|
|
// 连接模式
|
|
int iConnectType;
|
|
BaseSocket baseScoket_;
|
|
BaseComPort baseComPort_;
|
|
};
|
|
|
|
ENGINE_REGIST(GetRfidEngine)
|
|
|
|
#endif |