类 Structures.InternalDiagnostics

java.lang.Object
com.sun.jna.Structure
com.darra.ethercat.data.Structures.InternalDiagnostics
封闭类:
Structures

@FieldOrder({"CacheCnt","RTcnt","cycle_count","ErrorCacheCnt","ErrorCnt","WKC","ExpectedWKC","CycleTimeSpan","frame_errors","lost_frames","checksum_errors","timeout_frames","rx_error_count","tx_error_count","lost_link_count","invalid_frame_count","working_counter_errors","consecutive_wkc_errors","total_wkc_mismatches","cycle_start_time","cycle_time_accumulator","last_snapshot_time","snapshot_cycle_count","last_cycle_time_us","jitter_accumulator","max_jitter_in_second","jitter_sample_count"}) public static class Structures.InternalDiagnostics extends com.sun.jna.Structure
内部诊断数据结构 - 对应 C 层 internal_diagnostics_t 这是所有统计信息的唯一所有者 使用 GetDiagnosticsPointer() 进行零拷贝访问 注意:不使用 Pack=1,因为 C 端也使用自然对齐
  • 嵌套类概要

    从类继承的嵌套类/接口 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
    校验和错误数
    short
    连续 WKC 错误次数
    int
    累计总周期数
    long
    周期开始时间戳(纳秒)
    double
    周期时间累加器
    int
    最近一次周期耗时(微秒)
    int
    当前秒内的错误计数
    int
    上一秒的错误计数
    short
    期望工作计数器
    int
    总帧错误数
    short[]
    每个从站的无效帧计数
    double
    1秒内抖动累加器
    int
    1秒内抖动采样数
    double
    上一次周期时间(微秒)
    long
    上次快照时间戳(秒)
    int
    丢失帧数
    short[]
    每个从站的链路丢失计数
    double
    1秒内最大抖动(微秒)
    int
    上一秒的周期计数(频率Hz)
    int[]
    每个从站的接收错误计数
    int
    上次快照时的 cycle_count
    int
    超时帧数
    int
    WKC 不匹配总次数
    int[]
    每个从站的发送错误计数
    short
    当前工作计数器
    short
    WKC 错误次数

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

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

    构造器
    构造器
    说明
     
    InternalDiagnostics(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
  • 字段详细资料

    • CacheCnt

      public int CacheCnt
      当前秒内的周期计数
    • RTcnt

      public int RTcnt
      上一秒的周期计数(频率Hz)
    • cycle_count

      public int cycle_count
      累计总周期数
    • ErrorCacheCnt

      public int ErrorCacheCnt
      当前秒内的错误计数
    • ErrorCnt

      public int ErrorCnt
      上一秒的错误计数
    • WKC

      public short WKC
      当前工作计数器
    • ExpectedWKC

      public short ExpectedWKC
      期望工作计数器
    • CycleTimeSpan

      public int CycleTimeSpan
      最近一次周期耗时(微秒)
    • frame_errors

      public int frame_errors
      总帧错误数
    • lost_frames

      public int lost_frames
      丢失帧数
    • checksum_errors

      public int checksum_errors
      校验和错误数
    • timeout_frames

      public int timeout_frames
      超时帧数
    • rx_error_count

      public int[] rx_error_count
      每个从站的接收错误计数
    • tx_error_count

      public int[] tx_error_count
      每个从站的发送错误计数
    • invalid_frame_count

      public short[] invalid_frame_count
      每个从站的无效帧计数
    • working_counter_errors

      public short working_counter_errors
      WKC 错误次数
    • consecutive_wkc_errors

      public short consecutive_wkc_errors
      连续 WKC 错误次数
    • total_wkc_mismatches

      public int total_wkc_mismatches
      WKC 不匹配总次数
    • cycle_start_time

      public long cycle_start_time
      周期开始时间戳(纳秒)
    • cycle_time_accumulator

      public double cycle_time_accumulator
      周期时间累加器
    • last_snapshot_time

      public long last_snapshot_time
      上次快照时间戳(秒)
    • snapshot_cycle_count

      public int snapshot_cycle_count
      上次快照时的 cycle_count
    • last_cycle_time_us

      public double last_cycle_time_us
      上一次周期时间(微秒)
    • jitter_accumulator

      public double jitter_accumulator
      1秒内抖动累加器
    • max_jitter_in_second

      public double max_jitter_in_second
      1秒内最大抖动(微秒)
    • jitter_sample_count

      public int jitter_sample_count
      1秒内抖动采样数
  • 构造器详细资料

    • InternalDiagnostics

      public InternalDiagnostics()
    • InternalDiagnostics

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