24 lines
466 B
C++
24 lines
466 B
C++
#pragma once
|
|
#include "Command.h"
|
|
|
|
class CXLaserCommand :public Command
|
|
{
|
|
public:
|
|
CXLaserCommand(uint8_t oa);
|
|
~CXLaserCommand();
|
|
|
|
int GetRequestSequence(unsigned char* bseq);
|
|
bool Verify(unsigned char* rseq, int dlength);
|
|
int ConstReturnSize() { return 11; }
|
|
private:
|
|
uint8_t m_OrderAddr;
|
|
|
|
const uint8_t m_HeadL = 0xab;
|
|
const uint8_t m_HeadH = 0xcd;
|
|
const uint8_t m_DevNo = 0xff;
|
|
const uint8_t m_ReadCtrl = 0x01;
|
|
const uint8_t m_WriteCtrl = 0x02;
|
|
|
|
};
|
|
|