public class SetupComParameter extends Parameter implements IObjectByteArray
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BYTE_LENGTH |
functionCode| 构造器和说明 |
|---|
SetupComParameter() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
byteArrayLength()
获取字节数组长度
|
static SetupComParameter |
createDefault(int pduLength)
创建默认的设置通信参数,默认最大PDU长度240
|
static SetupComParameter |
fromBytes(byte[] data)
字节数组数据解析
|
byte[] |
toByteArray()
转换为字节数组
|
public static final int BYTE_LENGTH
public static SetupComParameter fromBytes(byte[] data)
data - 字节数组数据public static SetupComParameter createDefault(int pduLength)
pduLength - PDU长度public int byteArrayLength()
IObjectByteArraybyteArrayLength 在接口中 IObjectByteArraybyteArrayLength 在类中 Parameterpublic byte[] toByteArray()
IObjectByteArraytoByteArray 在接口中 IObjectByteArraytoByteArray 在类中 ParameterCopyright © 2024. All rights reserved.