类 Structures.SlaveMailbox
java.lang.Object
com.sun.jna.Structure
com.darra.ethercat.data.Structures.SlaveMailbox
- 封闭类:
Structures
@FieldOrder({"length","writeOffset","readLength","readOffset","supportedProto","cnt","_padMbx"})
public static class Structures.SlaveMailbox
extends com.sun.jna.Structure
Slave 邮箱子结构 - 对应 C 端 slave_mailbox_t
原平面字段 mbx_l / mbx_wo / mbx_rl / mbx_ro / mbx_proto / mbx_cnt 收敛为 sub-struct.
嵌入到 EcSlave 中段 (FMMU 函数之后, hasdc 之前), 自然对齐 (无 pack).
64 位下: 5 × short (10) + byte (1) + 1 字节隐式填充 = 12 字节.
-
嵌套类概要
从类继承的嵌套类/接口 com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
字段概要
字段修饰符和类型字段说明byte对齐填充 (使整体 2 字节对齐, 与 C 端隐式填充一致)byte邮箱链路层协议计数器 (mbx_cnt)short写邮箱长度 (mbx_l)short读邮箱长度 (mbx_rl)short读邮箱偏移 (mbx_ro)short支持的邮箱协议 ECT_MBXPROT_* (mbx_proto)short写邮箱偏移 (mbx_wo)从类继承的字段 com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
构造器概要
构造器 -
方法概要
从类继承的方法 com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
字段详细资料
-
length
public short length写邮箱长度 (mbx_l) -
writeOffset
public short writeOffset写邮箱偏移 (mbx_wo) -
readLength
public short readLength读邮箱长度 (mbx_rl) -
readOffset
public short readOffset读邮箱偏移 (mbx_ro) -
supportedProto
public short supportedProto支持的邮箱协议 ECT_MBXPROT_* (mbx_proto) -
cnt
public byte cnt邮箱链路层协议计数器 (mbx_cnt) -
_padMbx
public byte _padMbx对齐填充 (使整体 2 字节对齐, 与 C 端隐式填充一致)
-
-
构造器详细资料
-
SlaveMailbox
public SlaveMailbox() -
SlaveMailbox
public SlaveMailbox(com.sun.jna.Pointer p)
-