类 FSoE.FSoEHelper
java.lang.Object
com.darra.ethercat.slave.FSoE.FSoEHelper
- 封闭类:
FSoE
FSoE 帮助类
-
方法概要
修饰符和类型方法说明static intbuildCommand(FSoE.FSoECommand cmdType, boolean toggleBit, boolean masterReset, boolean slaveReset) 已过时。static FSoE.FSoECommandgetCommandType(int command) 从 Command 字节解出 FSoECommand.static String获取错误描述static booleangetToggleBit(int command) 已过时。static booleanisMasterResetRequest(int command) 已过时。static booleanisSlaveResetRequest(int command) 已过时。static booleanisValidStateTransition(FSoE.FSoEState current, FSoE.FSoEState target) 检查状态转换是否有效
-
方法详细资料
-
getCommandType
从 Command 字节解出 FSoECommand. 不再做位掩码, Command 就是整字节 (对齐 C# FSoEHelper.GetCommandType 的 (FSoECommand)command / Python get_command_type). -
getToggleBit
已过时。[DEPRECATED] ETG5100 V1.2.0 无 toggle bit 概念, 序列依赖由 16-bit virtual Sequence Number 承担, 恒返回 false. 保留签名仅作兼容. (对齐 C# FSoEHelper.GetToggleBit) -
isMasterResetRequest
已过时。[DEPRECATED] ETG5100 V1.2.0 无 Master Reset modifier 位. 请改用 command == FSoECommand.RESET.Value() 判断. (对齐 C# FSoEHelper.IsMasterResetRequest) -
isSlaveResetRequest
已过时。[DEPRECATED] ETG5100 V1.2.0 无 Slave Reset modifier 位. 请改用 command == FSoECommand.RESET.Value() 判断. (对齐 C# FSoEHelper.IsSlaveResetRequest) -
buildCommand
@Deprecated public static int buildCommand(FSoE.FSoECommand cmdType, boolean toggleBit, boolean masterReset, boolean slaveReset) 已过时。构建 Command 字节. ETG5100 V1.2.0 §8.2.1 Table 5 规定 Command = 整字节值, 直接强转, toggleBit/masterReset/slaveReset 仅保留签名兼容性, 运行时不影响返回值. (对齐 C# FSoEHelper.BuildCommand, [Obsolete] no-op) -
isValidStateTransition
检查状态转换是否有效 -
getErrorDescription
获取错误描述
-