29 lines
571 B
C
29 lines
571 B
C
|
#pragma once
|
||
|
#include "Command.h"
|
||
|
|
||
|
#define READ_FLOAT_POINT 1
|
||
|
#define SET_TARGE_VALUE 2
|
||
|
|
||
|
|
||
|
class Aibus :
|
||
|
public Command
|
||
|
{
|
||
|
public:
|
||
|
Aibus(int32_t id,uint8_t addr, uint8_t paramCode,int16_t writeValue,bool isRead);
|
||
|
virtual ~Aibus(void);
|
||
|
int GetRequestSequence(uint8_t* bseq);
|
||
|
bool Verify(uint8_t*, int32_t datalength);
|
||
|
int ConstReturnSize() { return RESPONSE_LENGTH; }
|
||
|
public:
|
||
|
bool m_isNeedRead;
|
||
|
uint8_t m_addr;
|
||
|
uint8_t m_readFlag;
|
||
|
uint8_t m_writeFlag;
|
||
|
uint8_t m_paramCode;
|
||
|
uint8_t m_checkCode;
|
||
|
int16_t m_writeValue;
|
||
|
|
||
|
static const int RESPONSE_LENGTH = 10;
|
||
|
};
|
||
|
|