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

51 lines
1.4 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_e47760f415e644ffa07f67d8b52bbcc1 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 "0000":
return "待机工作模式";
case "0001":
return "星间收发工作模式";
case "0010":
return "对地接收256K模式";
case "0011":
return "对地接收1M模式";
case "0100":
return "对地发射256K模式";
case "0101":
return "对地发射1M模式";
case "0110":
return "预留模式1";
case "0111":
return "预留模式2";
default:
return "无效";
}
}
/**
* 描述
*
* @return 描述内容
*/
@Override
public String comment() {
return "运行模式";
}
}