Files
UniversalTestSoftware/client/script/parse/Parse_fafb1dd2a9d84fca97f764023f4e0934.java

43 lines
1.1 KiB
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.cbsd.client.parse;
import com.cbsd.client.parse.IParseDataInterface;
public class Parse_fafb1dd2a9d84fca97f764023f4e0934 implements IParseDataInterface {
/**
* 从数据解析物理值
*
* @param sn 当前字段序号
* @param sourceData 源数据
* @param fieldData 当前字段数据
* @param endian BIG大端序 LITTLE小端序
* @param binStr 二进制字符串
* @return 解析后的数据值
*/
@Override
public String parsePhysicalFromData(int sn, byte[] sourceData, byte[] fieldData, String endian, String binStr) {
switch (binStr) {
case "00":
return "初始态/等待备份命令";
case "01":
return "擦除FLASH A数据";
case "10":
return "写入重构数据";
case "11":
return "重构数据更新完成";
default:
return "无效";
}
}
/**
* 描述
*
* @return 描述内容
*/
@Override
public String comment() {
return "FLASH A重构数据更新状态";
}
}