22 lines
534 B
Dart
22 lines
534 B
Dart
import 'io_type.dart';
|
|
|
|
abstract class Reply{
|
|
//value字节长度
|
|
int? packetHeader = 4; // 包头4个字节
|
|
int? packetType = 1; // 包类型1个字节
|
|
int? packetNumber = 1; // 包序号
|
|
int? packetIdentifier = 1; // 包标识
|
|
int? packetLength = 4; // 包标识
|
|
CommandType? commandType;
|
|
int? packetMcrc = 2; // 校验位
|
|
|
|
//command key flag
|
|
int commandKey = 0;
|
|
|
|
Reply.parseData(this.commandType, List<int> dataDetail);
|
|
// Reply({this.result});
|
|
|
|
|
|
// bool get isSuccessfully => packetHeader == EF01EE02;
|
|
|
|
} |