类 DarraCore.MbxStatsNative

java.lang.Object
com.sun.jna.Structure
com.darra.ethercat.master.DarraCore.MbxStatsNative
封闭接口:
DarraCore

@FieldOrder({"total_sent","total_received","total_timeout","total_mbx_error","total_proto_error","total_cancelled","last_error_code","_pad1","last_error_time_us","total_latency_us"}) public static class DarraCore.MbxStatsNative extends com.sun.jna.Structure
邮箱协议统计快照 (对齐 C 端 struct mbx_stats, 72 字节).

C 端无 #pragma pack, 自然对齐: 6×uint64 后 last_error_code (uint32) 之后 编译器插 4 字节 padding 使后续 uint64 8 字节对齐. 故此处显式声明 _pad1 占位, 且 不能用 ALIGN_NONE (会压成 68 字节错位). 与 C# ec_mbx_stats_t 一致.

  • 嵌套类概要

    从类继承的嵌套类/接口 com.sun.jna.Structure

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    int
     
    int
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     

    从类继承的字段 com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • 构造器概要

    构造器
    构造器
    说明
     
    MbxStatsNative(com.sun.jna.Pointer p)
     
  • 方法概要

    从类继承的方法 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

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • total_sent

      public long total_sent
    • total_received

      public long total_received
    • total_timeout

      public long total_timeout
    • total_mbx_error

      public long total_mbx_error
    • total_proto_error

      public long total_proto_error
    • total_cancelled

      public long total_cancelled
    • last_error_code

      public int last_error_code
    • _pad1

      public int _pad1
    • last_error_time_us

      public long last_error_time_us
    • total_latency_us

      public long total_latency_us
  • 构造器详细资料

    • MbxStatsNative

      public MbxStatsNative()
    • MbxStatsNative

      public MbxStatsNative(com.sun.jna.Pointer p)