You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB
C

2 years ago
// OmronCompoWayF.h: interface for the COmronCompoWayF class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include <string>
2 years ago
#include "Scanner.h"
#ifdef BUILD_COMMDLL
#define COMMDLL_DLLCLASS __declspec(dllexport)
#else
#define COMMDLL_DLLCLASS __declspec(dllimport)
#endif
class COMMDLL_DLLCLASS COmronCompoWayF : public CScanner
{
public:
2 years ago
// ctor
2 years ago
COmronCompoWayF();
virtual ~COmronCompoWayF();
2 years ago
// methods
std::string GetReceiveData();
3 months ago
void ReceiveComm(const char* cpcBuffer, int nSize) override;
2 years ago
2 years ago
protected:
2 years ago
bool SendMsg(std::string strMsg, DWORD dwTimeout);
2 years ago
virtual void DecodeReceiveData();
2 years ago
char CalBCC(const char* cpcBuffer);
2 years ago
2 years ago
// attributes
HANDLE m_hSuccess;
2 years ago
std::string m_strNodeNo; // "00" for ZX-SF11
std::string m_strSubAddress; // Not Used for ZX-SF11, default "00"
std::string m_strSID; // Service ID, 1byte
std::string m_strMRC; // Main Request Code, 2 bytes
std::string m_strSRC; // Sub Request Code, 2 bytes
std::string m_strCommand;
2 years ago
bool m_bWaitForBCC{ false };
2 years ago
};