重新构建的批检仪主板程序
This commit is contained in:
21
interface/codec_slave.h
Normal file
21
interface/codec_slave.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CODEC_SLAVE_H
|
||||
#define CODEC_SLAVE_H
|
||||
|
||||
#include "interface/codec.h"
|
||||
|
||||
|
||||
class codec_slave: public Codec
|
||||
{
|
||||
public:
|
||||
codec_slave(): Codec(){
|
||||
|
||||
}
|
||||
virtual bool packCheck(myarray data){return false;}
|
||||
virtual bool recvByte(int byte){return false;}
|
||||
virtual myarray encode(int srcAddr, int dstAddr, int cmd, myarray data);
|
||||
virtual myarray decode(int &srcAddr, int &dstAddr, int &cmd, myarray data);
|
||||
protected:
|
||||
uint16_t cmd_no;
|
||||
};
|
||||
|
||||
#endif // CODEC_SLAVE_H
|
Reference in New Issue
Block a user