类 CoE.ObjectEntry
java.lang.Object
com.darra.ethercat.slave.CoE.ObjectEntry
- 封闭类:
CoE
对象字典条目 - 支持类型化读写与访问权限检查
-
字段概要
字段 -
构造器概要
构造器构造器说明ObjectEntry(short odIndex, byte subIndex, String name, short dataType, int bitLength, int objAccess) -
方法概要
修饰符和类型方法说明booleancanRead()是否可读booleancanWrite()是否可写booleanOP 下是否可写booleanPreOP 下是否可写booleanSafeOP 下是否可写获取访问权限描述 (对齐 C# AccessDescription)int字节长度 (向上取整)byte[]getBytes()读取原始字节 (对齐 C# Bytes getter) 优先尝试 Complete Access,失败时回退到普通模式short数据类型 (对齐 C# Datatype)<T> T获取值并转换为指定类型 (对齐 C# GetValue) boolean是否只读类型化读取 - Float类型化读取 - Int16类型化读取 - Int32readInt8()类型化读取 - Int8类型化读取 - StringvoidsetBytes(byte[] data) 写入原始字节 (对齐 C# Bytes setter)toString()
-
字段详细资料
-
ODIndex
public final short ODIndex -
SubIndex
public final byte SubIndex -
Name
-
DataType
public final short DataType -
BitLength
public final int BitLength -
ObjAccess
public final int ObjAccess
-
-
构造器详细资料
-
ObjectEntry
public ObjectEntry(short odIndex, byte subIndex, String name, short dataType, int bitLength, int objAccess)
-
-
方法详细资料
-
getByteLength
public int getByteLength()字节长度 (向上取整) -
getDatatype
public short getDatatype()数据类型 (对齐 C# Datatype) -
canRead
public boolean canRead()是否可读 -
canWrite
public boolean canWrite()是否可写 -
canWritePreOp
public boolean canWritePreOp()PreOP 下是否可写 -
canWriteSafeOp
public boolean canWriteSafeOp()SafeOP 下是否可写 -
canWriteOp
public boolean canWriteOp()OP 下是否可写 -
isReadOnly
public boolean isReadOnly()是否只读 -
getAccessDescription
获取访问权限描述 (对齐 C# AccessDescription) -
getBytes
public byte[] getBytes()读取原始字节 (对齐 C# Bytes getter) 优先尝试 Complete Access,失败时回退到普通模式 -
setBytes
public void setBytes(byte[] data) 写入原始字节 (对齐 C# Bytes setter) -
getValue
获取值并转换为指定类型 (对齐 C# GetValue) -
readInt8
类型化读取 - Int8 -
readInt16
类型化读取 - Int16 -
readInt32
类型化读取 - Int32 -
readFloat
类型化读取 - Float -
readString
类型化读取 - String -
toString
-