添加广播方式升级

This commit is contained in:
ranchuan
2023-11-29 15:36:45 +08:00
parent a0b0f41c39
commit e34b8111dc
30 changed files with 1388 additions and 146 deletions

View File

@@ -11,13 +11,14 @@ public:
{
is_big_data = false;
num_to_read = 0;
offset=0;
}
~CodecYm() {}
// 重载接收字节函数
bool recvByte(int byte);
// 重载解码函数
myarray decode(int &srcAddr, int &dstAddr, int &cmd, myarray data);
bool packCheck(myarray data);
int packCheck(myarray data);
myarray encode(int srcAddr, int dstAddr, int cmd, myarray data);
private:
@@ -26,6 +27,7 @@ private:
int cmd_no;
int cmd;
int len;
int offset;
};
#endif // CODEC_YM_H