37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#ifndef _TesaStarE_H_
|
|
#define _TesaStarE_H_
|
|
|
|
#include "..\SevenOcean\CMMIO_SERIAL.H"
|
|
#define TESASTARE_BAUD CBR_1200
|
|
#define TESASTARE_PARITY 'N'
|
|
#define TESASTARE_BITS 8
|
|
#define TESASTARE_STOPBITS 1
|
|
#define TESASTARE_HandShake CS_HANDSHAKE_FOR_TRESASTR_E
|
|
class CTesaStarE
|
|
{
|
|
public:
|
|
CTesaStarE(void);
|
|
~CTesaStarE(void);
|
|
BOOL Initialization(bool _bInitConfig=true);
|
|
BOOL Unload();
|
|
void LoadConfig();
|
|
BOOL SetTesaStarEAngle(const int& _AngleNumber,double* _Angle,bool _bReturnPosInfo=false);
|
|
BOOL GetTesaStarEAngle(int& _AngleNumber,double* _Angle);
|
|
CPSerial m_pSerial;
|
|
private:
|
|
BOOL ReadTesaStarEAngle();
|
|
BOOL CheckStatus();
|
|
BOOL SetPassword();
|
|
BOOL CheckRecvData(const int& _ComparedDataSize,char* _ComparedData,const int& _JudgeDataSize,char* _JudgeVal,int _Mode);
|
|
BOOL _Send_Command(const char* _SendData,DWORD _SendDataLength);
|
|
BOOL _Receive_Data(char* _SendData,DWORD& _SendDataLength);
|
|
char m_RecvData[MAX_RECIEVE_BUFFER_SIZE];
|
|
DWORD m_RecvDataSize;
|
|
int SerialComPort;
|
|
BOOL _bReading;
|
|
BOOL bEnComm;
|
|
double m_TesaStarEAngle[2];
|
|
};
|
|
|
|
|
|
#endif |