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